Difference between revisions of "Enable Community Repository"

From Alpine Linux
Jump to: navigation, search
m (the dl-6 mirror was decommissioned, use dl-cdn instead)
m (+ link)
Line 9: Line 9:
  
 
{{Tip|Adding the <code>-U</code>/<code>--update-cache</code> to another apk command, as in <code>apk add -U ...</code> or <code>apk upgrade -U</code>, has the same effect as running <code>apk update</code> before the other apk command.}}
 
{{Tip|Adding the <code>-U</code>/<code>--update-cache</code> to another apk command, as in <code>apk add -U ...</code> or <code>apk upgrade -U</code>, has the same effect as running <code>apk update</code> before the other apk command.}}
 +
 +
= =
 +
* [https://superuser.com/questions/1055060/how-to-install-a-specific-package-version-in-alpine How to install a specific package version in Alpine?]
  
 
[[Category:Package Manager]]
 
[[Category:Package Manager]]

Revision as of 13:01, 1 November 2019

Starting with Alpine Linux version 3.3, there is a new repository called community. Many packages have been moved from the main repository to community to indicate that they are not guaranteed to be supported beyond six months. If you are using any of these packages, be sure to add the community repository.

Edit the /etc/apk/repositories file using an editor (nano for instance) and add (or uncomment) a line like:

http://dl-cdn.alpinelinux.org/alpine/edge/community

After adding the community repository, obtain the latest index of available packages:

apk update

Tip: Adding the -U/--update-cache to another apk command, as in apk add -U ... or apk upgrade -U, has the same effect as running apk update before the other apk command.