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 - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-30-2021, 08:56 AM   #1
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 15.0 64bit
Posts: 190

Rep: Reputation: 23
Sqg & Sbopkg - build / install only new (not jet installed) packages in a queue


Hi all,
I was wondering if there was an out-of-box way to give sbopkg a queue, generated with sqg, and prevent to build already installed packages.

In other words I want to:
- create a queue file with sqg (sqg -p package)
- launch sbopkg on that queue file (sbopkg -i package)
- but compile/build just the new packages of the queue, wasting no time with those yet installed

At now, I launched a little dirty oneliner like this to edit queue generated by sqg:
Code:
while read p; do if ls /var/log/packages |grep -q $p; then echo $p; else echo $p >> newqueue.sqf; fi; done < /var/lib/sbopkg/queues/oldqueue.sqf
And finally used it with sbopkg... But...

Is there a better (automated) way for this task?
 
Old 08-30-2021, 08:58 AM   #2
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 591

Rep: Reputation: Disabled
Use the "-k" parameter of sbopkg perhaps?
Code:
-k   When used together with -b, -d, or -i, this option tells sbopkg to skip
 (i.e., don't process) any package it finds to be already installed.

Please note that only a name comparison is performed, so when this option is specified
 sbopkg will also omit the build of different versions of installed packages.
 
Old 08-30-2021, 08:59 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
you are looking the "-k" option
Code:
sbopkg -k -i queue
have a look at "man sbopkg".

EDIT: Windu has been faster!
 
Old 08-30-2021, 10:46 AM   #4
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 15.0 64bit
Posts: 190

Original Poster
Rep: Reputation: 23
Many thanks folks!
Didn't remember that option...
 
  


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
[SOLVED] [Sbopkg] - sqg generates wrong queue file for "linphone" joenew Slackware 11 01-06-2018 10:09 AM
Faster implementation of sbopkg's sqg queue file generator. Richard Cranium Slackware 7 08-07-2016 11:12 AM
sbopkg/sqg vs sbotools? Didier Spaier Slackware 2 11-11-2015 04:39 AM
sqg - sbopkg queuefile generator chess Slackware 22 12-30-2014 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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