Debian system PMS tools aptitude and Apt-get

Source: Internet
Author: User

The PMS tool allows us to install, manage, and remove software on Linux systems very easily. But the PMS has a bit of an inconvenient place-there's no standard tool. The core of the Red hat PMs is rpm, but there are many types of management tools, with Yum,mandriva using Urpm,opensuse in red Hat and fedora, and zypper, of course, other system-specific PMS tools.

Compared to the cumbersome Red Hat system, the Debian system has a much more unified PMS tool. The DPKG command is based on the core of the Debian System PMS tool, and the other tools included in this PMS are mainly apt-get and aptitude. Although not only unified one, but most of the Debian system Linux systems will be at the beginning of the two tools are installed for us, and red hat is indeed a lot of unity.


Usually, the Linux primer we see will introduce us to the Apt-get tool, which is one of the most commonly used PMS tools. If you search the Internet for how to install a software, the software can be installed through the PMS, then the search results will certainly be using the Apt-get tool. The main usage of Apt-get is as follows:

apt-get Install PackageName. Install a package

Apt-get Update. Refreshing the software source

Apt-get upgrade. Upgrade to the latest version of all packages in the system at once

Apt-get Remove PackageName. Uninstalling the package but preserving the configuration

apt-get purge remove PackageName. Remove the configuration while uninstalling the package

Apt-get clean. Clean up the entire package buffer

Apt-get AutoClean. Clean up excess packages in buffers by dependency


Not long ago, when I saw the name of aptitude, the author recommended the tool. Before I really use the aptitude tool, in fact I was rejected, access to the information introduced are the use of apt-get, the mind of this aptitude must be an outdated tool. Later, I finally got to know the tool, and it was this time that I really learned about aptitude's power. Apt-get is often used to install, update, and uninstall packages, but Apt-get can be a little overwhelmed when searching for packages to install, or to see which packages have been installed on the system.

Sometimes we need to determine what packages have been installed on the system, and Aptitude has a handy interactive interface to make this task simple. Type aptitude and press ENTER, back to aptitude full-screen mode, you can use the arrow keys to move on the menu, select menu options installed packages to see what packages have been installed. can see the unit installation package, such as editor, game and so on. The parentheses behind each group have a number that indicates how many packages the group installs. Use the arrow keys to highlight a group and press ENTER to see the package groupings. You can see the individual package names and their version numbers, and press ENTER on the package to get more detailed information. If you have finished, 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 particular package, you can use $aptitude show package_name at the command line.

If you want to install a software, you can use $aptitude search package_name to see which packages are available, and the wildcard Fu Huiyin is added on both sides of the package name. Each package name is preceded by a p or an I. If you see I, the report is already installed, and P indicates that it is not installed. To find the exact package name, you can install the package by using $aptitude install Package_name. To check if the installation process is performing correctly, simply use the search option here, as long as the package is preceded by an I, which indicates that it is already installed.

To safely update all packages on the system using the new version of the software library, you can use the Safe-upgrade option to update all installed packages to the latest version of software bitterness. Full-upgrade and Dist-upgrade will upgrade all packages to the latest version, and will not check the relationship between packages and packets.

Uninstall the software using the Remove and purge options. The Remove option retains the software configuration and the purge option clears the software configuration back.

Debian system PMS tools aptitude and Apt-get

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.