Software sources refers to the repositories that are used to store various Linux applications, including free or non-free software. There are several types of repositories:
Take official repository of deepin : https://community-packages.deepin.com/deepin/
for example:
In order to provide faster and stable repositories for user, deepin has created new mirrors of its official repository. There are more than 100 mirrror sites, covering 35 countries all over the world.
Deepin system inherits apt utility from debian. apt is a powerful tool for searching, installing, upgrading and removing software obtained from repository. Other Linux distributions, like Red Hat or Gentoo, use their own tools which have the similar functions.
The default configuration of source for deepin is "/etc/apt/sources.list", which contains the web address of description of each software packages.
To view current configurations of source, execute in terminal:
$ cat /etc/apt/sources.list
The default content is like:
## Generated by deepin-installer
deb https://community-packages.deepin.com/deepin/ apricot main contrib non-free
#deb-src https://community-packages.deepin.com/deepin/ apricot main contrib non-free
The first word of each line, either "deb" or "deb-src", describe the type of the repository:
There are two ways of modifying source:
Launch control center panel -> Update -> Update settings -> Closed Intelligent Mirror Source -> Mirror Source list -> Switch Mirror, then choose your prefered source.
Modify configuration file manually (only when you have fully understood its mechanism):
sudo deepin-edit /etc/apt/sources.list
After modification, update local cache of software source:
sudo apt-get update
If you would like to offer a repository mirror to deepin users, please refer following instructions,and make sure that you have enough disk space.
Synchronization command | Space needed |
---|---|
rsync -av --delete-after rsync.deepin.com::deepin/ /var/www/deepin/ | 189GB |
rsync -av --delete-after rsync.deepin.com::releases/ /var/www/deepin-cd/ | 10GB |
※ Note: