LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 11: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, 01:33 AM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, PCLinuxOS
Posts: 684

Rep: Reputation: 95
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, 06:31 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,104

Rep: Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489
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, 04: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 04:35 AM
[SOLVED] Automated Download Problem - shell ftp vs Perl emmalg Linux - Software 3 06-01-2009 01:34 PM
Automated slackware installation Josephus Ross Programming 5 03-09-2007 05:01 AM
Would an Automated Installation process Help? Kannies Linux - Software 1 12-28-2005 10:48 AM
Automated installation Megiddo Linux - Newbie 7 05-20-2004 04:18 AM

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

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