Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would like to remove all traces of a program I recently installed but no longer want, I've come up with the idea of writing a little script to do this but i've got stuck.
So far I just have:
find * / | grep $1 >> /tmp/$1.remove
Which is gives me a list of anything contating $1, all I want to do now is input that into "rm" to delete it all, what command should I use?
If you're have a basic knowledge of makefiles (or any scripting for that matter) you can read the makefile and find the unistall info. It's usually just make install in reverse; i.e. whatever files were copied using make install are then deleted using make uninstall. I have found that most make uninstalls work fine, and if you find any problems with the makefile send an email to the author and let them know.
In the future, you could also use CheckInstall, which will create packages in a format (compatible with Redhat, Debian, and Slackware for sure) that can be uninstalled using that particular distributions package management system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.