LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-19-2008, 06:06 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,004

Rep: Reputation: 67
How do you uninstall a program from terminal?


Let's say I'm using fedora 8 in the terminal and I download a tar.gz file

I tar -xvvzf *.tar.gz

I cd into that extracted dir

I run ./configure so that the source can be configured to my distro

I run make && make install && make clean

Now that the program is installed, how would I uninstall it later on down the line?

Also, how do you restore deleted files?
 
Old 08-19-2008, 06:36 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
If you don't install with the package manager, all you can do is track down the files and delete them. Hopefully they will all have names that include the name of the program.

If you delete files and directories from a terminal, there is no way to restore in the normal GUI sense (eg trashcan). You would have to use a file recovery utility like Testdisk. The files would only be recoverable if nothing else had been written to the relevant portions of the drive.
 
Old 08-20-2008, 02:36 AM   #3
resetreset
Senior Member
 
Registered: Mar 2008
Location: India
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,320

Rep: Reputation: 62
try make uninstall.
 
Old 08-20-2008, 04:52 AM   #4
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
But note that make uninstall only works if you don't make clean first.

Robin
 
Old 08-20-2008, 04:57 AM   #5
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by bitpicker View Post
But note that make uninstall only works if you don't make clean first.

Robin
make uninstall works only if it is supported in makefile. Many programs don't support "make uninstall". So making software package (and then installing package) instead of directly installing from source was a better idea.
 
  


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
Running program from terminal with & does nothing, program stops DittoAlex Linux - General 1 10-05-2007 02:35 AM
how do i uninstall things using the terminal jilloper Linux - Software 1 08-25-2007 02:16 PM
Uninstall program windefault Linux - Newbie 3 09-12-2004 07:20 PM
How do I uninstall a program? sourlinux Linux - Software 4 01-27-2004 08:25 PM
How do i uninstall a program? BajaNick Linux - Software 5 07-10-2003 08:33 AM


All times are GMT -5. The time now is 06:54 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration