- Ubuntu
- Package management
- here
apt command-package management
You can manage packages using the apt command .
Package installation --apt install
Use "apt install" to install the package. Execute with administrator privileges with the sudo command.
sudo apt install package name
Package Removal --apt remove
Use "apt remove" to remove the package. Execute with administrator privileges with the sudo command.
sudo apt remove package name
apt system upgrade --apt upgrade
Use "apt upgrade" to upgrade the apt system. Execute with administrator privileges with the sudo command.
If any package is already installed, it will be updated to the package referenced by the new apt system.
Keep in mind that in this case, even if the probability is low, there is a risk that the existing application will get stuck and you may need to modify the application.
sudo apt upgrade
If you get an error with "apt install", try "apt upgrade". The error may be fixed.
Package management information
Please refer to the following for the packages installed by default.
Software packages installed by default on Ubuntu 18.04 LTS
Please refer to the following article for searching the package name.
Please refer to the following articles to check the package dependencies.
Difference between apt and apt-get
Starting with Ubuntu 14, the apt command is recommended for general package management.
apt is a wrapper application that allows system administrators to use the apt-get and apt-chace commands more concisely.
apt-get and apt-chache are now positioned as low-level layers one step below apt.
The differences between apt and apt-get are detailed below.
apt and apt -Explanation of the difference between get
Official apt documentation
The official documentation for apt is below.
Packages that can be installed with apt
The packages that can be installed with apt are introduced here.