apt remove
Remove packages.
Overview
Removes packages from the system. Configuration files for the package may remain on the system.
Syntax
sudo apt remove [options] package_name(s)Common Options
-y, --yes, --assume-yesAutomatic yes to prompts.
--purgeUse purge instead of remove for the listed packages. This will remove configuration files as well.
Examples
$ sudo apt remove apache2
Remove the apache2 package.
$ sudo apt remove --purge old-software
Remove old-software and its configuration files.
Related Commands
aptpackageremovedeleteuninstall