Posted By

stiobhart on 06/06/09


Tagged

delete server remove linux ubuntu Package uninstall dpkg apt-get pkg


Versions (?)

apt-get completely uninstall a package


 / Published in: Bash
 

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

  1. apt-get install deborphan debfoster
  2.  
  3. apt-get remove --purge <package name>
  4. apt-get clean
  5.  
  6. # the later will clean the /var
  7.  
  8. debfoster
  9.  
  10. # will show files and libraries still left after the apt-get remove --purge
  11. # if you don't recognize a library, keep it, later on, deborphan will
  12. # give you a list of 'orphaned' libraries that are hanging with no use,
  13. # and are safe to nuke.
  14.  
  15. # if you make a mistake with debfoster, type 'u' and will ask you again
  16. # if you want to keep it. When you are thru with it, invoke deborphan.
  17.  
  18. deborphan
  19.  
  20. # will give a list of libraries that are hanging just taking space
  21. # to get rid of them:
  22.  
  23. deborphan | xargs apt-get -y remove --purge
  24.  
  25. # when through with that:
  26.  
  27. apt-get clean

Report this snippet  

You need to login to post a comment.