Replacing a package: Difference between revisions

From Alpine Linux
(Category:Package Manager)
({{Obsolete}})
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.

Revision as of 09:23, 25 March 2012

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

  1. Log in as root to the command-line console.
  2. cd YOUR_ALPINE_MEDIUM/apks
  3. wget http://dev.alpinelinux.org/alpine/v1.8/apks/PACKAGE_NAME.apk
  4. rm OLD_PACKAGE_NAME.apk
  5. md5sum *.apk | sort -k 2 | gzip > INDEX.md5.gz
  6. apk_fetch -u
  7. Stop any associated services
  8. apk_delete -f PACKAGE_NAME
  9. apk_add -f PACKAGE_NAME
  10. Start any associated services.