Alpine Linux Software Repository Image Usage Help
Alpine Linux Profile and Software Manage
Alpine Linux is a independent, non-commercial, general-purpose Linux distribution that based on musl libc and BusyBox, designed to provide a small, simple, safe and efficient basic system. The design concept of Alpine Linux is "Keep It Simple", and due to its lightweight and efficient characteristics, it is so popular in container environments such as Docker and Kubernetes.
The package management system of Alpine Linux is apk(Alpine Package Keeper). apk is a package management tool for Alpine Linux, which can be used to install new software packages, upgrade or delete existing software packages, update the software package index and so on.
Alpine Linux Software Source Replacement
To avoid problems when replacing software source configuration files, please make a backup of the system's default software source configuration files before proceeding.
- Edit
/etc/apk/repositories, and replace the original content with the following
https://mirrors.hust.edu.cn/alpine/v3.16/main
https://mirrors.hust.edu.cn/alpine/v3.16/community
- Update the software package cache
sudo apk update
One-click Source Replacement
This way only apply to change from the official source to this site source. If you have already changed the source, please don't use the following orders.
Use the sed command to directly replace the default source address http://dl-cdn.alpinelinux.org in the software source configuration file with the current mirror source site:
sudo sed -i 's/dl-cdn.alpinelinux.org/mirrors.hust.edu.cn/g' /etc/apk/repositories