How to use apt-get

Recommended Ubuntu book

apt-get (apt stands for advanced packaging tool) is used to install the packages on your system.

To install a package use (in terminal):

sudo apt-get install <packagename>

To remove:

sudo apt-get remove <packagename>

where <packagename> is the name of the package you need to install.

Once I install the new Ubuntu, I usually do:

sudo apt-get update


sudo apt-get upgrade

which updates the local package list and upgrades to the latest versions from Ubuntu repositories.

You can also upgrade the entire distribution of your Ubuntu by typing:

sudo apt-get dist-upgrade

if you need more information, type

sudo apt-get help


Comments are closed.