LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-20-2006, 10:40 PM   #1
salemd
LQ Newbie
 
Registered: Mar 2006
Distribution: SuSe 10.0
Posts: 3

Rep: Reputation: 0
how to uninstall packages installed with make


Hi, I would like to upgrade some software (Ruby in particular) I have
installed with 'make.' So before upgrading I think (am I right about this?) that I should first uninstall the older version. But how do I do that? I have looked in the source folder but found nothing about uninstalling. I am refering to Ruby, but my question is really about uninstalling packages (not RPM) in general.
Thanks for reading.
Salemd
 
Old 04-20-2006, 10:55 PM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Uninstalling files installed with make can be troublesome. The first thing to check would be if there is an uninstall option in the Makefile for the particular application. Failing that, look at the Makefile to determine what and where it installed. One thing you can do to help minimize non-rpm based headaches is to always install in /usr/local. Most rpms will install in /usr by default, and /usr/local should be lower on the prioriy list for execution paths.

Also, try to find an rpm if possible (obviously). If there is an rpm available, but it is older and out of date, you might be able to make the new software available through rpm by installing the older program's src.rpm, and updating the <program>.spec file to use the new source code. Failing that, you could possibly make an rpm by following the spec file from a similar application (say unrar for example). Check one of the yast repositories for ideas.
 
Old 04-20-2006, 11:01 PM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Most packages built from source can be uninstalled using "make uninstall" or some using some kind of uninstallation script (always check the README or INSTALL docs). Some packages don't have uninstall scripts, which can be a pain because you may have to remove them manually
 
Old 04-20-2006, 11:12 PM   #4
salemd
LQ Newbie
 
Registered: Mar 2006
Distribution: SuSe 10.0
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks to GrueMaster and reddazz for replying so fast. I do have one question, when you say 'remove them manually' I take that to mean go in as root and delete.
Is that right?
Thanks again -- your answers are helpful.
 
Old 04-20-2006, 11:18 PM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by salemd
Thanks to GrueMaster and reddazz for replying so fast. I do have one question, when you say 'remove them manually' I take that to mean go in as root and delete.
Is that right?
Thanks again -- your answers are helpful.
Removing the package manually involves looking for and removing every file that belongs to that package which is not an easy taks if things are installed in multiple directories. "make uninstall" would remove all the files for you.

Last edited by reddazz; 04-20-2006 at 11:27 PM.
 
Old 04-20-2006, 11:24 PM   #6
salemd
LQ Newbie
 
Registered: Mar 2006
Distribution: SuSe 10.0
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks again reddazz, that's what I thought you meant -- just wanted to make sure before I did anything.
 
  


Reply

Tags
make, uninstall


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 save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 12:36 PM
Sort installed packages by # of dependant packages installed brianez21 Debian 1 01-18-2006 06:06 PM
How to uninstall package installed with make install dhirsolo Linux - Software 3 07-29-2005 03:11 PM
Source uninstall with 'make uninstall' HOWTO! Creeps Linux - Newbie 6 09-14-2004 12:03 PM
libjpeg already installed... i try to uninstall... not installed... thiscompismessing Laptop2250 Linux - Software 1 11-21-2003 09:20 PM


All times are GMT -5. The time now is 10:58 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration