Enable Community Repository: Difference between revisions
m (+ link) |
(spelling it out) |
||
Line 8: | Line 8: | ||
{{Cmd|apk update}} | {{Cmd|apk update}} | ||
{{Tip|Adding the <code>- | {{Tip|Adding the <code>--update-cache</code>, or for short <code>-U</code> switch to another apk command, as in <code>apk add -U ...</code> or <code>apk upgrade -U</code>, has the same effect as first running <code>apk update</code> before the other apk command.}} | ||
= = | = = |
Revision as of 10:42, 9 May 2020
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
--update-cache
, or for short -U
switch to another apk command, as in apk add -U ...
or apk upgrade -U
, has the same effect as first running apk update
before the other apk command.