LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-21-2011, 10:24 AM   #1
larsmw
LQ Newbie
 
Registered: Aug 2010
Location: Denmark
Distribution: Debian lenny
Posts: 10

Rep: Reputation: 0
automated installation with perl?


Hi there,
I am making some scripts to automaticly build and install linux-software. (gcc,kernel,binutils, etc.) I have made a command to extract the packages, but how can I check if I can re-use my already extracted source-archives?

Regards Lars
 
Old 05-22-2011, 12:33 AM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
What's the purpose of your scripts? Who is the intended audience?
For example, are you building cross compilers to build software for embedded platforms?
If not, why not just install the compiler provided by your Linux distro?

To build a cross-compiler, you may want to check the crosstool-NG toolchain building project.
There are also some others.

As for a direct answer to your question, most packages have targets for 'make' like 'clean',
'distclean', 'mostlyclean' or 'realclean' to restore the directory.
If you're not confident of the results, just blow away the directory (rm -rf dir) and untar it again.
 
Old 05-22-2011, 05:31 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
.. how can I check if I can re-use my already extracted source-archives?
The safe method is not to re-use the source.
For system files like glibc, gcc, kernel, binutils :
Do not ever re-use the source code.

..
 
Old 05-22-2011, 03:25 PM   #4
larsmw
LQ Newbie
 
Registered: Aug 2010
Location: Denmark
Distribution: Debian lenny
Posts: 10

Original Poster
Rep: Reputation: 0
Hey Ken and Knud,

Thanks for your answers. You are probably right that I ought to remove the sorce-dir for every build. I am making some scripts to compile my own distrobution. https://sourceforge.net/projects/dklinux/
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated Network Installation Issue crahuldba@gmail.com Red Hat 1 09-28-2010 03:35 AM
[SOLVED] Automated Download Problem - shell ftp vs Perl emmalg Linux - Software 3 06-01-2009 12:34 PM
Automated slackware installation Josephus Ross Programming 5 03-09-2007 04:01 AM
Would an Automated Installation process Help? Kannies Linux - Software 1 12-28-2005 09:48 AM
Automated installation Megiddo Linux - Newbie 7 05-20-2004 03:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:11 AM.

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