Difference between revisions of "Enable Community Repository"

From Alpine Linux
Jump to: navigation, search
m (Categorized: Package Manager)
m (the dl-6 mirror was decommissioned, use dl-cdn instead)
Line 3: Line 3:
 
Edit the {{Path|/etc/apk/repositories}} file using an editor ({{Pkg|nano}} for instance) and add (or uncomment) a line like:
 
Edit the {{Path|/etc/apk/repositories}} file using an editor ({{Pkg|nano}} for instance) and add (or uncomment) a line like:
  
'''http://dl-6.alpinelinux.org/alpine/edge/community'''
+
'''http://dl-cdn.alpinelinux.org/alpine/edge/community'''
  
 
After adding the community repository, obtain the latest index of available packages:
 
After adding the community repository, obtain the latest index of available packages:

Revision as of 13:30, 21 November 2018

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.