Software package management tools for Ubuntu systems

Source: Internet
Author: User

There are two kinds of software package management tools in Ubuntu, one is offline management and the other is online management

1. Offline Management

The Dpkg tool can install, uninstall, view status, and so on, locally stored Deb installation packages.

Dpkg-i app_name_version.deb: Installing App_name Software

Dpkg-r App_name: not completely uninstalled

Dpkg-p app_name: Complete uninstall, including configuration files

Dpkg-l app_name: See which directories the app is installed in

Dpkg-s app_name: Check the app's installation status

2. Online Management

Apt tool is a powerful software online management tool under Ubuntu

2.1 Install, repair, uninstall, upgrade commands

Apt-get Install App_name: Installing the Software

App-get Install app_name--reinstall: Reinstall software

Apt-get Check: Checks if you need to repair package dependencies caused by power outages or other factors, with apt-get-f install repair

Apt-get Remove App_naem: Uninstalling the Software

Apt-get--purger Remove App_name: Remove app_name software completely

Apt-get Upgrade: Upgrade all software to the latest, long time consuming

Apt-get Update: Re-index after modifying mirror server

2.2 Status, dependency query

Apt-cache Show App_name: Package query command, query results include software version description and other details, the package does not necessarily install

Apt-cache Policy app_name: View Package installation status, similar to Dpkg-s app_name

Apt-cache depends app_name: Query the software you rely on

Apt-cache rdepends app_name: Query by who depends on

2.3 Cleaning up the package buffers

Apt-get Clean: Cleans up the package buffers under the/var/cache/apt/archives directory, Apt-get AutoClean cleanup is when there are different versions of the same software, the oldest version is cleaned up

Software package management tools for Ubuntu systems

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.