LinuxQuestions.org
Help answer threads with 0 replies.
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 05-24-2004, 11:48 PM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
how do i remove programs?


in windows i just find the uninstaller, or use add/remove programs. i installed NWN just to see what it was like to play a game on linux. i like it, but i dont play it often enough to justify the roughly 2G of space it is taking up on my 30G HD.

id like to know how to uninstall/remove it without screwing things up.

thanks for the heads up.
 
Old 05-24-2004, 11:57 PM   #2
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Rep: Reputation: 15
If the software install was a RPM you can find out how to remove RPMs and other information by typing RPM --help in a terminal.

I think what you are looking for is rpm -e name of package

I know Red Hat and Fedora use RPMs and I thanks mandrake does to. If the install was not a RPM package it wont help

Last edited by aaronruss; 05-24-2004 at 11:59 PM.
 
Old 05-24-2004, 11:59 PM   #3
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
thanks, but it was from a tar.gz source install.

guess i should of been more specific on how it was installed.
 
Old 05-25-2004, 01:47 AM   #4
Bamse123
Member
 
Registered: Apr 2003
Location: Rovaniemi, Finland
Distribution: Slackware
Posts: 69

Rep: Reputation: 15
I guess it depends. OpenOffice.org, for example, can be removed by running ./setup and choosing "remove". See the programs website for docs, that usually helps.

On RPM based systems, use the rpm command, as aaronruss said.

On Slackware based systems, run pkgtool, then choose "remove".

You can always remove it manually, tho, if you know how the package is installed. What files the installation has generated and where...


This is a question I've been wondering myself, too. Maybe some more experienced user could tell that.

Regards,
Bamse
 
Old 05-25-2004, 01:52 AM   #5
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
If you installed it by
./configure
make
make install
if you still have the source directory where you ran the installation, some programs have an uninstall feature
make uninstall
 
Old 05-25-2004, 02:29 AM   #6
AnthraxCN
LQ Newbie
 
Registered: Mar 2004
Posts: 22

Rep: Reputation: 15
cd /your/source_directory/
then run the command: make uninstall
The program will be removed.
 
Old 05-25-2004, 11:14 AM   #7
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
ok thanks guys.
 
Old 05-25-2004, 11:23 AM   #8
Rajahuroman
Member
 
Registered: May 2004
Location: Romania; Arad
Distribution: Archlinux
Posts: 91

Rep: Reputation: 15
Just one more add to this:
In case you have deleted your source directory (which you might have, because there isn't much reason you would keep it after installation if you aren't really keened on modifying the sources yourself) then you can run untar the sources again, run ./configure with the same parameters again, run make again and then you can run make uninstall and the whole thing will be uninstalled.
 
Old 05-25-2004, 11:54 AM   #9
jago25_98
Member
 
Registered: Jun 2001
Posts: 302

Rep: Reputation: 30
If installed from binary: Depends on distro, might be "emerge -Cp" "rpm -e" "apt-get remove"

If from source: usually go back into the directory where you compiled and did "make install" and run "make uninstall". If you've deleted that directory there's probably no record as to where it installed its files.
 
Old 05-25-2004, 01:20 PM   #10
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
if i remember correctly the NWN.tar.gz (not full file names) auto installed when i tar zxvf file.tar.gz and made thier own subdirectory in my /home/EU dir.

is it safe to just rm -R /home/EU/NWN

?
 
Old 05-25-2004, 01:38 PM   #11
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
Lleb_KCir

Just as a side note take a look at

Checkinstall

To late now but may be useful for future use

Pete
 
Old 05-25-2004, 04:08 PM   #12
Rajahuroman
Member
 
Registered: May 2004
Location: Romania; Arad
Distribution: Archlinux
Posts: 91

Rep: Reputation: 15
It is safe but if your program also installed shared libraries or pixmaps or commands in the /usr/bin or /bin directory then those files won't be removed. In order to uninstall programs I untar the directory again, then run
./configure <same parameters as first time>
make
sudo make install
sudo make uninstall

The make install line will overwrite your previous installation and will recreate the uninstall scripts which will containd information about all the files you installed (which are the same as the first time you installed them). When running sudo make uninstall the program is removed completely. After that you can safely remove your source directory. Your program is now completely uninstalled.
 
Old 05-27-2004, 07:18 AM   #13
postmaik
Member
 
Registered: May 2004
Location: @ Lake Constance, Germany
Distribution: FC3, Kernel 2.6.10
Posts: 46

Rep: Reputation: 15
The best way of handling installation of binaries you built your own is "stow".
It's a tool that creates all symlinks when you install software. If you want to remove the installed software you can do it without "make uninstall" and everything - you just have to "unstow" this software.
stow can be downloaded at sourceforge.net. Help is available then after unpacking the source files. And of course after installing stow you have a manual. Try it. It's really nice!
 
  


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
How to remove compiled programs? piggysmile Linux - Software 2 03-22-2005 06:25 AM
How to remove programs from startup? RedHatMasta Linux - Software 3 12-24-2003 05:14 PM
RH 9.0 Add/Remove Programs rosco Linux - Newbie 0 09-12-2003 06:05 PM
Remove Programs RedHatMN Linux - Newbie 1 11-30-2001 11:02 AM
Remove Programs RedHatMN Linux - Software 2 11-30-2001 10:51 AM

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

All times are GMT -5. The time now is 12:18 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
Open Source Consulting | Domain Registration