Return to Snippet

Revision: 14560
at June 6, 2009 11:21 by stiobhart


Updated Code
apt-get install deborphan debfoster

apt-get remove --purge <package name>
apt-get clean

# the later will clean the /var

debfoster

# will show files and libraries still left after the apt-get remove --purge
# if you don't recognize a library, keep it, later on, deborphan will 
# give you a list of 'orphaned' libraries that are hanging with no use, 
# and are safe to nuke.

# if you make a mistake with debfoster, type 'u' and will ask you again 
# if you want to keep it. When you are thru with it, invoke deborphan.

deborphan

# will give a list of libraries that are hanging just taking space
# to get rid of them:

deborphan | xargs apt-get -y remove --purge

# when through with that:

apt-get clean

Revision: 14559
at June 6, 2009 11:20 by stiobhart


Updated Code
apt-get install deborphan debfoster

apt-get remove --purge <package name>
apt-get clean

#the later will clean the /var

debfoster

#will show files and libraries still left after the apt-get remove --purge, if you don't recognize a library, keep it, later on, deborphan will give you a list of 'orphaned' libraries that are hanging with no use, and are safe to nuke.

#if you make a mistake with debfoster, type 'u' and will ask you again if you want to keep it. When you are thru with it, invoke deborphan.

deborphan

#will give a list of libraries that are hanging just taking space, to get rid of them:

deborphan | xargs apt-get -y remove --purge

#when through with that:

apt-get clean

Revision: 14558
at June 6, 2009 11:20 by stiobhart


Updated Code
apt-get install deborphan debfoster

apt-get remove --purge package
apt-get clean

#the later will clean the /var

debfoster

#will show files and libraries still left after the apt-get remove --purge, if you don't recognize a library, keep it, later on, deborphan will give you a list of 'orphaned' libraries that are hanging with no use, and are safe to nuke.

#if you make a mistake with debfoster, type 'u' and will ask you again if you want to keep it. When you are thru with it, invoke deborphan.

deborphan

#will give a list of libraries that are hanging just taking space, to get rid of them:

deborphan | xargs apt-get -y remove --purge

#when through with that:

apt-get clean

Revision: 14557
at June 6, 2009 11:13 by stiobhart


Initial Code
apt-get install deborphan debfoster

apt-get remove --purge package
apt-get clean

#the later will clean the /var

debfoster

/*will show files and libraries still left after the apt-get remove --purge, if you don't recognize a library, keep it, later on, deborphan will give you a list of 'orphaned' libraries that are hanging with no use, and are safe to nuke.

if you make a mistake with debfoster, type 'u' and will ask you again if you want to keep it. When you are thru with it, invoke deborphan.*/

deborphan

#will give a list of libraries that are hanging just taking space, to get rid of them:

deborphan | xargs apt-get -y remove purge

#when through with that:

apt-get clean

Initial URL
http://www.linuxquestions.org/questions/debian-26/how-do-i-get-apt-get-to-completely-uninstall-a-package-237772/

Initial Description


Initial Title
apt-get completely uninstall a package

Initial Tags
server, linux, ubuntu

Initial Language
Bash