Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
How do I uninstall a program in linux? Is it as simple as deleting the folder of the program? I'm asking this because I'm used to Windows which send files all over the system, so I was wondering if that's case, wouldn't there be files left over on my system?
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728
Rep:
Depend on how did you install this program.
If you use rpm package, use rpm -e comamnd to remove.
If you install it from the source code. It will need a little more works.
Open the make file in the directory and find out what have the install process done on your system.
I usually install using the source code. So I've got to keep the downloaded source? Im asking this because in windows, let's say I download a .exe, I install it, then download it and it doesnt affect the uninstall process... you understand?
Originally posted by lonecrow ok, so I need to keep the downloaded folder forever then?
You need to keep the directory that you built from. If you don't have the original build directory you can install a new version and then uninstall it.
OK so that means, I install firefox 1.0.6 ... delete de install folder.... then download firefox 1.0.7 .... while in its directory, I could uninstall 1.0.6 with its make uninstall?
well sometimes it's not possible to refind old packages.
most of the time it's not possible to remember exactly what configure options you used when you decided where to install originally unless you keep detailed notes.
So no a redo generally won't do.
also some packages simply don't provide uninstall targets.
sometimes you have to run install and follow the install messages to find everything.
well sometimes it's not possible to refind old packages.
most of the time it's not possible to remember exactly what configure options you used when you decided where to install originally unless you keep detailed notes.
So no a redo generally won't do.
also some packages simply don't provide uninstall targets.
sometimes you have to run install and follow the install messages to find everything.
OK so you suggest doing what? using the rm command to remove the whole folder? Keeping the sources in another folder and then using it to uninstall? What do you mean by "the same options you used when installing it" I never use options when installing software.... I mean, the only thing Im doing is ./configure and it always returns with error... Am I missing something?
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728
Rep:
You don't need to keep the whole source directory.
Just keep the make file.
The make file contains what do install process have done. You can track what have been copy to your system and remove it.
I know this is a boring work, but as foo_bar_foo said, sometimes there is no uninstall target include in the Make file.
So, remove the file yourself will work anytime.
well when you say the whole folder what is that ?
most things if you just use ./configure go into the directory structure of /usr/local
so the executable is in /usr/local/bin the libs are in /usr/local/lib the includes are in /usr/local/include and like that. so most of the time there is no single directory.
like i said you keep the build dir around and if you need to remove you try
make uninstall
if that doesn't work you repeat
make install
and use the output to carefully hunt down and remove all the installed files
but in terms of ./configure options
yes you are missing something !
always run
./configure --help
first
look at all the available options in ./configure --help for firefox (since you used it as an example)
Great... Thanks very much from you two, you've been of great help. I've been brained-washer by windows, so I have the bad habit of thinking everything goes the same way in Linux... I think I'll definitely need some time getting used at installing program. I know its off-topic, but can you give me a few pointers as to why I'd rather use Linux instead of Windows?
Thanks again for EVERYTHING, I really appreciate guys!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.