Ubuntu apt command

Source: Internet
Author: User

Apt-Cache

This command is used to search for software in the cache of APT software packages. Simply put, it is used to search for software packages, collect software package information, and search for software that can be installed on Ubuntu or Debian.

List all currently available software packages
Apt-Cache pkgnames

Search for a software package and list its related information
Apt-cache search vsftpd

Find all software packages starting with vsftpd
Apt-Cache pkgnames vsftp

View software package information
Apt-Cache show Netcat


View Software Package Dependencies

Apt-cahce showpkg vsftpd
The showpkg sub-command checks whether the dependent software package of the specified software package has been installed.

View overall software package information
Apt-Cache stats
The stats subcommand is used to count the overall information of the software package.

Update System software packages
Apt-Get update
The update sub-command synchronizes the software package index in the/etc/APT/sources. list file and updates all the software packages in the index.

Update Software Package
Apt-Get upgrade
The upgrade sub-command updates all installed software packages in the current system, and all the software packages related to the updated software packages

Install or update a specified Software Package
Apt-Get install Netcat
Install or update the Netcat package

Apt-Get install packagename -- no-Upgrade
-- The no-upgrade subcommand will prevent files that have been installed from being updated.

Apt-Get install packagename -- only-Upgrade
-- Only-upgrade subcommand updates the files that have been installed and does not install new files

Apt-Get install vsftpd = 2.3.5...
Install the package file of a specified version

Apt-Get remove vsftpd
Remove the software package, but keep the configuration file information of the software.

Apt-Get purge vsftpd
Remove all files from the software package, or use:
Apt-Get remove -- purge vsftpd

Apt-Get clean
Delete the downloaded software package

Apt-Get -- download-only source vsftpd
Download only the software source code package

Apt-Get source vsftpd
Download and decompress the package

Apt-Get -- compile source goaccess
Download, decompress, and compile

Apt-Get download nethogs
Only download the software package to the current working directory

Apt-Get changelog vsftpd
View the log information of the software package

Apt-Get check

Apt-Get build-dep Netcat
View the dependent package of the specified package in the local package library of the current system and install the package

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.