"Summary" Ubuntu common Install and uninstall software commands

Source: Internet
Author: User
Tags file copy

Ubuntu Software Installation and removal related commands

Installing the Software

Command: Apt-get install softname1 softname2 softname3 ...

Uninstalling software

Command: Apt-get remove softname1 softname2 softname3 ...

Uninstalling and clearing the configuration

Command: Apt-get Remove--purge softname1

Update the Software information database

Command: Apt-get update

Perform a system upgrade

Command: Apt-get Upgrade

Search Packages

Command: Apt-cache search softname1 softname2 softname3 ...


Deb Package-related installation and uninstallation

Installing the Deb Package

Command: Dpkg-i xxx.deb

Remove Package

Command: Dpkg-r xxx.deb

Deleted along with the configuration file

Command: Dpkg-r--purge xxx.deb

View package Information

Command: Dpkg-info xxx.deb

View File copy Details

Command: Dpkg-l xxx.deb

To view installed package information on the system

Command: Dpkg-l

Reconfigure the package

Command: dpkg-reconfigure XXX


Common apt commands

Apt-cache Search #------( PackageSearch Packages)
Apt-cache Show #------( Packageget information about a package, such as description, size, version, and more)
sudo apt-get Install #------( PackageInstall package)
sudo apt-get Install #-----(Package--ReinstallReinstall Package)
sudo apt-get-f Install #-----(Force Installation? # "-F =--fix-missing"when it's a repair installation....)
sudo apt-get Remove #-----( PackageDelete Package)
sudo apt-get Remove--Purge #------( PackageDelete packages, including deletion of configuration files, etc.)
sudo apt-get autoremove--purge #----( Packageto delete a package and its dependent packages+configuration files, etc. (only for6.10effective, highly recommended))
sudo apt-get update #------Update Source
sudo apt-get upgrade #------Update an installed package
sudo apt-get dist-upgrade #---------Upgrade your system
sudo apt-get dselect-upgrade #------UseDselectUpgrade
Apt-cache depends #-------( PackageUnderstanding the use of dependencies)
Apt-cache rdepends #------( Packageunderstand a specific dependency?#when it's time to see what packages the package depends on....)
sudo apt-get build-dep #------( PackageInstall the relevant compilation environment)
Apt-get Source #------( PackageDownload the source code for the package)
sudo apt-get clean && sudo apt-get autoclean #--------Clean up archive of downloaded files&&clean up outdated packages only
sudo apt-get check #-------Check for damaged dependencies 


"Summary" Ubuntu common Install and uninstall software commands

Related Article

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.