{eks}catid=87|keyword=terminal|teaser|alpha{/eks}

 

Removal commands

  • apt-get remove <package_name>
    This command removes an installed package, leaving configuration files intact.
  • apt-get purge <package_name>
    This command completely removes a package and the associated configuration files. Configuration files residing in ~ are not usually affected by this command.
    • + operator
      • IconsPage/example.png If you want to remove package1 and install package2 in one step:

        apt-get remove <package1> <package2>+
        .
  • apt-get autoremove
    This command removes packages that were installed by other packages and are no longer needed.
    • apt-get autoremove <package_name>
      This command removes an installed package and dependencies.
  • While there is no built in way to remove all of your configuration information from your removed packages you can remove all configuration data from every removed package with the following command.

    dpkg -l | grep '^rc' | awk '{print $2}' | xargs dpkg --purge