Operating system: Ubuntu 18.04 LTS
Before, under Ubuntu, I always insisted on the habit of downloading the software download package to the designated folder for decompression and installation. On the suggestion of my colleagues in the department, I started to use the apt command to download the management package.
Since there are already many excellent articles on the Internet that analyze the apt command, I won't go into details here. There is a link at the end of the article. I will explain the advantages of using apt to download the management package
We know that the traditional operation process of downloading and installing software is to find the download link of this software installation package on the Internet, then download it to the local specified path, unzip, install and run.
However, for some software, we need to import environment variables by ourselves or put the library files in the appropriate directory. At this time, we feel very annoyed. But in the Ubuntu environment, the apt command solves all this.
A piece of software, I roughly drew its composition structure
If we want to download a software installation package named a.deb, it will get the executable file and the corresponding library file after decompression. If you want to put these library files in the specified directory folder under Windows system, But in this step under Linux it does it for you.
However, if there is a dependency description file in the a.deb installation package (this file does not really exist, just to facilitate understanding), the content of this file needs to be the b.deb software installation package it depends on Download it, and so on, if b.deb also needs to rely on a c.deb software installation package, then download it too. However, these steps can be done with a single apt command, and the environment will be automatically configured for you, and the required library files will be placed in the specified folder, saving developers a lot of energy and time.
Therefore, if I want to download an installation package on Ubuntu, first search for the relevant installation package, and then use the apt command to download it.
sudo apt search XXX installation package
sudo apt install XXX installation package
[ Detailed explanation of apt-get command (Chinese), and examples)(http://blog.51yip.com/linux/1176.html)
Use the new apt command to manage software packages under Ubuntu 16.04 LTS
Recommended Posts