Forrest logo
back to the apt-get tool

apt-get:tldr:e608d

apt-get: Remove a package and its configuration files.
$ apt-get purge ${package}
try on your machine

The command "apt-get purge ${package}" is used to completely remove a package and its associated configuration files from a Debian or Ubuntu-based Linux system.

Here's a breakdown of the components of the command:

  • "apt-get": It is a command-line tool in Debian-based systems used for package management. It enables the installation, upgrading, and removal of software packages.
  • "purge": It is an option used with "apt-get" to remove the specified package along with its configuration files.
  • "${package}": It is a placeholder representing the name of the package that you want to purge. You need to replace "${package}" with the actual name of the package you want to remove.

When you run this command with the name of a package, apt-get will remove the specified package from your system, along with any additional packages that were automatically installed as dependencies. It will also remove all the files and configuration settings associated with that package, providing a clean uninstallation.

Note that purging a package will permanently delete its configuration files, so be cautious while using this command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the apt-get tool