In Linux, the full name of source is "software source", which is a free application installation warehouse for Linux systems. It contains binary packages and source codes of various software or ISO files of distribution versions; software sources can be network Server, CD, or even a directory on the hard drive.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
In Linux, the full name of the source is "software source", which is a free application installation warehouse for the Linux system. Many application software will be included in this warehouse, divided by type:
Software warehouse: binary packages and source codes of various software
ISO warehouse: ISO files of distribution versions
The software source can be a network server, a CD, or even a directory on the hard disk.
Deepin official software source address: http://packages.deepin.com/
pool/ The directory stores the address of all released software packages
project/ Stores resources used by developers
With the continuous development of deepin operating system and the increase of users, in order to facilitate users to run faster Deepin has now established 70 software sources around the world, covering 24 countries.
Software source file
The software source configuration file of deepin is /etc/apt/sources.list, which contains the information you use The software source address (note that the software installation package is not in this folder, but only the server description information. All software installations still need to be connected to the Internet).
Deepin inherits the command apt-get from debian and ubuntu to search, install, upgrade, and uninstall software in the software repository. Most Linux based on Ren Hat uses the yum command. There are also a few Linuxes that use their own package management systems, such as YlmfOS's Ypk, SUSE's YaST, Gentoo's Portage, etc.
Execute the following command on the terminal to view the source files of the current system:
sudo gedit /etc/apt/sources.list
The following shows the default software source of Deepin 15:
deb [by-hash=force] http://packages.deepin.com/deepin stable main contrib non-free #deb-src http://packages.deepin.com/deepin stable main contrib non-free
The number of each line A word deb or deb-src describes the file type:
(deb) indicates that the directory contains binary software packages, that is, the compiled software packages we usually use;
(deb-src) indicates a source code package. The source code package contains source program encoding, Debian control file (.dsc) and record file diff of the changes made to the "Debian" program. .gz.
Modify the software source
If you need to modify the software source, there are two methods:
Run Control Center - System Information - Settings - Update Source (Change), select your favorite software source.
Manually modify the source configuration file (if you are not aware of the dangers, please do not modify it), terminal execution:
sudo edit /etc/apt/sources.list
After the modification is completed and saved, you need to refresh the software source list, terminal execution:
sudo apt-get update
Synchronizing software sources
If you want to provide a software source service for Deepin, you can view the following synchronization methods:
Synchronize software warehouse (size is about 330 GB)
rsync -av --delete-after rsync.deepin.com::deepin/ /var/www/deepin/
Synchronize ISO warehouse (size is about 520 GB)
rsync -av --delete-after rsync.deepin.com::releases/ /var/www/deepin-cd/
※Remarks:
1. You can Move the /var/www/ path in the above address to the root directory of the server;
2. Please add a cron task that runs every day to ensure that the deepin operating system image source you provide remains "up-to-date" for a long time. "available status;
3. We recommend that you synchronize the deepin operating system software repository first, and then synchronize the deepin operating system ISO repository;
4. Please do not synchronize the deepin operating system image Store other files (such as unofficial software packages) in the source-related directory to avoid misunderstandings;
5. If you have any suggestions and comments, please feedback to support@deepin.org.
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What does linux source mean?. For more information, please follow other related articles on the PHP Chinese website!