LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05:06 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
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, 05:36 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 01:36 AM   #3
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
try make uninstall.
 
Old 08-20-2008, 03: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, 03: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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