Ubuntu system installation package search and installation

Installation package search and installation

The currently installed package under ubuntu is saved in: /var/cache/apt/archives
The currently installed application under ubuntu:/usr/share/applications

apt command:

#Search package
apt-cache search package

#Get information about the package, such as description, size, version, etc.
apt-cache show package

#Installation package
sudo apt-get install package

#Reinstall the package
sudo apt-get install package - - reinstall

#Forced installation
sudo apt-get -f install

#Delete package
sudo apt-get remove package

#Delete package, including deleting configuration files, etc.
sudo apt-get remove package - - purge

#Automatically delete unnecessary packages
sudo apt-get autoremove

#Update source
sudo apt-get update

#Update installed packages
sudo apt-get upgrade

#Upgrading the system
sudo apt-get dist-upgrade

#Use dselect to upgrade
sudo apt-get dselect-upgrade

#Understand the use of dependencies
apt-cache depends package

#Understand a specific dependency
apt-cache rdepends package

#Install the relevant compilation environment
sudo apt-get build-dep package

#Download the source code of the package
apt-get source package

#Clean up the archive of downloaded files
sudo apt-get clean && sudo apt-get autoclean

#Check for broken dependencies
sudo apt-get check

dpkg command:

#View the information of the software packages installed in the current system
dpkg -l

#View the detailed list of software files installed in the system
dpkg -L (软件包名称)

#View the detailed information of the specified software package that has been installed
dpkg -s

#View that a file in the system belongs to which package
dpkg -S

# Thorough uninstall including software configuration files, etc.
dpkg -P

dpkg -i *.deb文件的安装
dpkg -r *.deb文件的卸载

View deb package commands that are not installed

#Query the files contained in the deb package file
dpkg -c *.deb rpm -qlp

#Query deb package details
dpkg -I *.deb

Guess you like

Origin blog.csdn.net/qq_39599464/article/details/114657201