Search usage of aptitude in Ubuntu system

Source: Internet
Author: User
Keywords Ubuntu aptitude search usage
Tags alias aliyun apt based debian gnu html http

Aptitude is the http://www.aliyun.com/zixun/aggregation/33836.html ">debian GNU system, a very magical package manager, based on the well-known APT mechanism, integrated Dselect and apt all the features, and provide more features, especially in dependency processing.

Like APT, aptitude is a very powerful package management tool in Debian and its derivative systems. Unlike apt, aptitude is better at dealing with dependency issues. For example, when aptitude deletes a package, it also deletes the packages that it relies on. In this way, the system will not remain useless packets, the whole system cleaner.

Today ithov.com bring us together to learn about the search usage of aptitude

The setting of the Alias.
Alias ag= ' sudo aptitude safe-upgrade '
Alias ai= ' sudo aptitude install '
Alias ap= ' sudo aptitude purge '
Alias ar= ' sudo aptitude remove '
Alias as= ' Aptitude Search '
Alias au= ' sudo aptitude update '
Alias aw= ' aptitude Show '

Example:

In the software description, any of the 2 words that have been installed are deleted.
☎ar ~d~i "VirtualBox ose"

A list of installed packages containing Xfce or XFWM is displayed in the software name.
☎as ~IXF (CE|WM)

Completely remove the installed kernel that is not currently in use.
☎ap ~ilinux-image-.* (! ' uname-r ')

List the installed, non-Debian official packages.
Aptitude search ' ~s~i!~odebian '

Lists the packages that contain ' ruby ' and ' GTK '.
Aptitude search ' Ruby GTK '
Aptitude Search ~NRUBY~NGTK

Lists installed packages that rely on bash.
Aptitude Search ~s~i~dbash

Clears the package that has been deleted only for the configuration file.
Aptitude Purge ~c

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.