LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-11-2003, 12:43 AM   #1
alixx
LQ Newbie
 
Registered: Jun 2003
Distribution: slackware 10.0
Posts: 14

Rep: Reputation: 0
a dilema after configure, make, make install...


first question...

is there a rule on where i should extract source (tar.gz) files???
should i always extract it in /usr/src ???

after extracting the files and performing the configure, make, make install procedure, do i have to make clean???

or can i completely delete the directory that holds the extracted source??

please forgive my desperately novice/newbie question?

thanks...

ali
 
Old 07-11-2003, 12:44 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Nope.

Nope.

Yep.



But I'd only delete it if I needed space - it's convenient to have around if you want to recompile.
 
Old 07-11-2003, 12:53 AM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Convention is to put source in /usr/local/src. The reason being that if you were to (re)install a distribution, they're not supposed to do ANYTHING to the /usr/local directory tree. But no, there's nothing preventing you from putting the source anywhere you want.

I do things a little different than most. I keep the compressed source code in a separate directory (usually /usr/local/src/tarballs). Then I delete the source tree after the make install. I save some disk space, and it guarantees I get a "clean" install everytime I want to recompile.

It's only slightly more complicated if you have patches or make custom edits to the source.
 
Old 07-11-2003, 12:55 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Re: a dilema after configure, make, make install...

Quote:
Originally posted by alixx
first question...

is there a rule on where i should extract source (tar.gz) files???
A rule of thumb maybe, but no *rule* per se. /usr/src should be fine, but you can use /home/tarballs or /usr/local/files if you want (or somewhere else)
Quote:

should i always extract it in /usr/src ???

Not necessarily, see above
Quote:

after extracting the files and performing the configure, make, make install procedure, do i have to make clean???

Not necessarily, if you remove the files then there is no point. A make clean basically un-does what make does. So only if you are going to re-configure do you have to. But a make clean always helps free up some space if you are wayyy low, but see below for more info on that...
Quote:

or can i completely delete the directory that holds the extracted source??

please forgive my desperately novice/newbie question?

thanks...

ali
You can remove the directories that are created during the untarring of the tarball, yes. If space is an issue, this is a great idea. However, be aware that if you want to use something like 'make uninstall' (should it be a feature of that application, not all applications have this feature) then you'll need to make sure you configure/make exactly like you did before to use the make uninstall. But if you don't use make-uninstall, then there is no reason to keep it around (unless you are doing multiple installs on the same system? probably not though).

Cool
 
Old 01-04-2007, 12:21 PM   #5
wild_willy
LQ Newbie
 
Registered: Jan 2007
Location: Halifax, NS Canada
Distribution: Kubuntu 11.10
Posts: 5

Rep: Reputation: 0
Just so I'm completely clear . . . .

I downloaded a tar (Kopete Desklist) to /home/bill/downloads/ I then extracted it to the folder: /home/bill/downloads/32089-desklist-0.3.0 I have installed the plugin. Now I want to delete the folder: /home/bill/downloads/32089-desklist-0.3.0. It is now safe to delete the 32089-desklist-0.3.0 folder as any/all files necessary to run the Kopete Desklist plugin have been installed and/or copied to other folders?? Correct??
 
Old 01-06-2007, 09:50 PM   #6
MickyMe
LQ Newbie
 
Registered: Dec 2006
Location: North Queensland
Distribution: FC5
Posts: 9

Rep: Reputation: 0
This is a very handy thread for us newbies.

On my old Windows machine, I was able to keep WIN98 running without reinstalling because I kept track of everything I put on my machine. Anything I didn't need I made damn sure all traces were gone (except for a few registry headings) when uninstalling. The only time I ever reinstalled Windows was when my HDD died.

I wish to do the same with Linux, but no-one ever mentions where the best place for source code is, or even where to put unzipped files. It seems expected that Linux newbies should only use the software that came with their distro, and not install anything else. This just leads to newbies having cluttered filesystems which causes the same need for an annual reinstallation on Linux that you have for Windows.

Even in the "Linux for Dummies" series, there is no real mention of housekeeping when installing new software, let alone uninstalling anything. They expect you to have RPMs for every little thing you need.

Sorry for the rant. I just appreciate that this thread has useful information rather than the regular "just type configure make install and everything should work" which passes for the standard advice on this topic.
 
Old 01-06-2007, 10:42 PM   #7
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
There is no registry for coders to hide things in on our OS. If you run make uninstall as root, the program will be gone. It's config files can still exist, but as there are no files looking to these configs, so other than the 2 or 3 kb of space they use, there is nothing that needs to happen.

You don't ever need to wipe *nix and reinstall, unless the problem was created between the keyboard and the chair (aka you!). Any distro can run fine with or without compiling from source. Disk space is so cheap now, you don't need to worry about your 2 Mb tar.gz files eating up space on your 250 Gb drive.

Peace,
JimBass
 
Old 01-07-2007, 05:58 PM   #8
fat_basterd21
LQ Newbie
 
Registered: Jan 2007
Distribution: Knoppix 4.0
Posts: 1

Rep: Reputation: 0
Lightbulb

If I understand you correctly you have to do a "make clean" (please explain) and "make uninstall" will uninstall the installed files? So 1. do you "make uninstall" from the same folder you did "make install" 2. should you save the extracted folder incase you want to uninstall or can you recompile source in order to "make uninstall"

thanx in adv.
 
Old 01-07-2007, 06:09 PM   #9
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Make uninstall would have to be run in the same directory as make install. So if your app is named program, and it is unzipped in /usr/local/program, then you would cd there and as root make uninstall.

I guess you could recompile the thing to uninstall it, but that is foolish, and if you change something unknowingly with two different compiles, the uninstall may fail. Space is so cheap, you NEVER should erase the location where you compile. Just leave it there. Then if you decide to erase it later, it is just make uninstall. Game over.

Peace,
JimBass
 
  


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
configure, make and make install commands don't work for me Fenster Fedora 8 08-18-2004 10:58 AM
Problem with Configure, Make, Make Install n8tgc Linux - Newbie 2 07-13-2004 03:16 PM
Installed using ./configure, make, make install, how to remove? EnVoy Mandriva 4 03-10-2004 07:05 PM
./configure , make and make install does not work mobassir Linux - Software 7 07-30-2003 09:20 AM
Can I automate the tar, ./configure, make, and make install of about 50 packages? JoeLinux Linux - General 2 04-13-2002 03:35 AM

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

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