LinuxQuestions.org
Help answer threads with 0 replies.
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 01-13-2005, 06:08 AM   #1
merlin23
Member
 
Registered: Dec 2004
Location: Vienna
Posts: 46

Rep: Reputation: 15
How to upgrade / reinstall software from source


Is there a way of deinstalling a package that I have compiled myself?
I want to do a recompile and I am not sure if everything gets overriden when I just make a new make and make install...
Do I have to delete all files befor manually?
 
Old 01-13-2005, 06:14 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
what distro?

Last edited by __J; 01-13-2005 at 06:18 AM.
 
Old 01-13-2005, 06:22 AM   #3
merlin23
Member
 
Registered: Dec 2004
Location: Vienna
Posts: 46

Original Poster
Rep: Reputation: 15
I have a Mandrake 10 installation, with newest gcc (I think 3.3.2 )
Does it make a difference on which distro if I compile from source?

Last edited by merlin23; 01-13-2005 at 06:23 AM.
 
Old 01-13-2005, 06:27 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
A little. One option is to keep the source directories around (after you make install you can run "make clean" in the source directory to get rid of the objects and executables to save a little space) but there are more options. The best in my opinion is to make an rpm of your build so you can just remove the rpm if you want to install/upgrade. Checkinstall will make an rpm for you ( Check/read the docs, I have not used this on an rpm distro) of the build that you can install. I'm sure there are other programs out there that can do the same ( maybe better).
 
Old 01-13-2005, 06:28 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you have everything that a package needs to compile then it doesn't matter what distro you try to compile the package on, it should just compile. As for uninstalling, I usually don't uninstall coz sometimes you can break things, but it's just my
 
Old 01-13-2005, 06:32 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
The reason for the distro question was some are easier than others and some have no package management at all. rpm, debs, and tgz's are all pretty easy to keep up with and manage/create/upgrade
etc... But if you were runnin say linux from scratch then its a little different.
 
Old 01-13-2005, 06:46 AM   #7
merlin23
Member
 
Registered: Dec 2004
Location: Vienna
Posts: 46

Original Poster
Rep: Reputation: 15
thanx for the quick answers...
so, how I understand this, I can just make a make clean, and all files I had previoulsy installed get deleted?
And if not, it doesn't make any difference, because a new make && make install will simply override the files...
 
Old 01-13-2005, 06:56 AM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Sorry, I confused you.

"make clean" deletes the objects files (the .o files) and executables from the source directory. So if you wanted to keep the source around (to uninstall it (see below) ) make clean would free up a little disk space.

after you do "make install" and install to the file system, if you go back to the source directory and do "make uninstall" it will uninstall whatever was installed.

So basically, if you keep the source directory around, "make uninstall" is what you want to use.

You can generally overwrite installs and be fine (but its not guaranteed). This is the standard procedure for some packages like glibc.

you might want to check checkinstall and see if it will work for you. It's pretty painless and makes it easy for upgrades/removals (I've used it on Slackware and Debian but not on an rpm distro). to use it just do your normal:

./configure
make

but instead of make install do:
checkinstall

and it will make an rpm for you.
 
Old 01-13-2005, 07:04 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I agree with __J checkinstall would be a good tool to use to create your own packages from source. I have never used it on an rpm based distro coz I can make my own rpms but on slack, it works like a wonder. If you have a lot of hard disk space it doesn't hurt to keep the sources around.
 
  


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
reinstall or upgrade rob.rice Slackware 8 04-20-2005 08:31 PM
Easier, upgrade or reinstall? grilledsalad Linux - Newbie 3 01-19-2005 12:03 PM
If I upgrade my hardware do I have to reinstall or upgrade? sephiro499 Mandriva 2 10-20-2004 07:08 AM
9.2 upgrade or reinstall Langobardix Mandriva 1 12-19-2003 03:37 PM
upgrade/reinstall and /home BrianNJ Linux - Distributions 2 11-25-2003 11:45 AM

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

All times are GMT -5. The time now is 10:27 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