Order
-
The best uninstall command
apt-get remove packagename --purge && apt-get autoremove --purge && apt-get clean
uninstall program (including configuration files), uninstall dependencies, delete all installation packages under /var/cache/apt/archives -
Best Upgrade Software Commands
apt-get update && apt-get upgrade
apt-cache show packagename
Get the relevant information of the package, such as description, size, version, etc. To understand the use dependency is to check which packages the package depends on . Install the package to specify the installation version Reinstall the package uninstaller, including deleting the configuration file and other update sources, and the link address in the update to upgrade the program (excluding dependencies changed) -u full display list upgrade program (including dependencies changed and reorganized dependencies) delete the installation package (saving hard disk space, the next installation needs to re-download the package, the package location: /var/ cache/apt/archives/) delete the uninstalled installation package (Ubuntu14.04 test found that it did not work) uninstall dependent programsapt-cache depends packagename
apt-cache rdepends packagename
apt-get install packagename
apt-get install package=version
apt-get install packagename --reinstall
apt-get remove packagename --purge
apt-get update
/etc/apt/sources.list
apt-get upgrade -u
apt-get dist-upgrade
apt-get clean
apt-get autoclean
apt-get autoremove
apt-get installation location
Downloaded software storage location Default location of software after installation Executable file location lib file location /var/cache/apt/archives
/usr/share
/usr/bin
/usr/lib