Debian PMS tools aptitude and apt-get
PMS allows us to conveniently install, manage, and delete software on linux. However, PMS is a little inconvenient-there is no standard tool. The core of Red Hat PMS is rpm, but there are many management tools. Red Hat and Fedora use yum, Mandriva use urpm, and openSUSe use zypper. Of course, there are other system-specific PMS tools. Compared with the complex Red Hat system, Debian PMS tools are much more unified. The dpkg command is the core of the Debian-based PMS tool. Other tools included in this PMS are apt-get and aptitude. Although not only one tool is uniform, most Debian linux systems will install both tools at the beginning, which is indeed a lot more unified than Red Hat systems. We usually see the apt-get tool in the linux getting started books, which is also the most commonly used PMS tool. If you search for how to install a software on the Internet and the software can still be installed through PMS, the search result will surely be the apt-get tool. Apt-get: apt-get install packagename. Install an apt-get update package. Refresh the software source apt-get upgrade. Upgrade all software packages in the system to the latest apt-get remove packagename. Uninstall the package but keep the configuration apt-get purge remove packagename. Clear the configuration apt-get clean when you uninstall the software package. Clear the entire Package Buffer apt-get autoclean. Not long ago, we saw the name of aptitude, and the author recommended this tool. Before I actually used the aptitude tool, I actually refused to use it. All the materials I came into use described the apt-get method. I thought that this aptitude must be an outdated tool. After that, I finally learned about this tool. This time, I really learned about the power of aptitude. Apt-get is usually used to install, update, and uninstall software packages. However, when searching for software packages that can be installed or viewing software packages installed on the system, apt-get seems a little powerless. Sometimes, we need to determine what software packages have been installed on the system. aptitude has a convenient interactive interface to make this task very simple. Type aptitude and press the Enter key to switch back to the full screen mode of aptitude. You can move the arrow key to the menu and select the menu option Installed Packages to check which software Packages have been Installed. You can see the unit installation package, such as the editor and game. Each group contains a number in parentheses, indicating the number of packages installed in the group. Use the arrow keys to highlight a group and press the Enter key to view the package group. You can see the separate software package name and their version number. Press the Enter key on the software package to obtain more detailed information. If you have already finished reading, press the q key to return to the previous layer. If you already know the installation packages and want to quickly display the details of a specific package, you can use $ aptitude show package_name on the command line. To install a software package_name, you can use $ aptitude search package_name to check which software packages are available. Wildcards are implicitly added to both sides of the software package name. Each package name is preceded by a p or an I. If I is displayed, it indicates that the report has been installed, and p indicates that it is not installed. Find the correct package name and use $ aptitude install package_name to install the package. To check whether the installation process is correctly executed, you only need to use the search option here. As long as the software package is replaced by an I, it indicates that it has been installed. To securely update all software packages on the system using the new version in the software library, you can use the safe-upgrade option to update all installed packages to the latest version of the software. Full-upgrade and dist-upgrade all the software packages to the latest version, and do not check the relationship between the packages. The uninstall software uses the remove and purge options. The remove option retains the software configuration and the purge option clears the software configuration.