Basic commands for managing Ubuntu Software Package

Source: Internet
Author: User

/Etc/apt/sources. list records the addresses of all suitable image sites

/Var/lib/apt/list/* lists the software packages for all image sites.

/Var/cache/apt/archives is the software package cache zone.

Apt-get:

Apt-get update: refresh the software source and create an update package list

Apt-get upgrade: upgrade all software packages in the system

Install software: apt-get install + software name

Apt-get install the software automatically resolves the dependency between the software.

You can use

Apt-get -- reinstall install + package name

Delete software: apt-get remove + software name

Deletes the software package associated with the software package.

Run the command apt-get -- purge remove + software name to delete the file.

The configuration file of the software is deleted after the software package is uninstalled.

FIX software package dependency apt-get-f install

Use apt-get check to check Dependencies

Apt-get clean clear all files in the cache area of the software package

Apt-get autoclean only clears outdated files and keeps the latest software packages.

Apt-cache Problems

Apt-cache pknames list all installed software packages

Apt-cache pknames | wc-l count the number of packages installed

Apt-cache showpkg displays general information about Binary packages

Apt-cache showsrc get detailed descriptions of the source package

Apt-cache show to obtain detailed descriptions of binary software

Apt-cache stats obtains the basic statistics of the software source.

Apt-cache search software packages based on regular expressions

Apt-cache policy obtains the current installation status of the software package.

Apt-cache depends: view the packages on which a software package depends

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.