Ubuntu - apt - Install a package

sudo apt install [package name]

Example

sudo apt install zip

Tip: If you want to remove a package and install a different package in one step, try:

sudo apt remove htop vim+

Another way to do the same thing:

sudo apt install htop- vim

NOTE: The + (add) and - (remove) suffix to package names can override and flip an install/remove switch.

  • It is a time and typing saving feature for the apt/apt-get.