Ubuntu - apt - Remove a package

Remove/Delete an installed package except configuration files.

sudo apt remove [package name]

Example

sudo apt remove 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.