Enable Community Repository: Difference between revisions

From Alpine Linux
(New page)
 
mNo edit summary
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
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 {{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'''
The '''/community''' repository of each Alpine release contains community supported packages that were accepted from the testing repository.
However, they are not supported beyond six months.


After adding the community repository, obtain the latest index of available packages:
To enable the repository, edit the file {{Path|/etc/apk/repositories}} using an editor ({{Pkg|nano}} for instance) and add (or uncomment) a line that points to the "community" directory, formatted as in:
 
'''https://<mirror-server>/alpine/<version>/community'''
 
After enabling the community repository, one needs to obtain the latest index of available packages with:
{{Cmd|apk update}}
{{Cmd|apk update}}


{{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?]
The '''community''' repository was introduced with Alpine Linux version 3.3, and required to enable it to continue to use some former '''main''' packages.
 
[[Category:Package Manager]]

Revision as of 17:26, 12 May 2020


The /community repository of each Alpine release contains community supported packages that were accepted from the testing repository. However, they are not supported beyond six months.

To enable the repository, edit the file /etc/apk/repositories using an editor (nano for instance) and add (or uncomment) a line that points to the "community" directory, formatted as in:

https://<mirror-server>/alpine/<version>/community

After enabling the community repository, one needs to obtain the latest index of available packages with:

apk update


The community repository was introduced with Alpine Linux version 3.3, and required to enable it to continue to use some former main packages.