There are two kinds of software package management tools in Ubuntu, one is offline management and the other is online management
1. Offline Management
The Dpkg tool can install, uninstall, view status, and so on, locally stored Deb installation packages.
Dpkg-i app_name_version.deb: Installing App_name Software
Dpkg-r App_name: not completely uninstalled
Dpkg-p app_name: Complete uninstall, including configuration files
Dpkg-l app_name: See which directories the app is installed in
Dpkg-s app_name: Check the app's installation status
2. Online Management
Apt tool is a powerful software online management tool under Ubuntu
2.1 Install, repair, uninstall, upgrade commands
Apt-get Install App_name: Installing the Software
App-get Install app_name--reinstall: Reinstall software
Apt-get Check: Checks if you need to repair package dependencies caused by power outages or other factors, with apt-get-f install repair
Apt-get Remove App_naem: Uninstalling the Software
Apt-get--purger Remove App_name: Remove app_name software completely
Apt-get Upgrade: Upgrade all software to the latest, long time consuming
Apt-get Update: Re-index after modifying mirror server
2.2 Status, dependency query
Apt-cache Show App_name: Package query command, query results include software version description and other details, the package does not necessarily install
Apt-cache Policy app_name: View Package installation status, similar to Dpkg-s app_name
Apt-cache depends app_name: Query the software you rely on
Apt-cache rdepends app_name: Query by who depends on
2.3 Cleaning up the package buffers
Apt-get Clean: Cleans up the package buffers under the/var/cache/apt/archives directory, Apt-get AutoClean cleanup is when there are different versions of the same software, the oldest version is cleaned up
Software package management tools for Ubuntu systems