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