Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 69
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
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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
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
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.

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

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

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.


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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:37 PM.

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