LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

apt-remove

Remove installed Debian packages

TLDR

Remove one or more packages
$ sudo apt remove [package]
copy
Remove a package and its configuration files
$ sudo apt remove --purge [package]
copy
Remove a package and unused dependencies
$ sudo apt remove --autoremove [package]
copy
Preview a removal without changing the system
$ apt remove --simulate [package]
copy
Answer yes to every prompt
$ sudo apt remove --yes [package]
copy

SYNOPSIS

apt remove [options] package...

DESCRIPTION

apt remove uninstalls one or more packages on Debian and distributions that use apt. It is a subcommand of apt, not a separate program. Packages that other installed software still depends on are not removed unless a full upgrade (or an explicit removal of those dependents) allows it.Removed packages can be installed again later with apt install. Configuration that --purge deletes is not restored by a later install.

PARAMETERS

--purge

Also delete the package's system configuration files. User files under the home directory are left in place. apt purge is the same operation.
--autoremove
After the named packages are removed, also remove packages that were installed automatically and are no longer required.
-s, --simulate
Print the actions apt would take and change nothing. No root privileges are required.
-y, --yes
Assume yes to prompts.

INSTALL

sudo apt install apt
copy
sudo dnf install apt
copy
sudo pacman -S apt
copy
sudo apk add apt
copy
brew install apt
copy
nix profile install nixpkgs#apt
copy

CAVEATS

Removing a package can remove, or refuse to remove, other packages that depend on it. Read the confirmation summary before accepting it. --yes skips that prompt.

SEE ALSO

RESOURCES

Copied to clipboard
Kai