Replacing a package: Difference between revisions
Dubiousjim (talk | contribs) (Category:Package Manager) |
m (→How to Replace a Package in Alpine 1.7.x and 1.8.x: nowiki'd a hypothetical URL.) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Obsolete}} | |||
== How to Replace a Package in Alpine 1.7.x and 1.8.x == | == How to Replace a Package in Alpine 1.7.x and 1.8.x == | ||
# Log in as root to the command-line console. | # Log in as root to the command-line console. | ||
# cd YOUR_ALPINE_MEDIUM/apks | # cd YOUR_ALPINE_MEDIUM/apks | ||
# wget http://dev.alpinelinux.org/alpine/v1.8/apks/PACKAGE_NAME.apk | # wget <nowiki>http://dev.alpinelinux.org/alpine/v1.8/apks/PACKAGE_NAME.apk</nowiki> | ||
# rm OLD_PACKAGE_NAME.apk | # rm OLD_PACKAGE_NAME.apk | ||
# md5sum *.apk | sort -k 2 | gzip > INDEX.md5.gz | # md5sum *.apk | sort -k 2 | gzip > INDEX.md5.gz |
Latest revision as of 14:54, 25 August 2023
This material is obsolete ... Please feel free to help us make an up-to-date version. (Discuss) |
How to Replace a Package in Alpine 1.7.x and 1.8.x
- Log in as root to the command-line console.
- cd YOUR_ALPINE_MEDIUM/apks
- wget http://dev.alpinelinux.org/alpine/v1.8/apks/PACKAGE_NAME.apk
- rm OLD_PACKAGE_NAME.apk
- md5sum *.apk | sort -k 2 | gzip > INDEX.md5.gz
- apk_fetch -u
- Stop any associated services
- apk_delete -f PACKAGE_NAME
- apk_add -f PACKAGE_NAME
- Start any associated services.