Managing Ubuntu Packages
Installing Packages
To install a new package, you can use:
sudo apt-get install [package_name]
Upgrading Packages
Before you upgrade any Ubuntu packages, you need to update the package database
sudo apt-get update
Once your package data base is updated, then to upgrade anything do the following. This will update any applications, and the Ubuntu core system to the latest versions available.
sudo apt-get upgrade
The following command will allow you to upgrade only a certain package:
sudo apt-get upgrade [package_name]
Removing Packages
To remove a package, you can use the following. This will actually keep all the configuration files:
sudo apt-get remove [package_name]
The following command will both remove the package and the configuration files:
sudo apt-get purge [package_name]
The following command will remove any packages that aren’t associated with any installed program:
sudo apt-get autoremove