Remove Software Packages and Dependencies for Debian


apt-get remove [package]

If you no longer want a package on your system, apt makes it easy to uninstall it: Instead of apt-get install, you use apt-get remove. This command works exactly contrary to apt-get install: It uninstalls the packages you specify, along with any dependencies. Once again, reference the package name, not the filename, so run apt-get remove sshfs, not apt-get remove sshfs_1.1-1_i386.deb.

# apt-get remove sshfs Password: The following packages will be REMOVED:     sshfs After unpacking 98.3kB disk space will be freed. Do you want to continue [Y/n]? 


Removing a package actually doesn't remove every vestige of a package, however, because configuration files for the removed package stick around on your computer. If you're sure that you want to remove everything, use the --purge option.

# apt-get --purge remove sshfs Password: The following packages will be REMOVED:     sshfs* After unpacking 98.3kB disk space will be freed. Do you want to continue [Y/n]? 


Using --purge, the packages that apt is about to remove are marked with asterisks, indicating that associated configuration files are going to be removed as well.



Linux Phrasebook
Linux Phrasebook
ISBN: 0672328380
EAN: 2147483647
Year: 2007
Pages: 288

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net