LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-05-2013, 07:05 AM   #1
PeterUK
Member
 
Registered: May 2009
Posts: 275

Rep: Reputation: 16
Slackware- Creating my own package archive- loading from an script


I am installing everything from zero. And I would like to create my own archive of packages archive but also I want to be able to tell in in a text list of package from a scripts.

The is some question that comes to mine.

-How can I run a series of script from a script?

I mean to run a xxxx.SlackBuild and make if wait for a success output to move in the next yyyy.SlackBuild to be execute.maybe exit or just give a message and move to the next one.

-The other question that come to mine is do I need to create the package again (run xxxx.SlackBuild) or just install the xxx_SBo.tgz file. It may be easy if the same PC but what about if its different PC , Does the hardware matter? Maybe the depends file version has changed? Is may be a good practice to actually create the xxx_SBo.tgz file by the script to compile it again and dont keep the xxx_SBo.tgz files .

-Other this I still not very clear is about the verification, I created a Threads about it but the use of it is not very clear, I want to create maybe my own key and check the package or the compress file for integrity before to unpack and compile. That may guaranty is my files are not gone corrupt it in the archive or in transmission? Right?

You can maybe point out issues I have not though about it. Thanks
 
Old 07-05-2013, 07:53 AM   #2
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Rep: Reputation: 87
Quote:
How can I run a series of script from a script
Just write a script that call other scripts

Quote:
The other question that come to mine is do I need to create the package again (run xxxx.SlackBuild) or just install the xxx_SBo.tgz file. It may be easy if the same PC but what about if its different PC , Does the hardware matter? Maybe the depends file version has changed? Is may be a good practice to actually create the xxx_SBo.tgz file by the script to compile it again and dont keep the xxx_SBo.tgz files
If you build and install the dependencies in the right order, then you may install these created packages on another computer. It would help if they run the same Slackware Version and they must have the same architecture (32bit/64bit/arm).

To check for integrity of files, you can compare the md5sum of the packages.
These are some of mine, yours will be different:
Quote:
chris@acer:~/packages$ md5sum *.txz
f334cf73e7c6bb0f88bf6e28320c610e AMD-2.2.2-x86_64-1_SBo.txz
9c7640ea532b2a070deb0bd673a61647 CAMD-2.2.2-x86_64-1_SBo.txz
f217864f85af4abc2625a9f5a8a9af48 CCOLAMD-2.7.3-x86_64-1_SBo.txz

Last edited by ChrisAbela; 07-05-2013 at 08:02 AM.
 
Old 07-05-2013, 08:38 AM   #3
solarfields
Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware
Posts: 445

Rep: Reputation: 113Reputation: 113
If you need to execute SlackBuild scripts in a specific order, you may want to check sbopkg, build queue files and sqg:
http://www.sbopkg.org/
http://www.sbopkg.org/queues.php
https://code.google.com/p/sbopkg/sou...oc/contrib/sqg
 
  


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
[SOLVED] Creating a Slackware package. damgar Slackware 8 07-16-2012 01:48 AM
Old Slackware from 1994/95, LaTeX-package KOMA-Script in Slackware (t-series) markush Slackware 9 05-28-2012 07:22 AM
Creating a php package for Slackware 13.1 Ramurd Slackware 4 10-13-2010 06:51 PM
Cron job script creating corrupt archive roach7711x Linux - Server 2 04-08-2009 04:01 AM
installing an unstable package from debian's online package archive ganninu Debian 13 11-07-2003 03:00 PM


All times are GMT -5. The time now is 11:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration