I have a text file with a package on each line. How can I remove all the packages in that text file from the system?
Also, if one package cannot be removes/wasn't installed in the first place can I make is continue.
What I would ideally like is an sudo apt-get remove packages.txt type solution.

apt-getor so on for removing. I prefer to usedpkg --purge MYPACKAGE, because remove just remove and--purgeremove files and control files.Second note is dependecies , did you check them? – Mohsen Pahlevanzadeh Aug 30 '12 at 18:41--purgedoes) isn't specific todpkg. You can also usesudo apt-get purge packagenameor (equivalently)sudo apt-get --purge remove packagename. Furthermore, you will often not want to remove configuration files, as they take up very little space and you might want to reinstall the package (and have it use the previous configuration) in the future. – Eliah Kagan Aug 30 '12 at 23:51