How to Remove Packages from a Debian System

9:25 AM
Removing Packages from a Debian System


You want to remove a package, or several packages, from your Debian system.


Use apt-get remove:


# apt-get remove tuxpaint


Reading Package Lists... Done


Building Dependency Tree... Done


The following packages will be REMOVED:




tuxkart


0 upgraded, 0 newly installed, 1 to remove and 79 not upgraded.


Need to get 0B of archives.


After unpacking 188kB disk space will be freed.


Do you want to continue? [Y/n] y


(Reading database ... 141283 files and directories currently installed.)


Removing tuxkart ...


#




To test the remove command first, use:


# apt-get remove tuxpaint —dry-run




To remove all traces of a package, including configuration files, use:


# apt-get —purge remove tuxpaint




To remove several packages, use a space-delimited list:


# apt-get remove tuxkart gltron frozen-bubble tuxracer nethack galaga

0 Comments