LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2009, 04:42 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
the source program after compiled


I have download a apache file apache_1.3.41.tar.gz , and copy it to /tmp , then compile it ( configure , make , make install ) , I have complete successfully to compile it , then it will automatically copy the apache program to /usr/sbin and/or some other directories , I use it well .

I would like to ask can I remove the directory /tmp/apache_1.3.41now , is this directory still useful ? thx
 
Old 02-12-2009, 04:59 AM   #2
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
In principle, you can delete it.

I keep my sources for a while, just in case - I've got a directory for sources only in my home dir which I clean up from time to time.
 
Old 02-12-2009, 05:34 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
If you are running out of disk space delete it. Or keep it. Either way, it would not affect your work.
 
Old 02-12-2009, 07:20 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
In any event, if you leave it in /tmp it will be gone the next time you reboot.
cheers,
jdk
 
Old 02-12-2009, 02:28 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
You may want to consider adding an extra step. When you use make install to install something to the system the only easy way to remove it is by the uninstall script (if the dev built one) in the source. So if you delete the source, you delete the uninstall script. If you go ahead and build the rpm(assuming rpm based distro) and install via the package manager, removal is then a trivial task. With common apps (like apache) you can grab the spec file from the source rpm, change whatever options in the spec file to reflect your needs(same as compile options), and rebuild the rpm. For less common apps(no src rpm available) it can be a little more work.
 
Old 02-12-2009, 02:28 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
You may want to consider adding an extra step. When you use make install to install something to the system the only easy way to remove it is by the uninstall script (if the dev built one) in the source. So if you delete the source, you delete the uninstall script. If you go ahead and build the rpm(assuming rpm based distro) and install via the package manager, removal is then a trivial task. With common apps (like apache) you can grab the spec file from the source rpm, change whatever options in the spec file to reflect your needs(same as compile options), and rebuild the rpm. For less common apps(no src rpm available) it can be a little more work.
 
Old 02-12-2009, 03:20 PM   #7
metrofox
Member
 
Registered: Jan 2009
Location: Palermo, Italy
Distribution: Slackware
Posts: 236

Rep: Reputation: 37
Quote:
Originally Posted by jdkaye View Post
In any event, if you leave it in /tmp it will be gone the next time you reboot.
cheers,
jdk
Really? I knew that inside of /tmp there are caches and temporary files, and just caches and temporary files will be gone once reboot PC, sincerely I do not know how it works, but I'm sure that in my slack it doesn't exist, I've got old files saved there, and the terminal doesn't give any error about it. Let me know, bye.
 
  


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
copying compiled program to another computer? babag Linux - Newbie 2 05-28-2008 05:41 PM
Why such a simple program can't be compiled? zhuqlfeixia Programming 2 12-13-2005 08:30 AM
what is a.out means...when we compiled C program indian Programming 8 09-17-2004 01:32 AM
how to run C++ compiled program legend1079 Linux - Newbie 2 03-20-2004 06:40 AM
executing program compiled gcc purusingh Programming 1 08-25-2003 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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