LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 10-22-2005, 12:13 PM   #1
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Rep: Reputation: 30
Quick and simple question please!


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?

Thanks for the help on that stupid question.
 
Old 10-22-2005, 12:24 PM   #2
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
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.
 
Old 10-22-2005, 12:32 PM   #3
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
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?
 
Old 10-22-2005, 01:26 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You need to "make uninstall" as root from the direcory that you installed from.
 
Old 10-22-2005, 01:28 PM   #5
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
ok, so I need to keep the downloaded folder forever then?
 
Old 10-22-2005, 04:19 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Quote:
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.
 
Old 10-22-2005, 05:04 PM   #7
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
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?
 
Old 10-22-2005, 05:40 PM   #8
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
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.
 
Old 10-22-2005, 08:55 PM   #9
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
Quote:
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?
 
Old 10-22-2005, 09:25 PM   #10
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
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.
 
Old 10-22-2005, 09:31 PM   #11
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
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)
 
Old 10-22-2005, 10:37 PM   #12
lonecrow
Member
 
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Original Poster
Rep: Reputation: 30
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!
 
Old 10-22-2005, 10:39 PM   #13
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
Quote:
Originally posted by lonecrow
I know its off-topic, but can you give me a few pointers as to why I'd rather use Linux instead of Windows?
See the thread "linux".
 
Old 11-15-2005, 08:38 AM   #14
arichardson
LQ Newbie
 
Registered: Nov 2005
Posts: 25

Rep: Reputation: 15
Excellent thread! I learned something new
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick simple KDE question dangerousdave Linux - Newbie 1 03-29-2005 12:33 PM
Quick & Simple Question benrose111488 Programming 7 01-06-2005 11:02 AM
Quick Simple Question Oracl3 Linux - Newbie 4 04-05-2004 08:40 PM
very quick/simple rpm question thugbot3oo5 Linux - Newbie 13 03-03-2004 01:31 PM
simple, quick question.. b0uncer Linux - Hardware 4 12-28-2003 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration