docs/alpine-server-setup/post-install/repositories.md: add optional edge configuration

This commit is contained in:
Luc Bijl 2025-02-21 23:33:19 +01:00
parent 48ab49c9ee
commit a8a68753c1

View file

@ -7,12 +7,18 @@ https://dl-cdn.alpinelinux.org/alpine/latest-stable/main
https://dl-cdn.alpinelinux.org/alpine/latest-stable/community
```
This will use the latest stable repository of Alpine (for example `v3.19`). To use a different version of Alpine simply change `latest-stable` to whatever version you want. Do note that you can not (easily) downgrade your system's version. There also is the `edge` repository which contains more packages but it is not recommended because it can result in faster breakage of your system.
This will use the latest stable repository of Alpine (for example `v3.19`). To use a different version of Alpine simply change `latest-stable` to whatever version you want. Do note that you can not (easily) downgrade your system's version. There also is the `edge` repository which contains the latest packages but it is not recommended because it can result in faster breakage of your system.
## apk-ample
We also host our own repository which contains some packages not found in the stable repository but also our own packages like `linux-hardened`. If you want to add it to your system edit `/etc/apk/repositories` and add this line under the other repositories:
If a package is not yet in a stable release one may configure in `/etc/apk/repositories`:
```
https://git.bijl.us/lnco/apk-ample/raw/branch/main/alpine/
```
@<repository> https://dl-cdn.alpinelinux.org/alpine/edge/<repository>
```
for the relevant `<repository>` and perform:
```
# apk add <package>@<repository>
```
for the relevant `<package>`.