LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-28-2016, 02:55 PM   #1
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
sbotools and slackpkg+ -- repo priority


I've only recently started using the 3rd-party Slackware package managers, and what a great addition they are! Until now I maintained my own small group of machines manually, but quite a number of my friends and family are so fed up with Microsoft's aggressive behaviour I've ended up installing Slackware on their machines too.

Which brings me to sbotools and slackpkg+. I can see that they should, in theory, make life a bit easier maintaining anything more than a handful of computers, but in practice I found out yesterday that the same software in different repos can throw a spanner in the works.

To put these tools through their paces I tried installing blender, kdenlive, cinelerra, audacity and ardour, from slackbuilds.org, using sboinstall. I first installed ffmpeg, however, from the alienbob repo, using slackpkg+. I now find that slackpkg upgrade-all wants to downgrade several dependencies brought in by sbotools.

What is the solution here? Blacklisting? The prospect of maintaining a blacklist of all the multimedia dependencies is not appealing, and would negate the benefit of using the package managers in the first place. I could omit the alienbob repo from slackpkgplus.conf and find 99% of what I need at slackbuilds.org but that would be at the cost of more recent software like Eric's ffmpeg, wine and vlc.
 
Old 07-28-2016, 03:40 PM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Were these troublesome dependencies installed by you from both sources (i.e., multiple versions of the same libraries), or do you mean that you only installed them from SBo and now slackpkg is trying to replace the SBo versions with the ones from Eric's repo?
 
Old 07-28-2016, 03:57 PM   #3
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Original Poster
Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by montagdude View Post
Were these troublesome dependencies installed by you from both sources (i.e., multiple versions of the same libraries), or do you mean that you only installed them from SBo and now slackpkg is trying to replace the SBo versions with the ones from Eric's repo?
I installed all but ffmpeg from sbo. See attached file for slackpkg upgrade-all results. It also wants to downgrade qemu 2.6.0 from sbo to qemu 2.5.0 from alienbob.
Attached Thumbnails
Click image for larger version

Name:	screenshot03.jpg
Views:	67
Size:	212.9 KB
ID:	22592  
 
Old 07-28-2016, 04:09 PM   #4
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Interesting. I didn't realize that would happen. I suppose one other option besides blacklisting would be to not use slackpkg for the alienbob repo (since you only need a few packages from it), and just install those ones manually. Granted, that's not an ideal solution, but it might be less trouble than blacklisting a bunch from SBo.
 
Old 07-28-2016, 04:22 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I think you're looking for the greylist option of slackpkg+

Quote:
GREYLIST

Sometime you may want that slackpkg+ does not install some package in the upgrade-all
process. To do that you must uncheck the package everytime or add it in the
'blacklist' file. The first method may be onerous when you use upgrade-all frequently.
The second method does not allow you to know which package version is available.
A thirdy method is to put it in the 'greylist' file.
All packages listed in greylist will be available to install and listed in slackpkg
dialog, but they will be unchecked by default so you are sure to not install it
wrongly.
You may decide also to greylist one entire repository. A good idea is to greylist
all thirdy party repository so an upgrade-all automatically upgrade official
slackware packages but force you to review all other packages so to be sure on what
you install.

SOURCE: slackpkg README
Unfortunately, I don't have much experience with it, so my recommendation would be to just blacklist all SBo packages from slackpkg, as that will completely solve your problem of any downgrades presented by other repos. The downside is you wouldn't get any newer versions if (for example) Eric's version is newer than the version on SBo.
 
Old 07-28-2016, 04:48 PM   #6
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Original Poster
Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by montagdude View Post
Interesting. I didn't realize that would happen. I suppose one other option besides blacklisting would be to not use slackpkg for the alienbob repo (since you only need a few packages from it), and just install those ones manually. Granted, that's not an ideal solution, but it might be less trouble than blacklisting a bunch from SBo.
That's what I was thinking. Slackware suddenly feels more fragile when you start doing that though.
 
Old 07-28-2016, 04:49 PM   #7
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Original Poster
Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by bassmadrigal View Post
I think you're looking for the greylist option of slackpkg+
Greylisting is interesting. I'll study it more closely tomorrow. At the moment I'm just assessing the alternatives on a throwaway machine.
 
Old 07-29-2016, 03:46 AM   #8
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by gezley View Post
Greylisting is interesting. I'll study it more closely tomorrow. At the moment I'm just assessing the alternatives on a throwaway machine.
if your main source of softwares is SBo and that you grab only some packages from 3rd-party repositories with slackpkg+, then it's simply better to add SBo packages on slackpkg's blacklist (ie. add [0-9]+_SBo in /etc/slackpkg/blacklist).

Using greylist in this scenario will only complicate package management. Furthermore, greylist only works in dialog mode, and thus, execution of slackpkg in batch mode could lead to unexpected upgrade/downgrade. Example :

Code:
$ cat /etc/slackpkg/greylist | grep SBo
[0-9]+_SBo

$ ls /var/log/packages/ffmpeg*
/var/log/packages/ffmpeg-2.6.3-x86_64-1_SBo

$ slackpkg -default_answer=yes -batch=on upgrade ffmpeg

Checking local integrity... DONE
Looking for ffmpeg in package list. Please wait... DONE

[ Repository               ] [ Package                                  ]
  alienbob                     ffmpeg-2.8-x86_64-1alien.txz              

Total package(s): 1

Do you wish to upgrade selected packages (Y/n)? y

Package: ffmpeg-2.8-x86_64-1alien.txz
--2016-07-29 10:42:48--  http://taper.alienbase.nl/mirrors/people/alien/sbrepos/14.1/x86_64/ffmpeg/ffmpeg-2.8-x86_64-1alien.txz

^C
--
SeB

Last edited by phenixia2003; 07-29-2016 at 03:48 AM.
 
2 members found this post helpful.
Old 07-29-2016, 05:05 AM   #9
stormbr
Member
 
Registered: Aug 2007
Location: Brazil
Distribution: Slackware 14.1 x86_64
Posts: 37

Rep: Reputation: 26
I do something like you but I don't install sbos directly. I put them in a private repo and install from there. I have never had this problem.
 
1 members found this post helpful.
Old 07-29-2016, 06:17 AM   #10
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Doesn't slackpkg+ take into account the package name tag when deciding priorities?
 
Old 07-29-2016, 06:31 AM   #11
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by Slax-Dude View Post
Doesn't slackpkg+ take into account the package name tag when deciding priorities?
Yes, but only for repos that it's actually tracking. You can't track SBo with it, since it's a repo of SlackBuilds instead of packages.
 
Old 07-29-2016, 08:02 AM   #12
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by montagdude View Post
You can't track SBo with it, since it's a repo of SlackBuilds instead of packages.
Slackonly? http://packages.slackonly.com/pub/packages/
 
Old 07-29-2016, 08:13 AM   #13
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by Slax-Dude View Post
Yes, that would be a good option if the OP wants to use it instead of using the SlackBuilds directly from SBo. Just set slackonly higher than alienbob in PKGS_PRIORITY in /etc/slackpkg/slackpkgplus.conf.
 
Old 07-29-2016, 09:19 AM   #14
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by montagdude View Post
Yes, that would be a good option if the OP wants to use it instead of using the SlackBuilds directly from SBo. Just set slackonly higher than alienbob in PKGS_PRIORITY in /etc/slackpkg/slackpkgplus.conf.
I could be wrong, but I believe sbotools only fetches source code + slackbuild, then compiles it with all defaults, then (optionally) installs the resulting package.
If that is so, then it is no different than using the slackonly repo.

If, however, sbotools actually allows a user to specify any optional dependencies or parameters, then said user can build a local repo with just the required packages and point slackpkg+ to the resulting repo.

My point is: it is best to avoid using several package managers that may or may not be aware of each other's installed packages.
And since slackpkg+ is able to use the official slackware repos as well as third-party repos, it is a clear winner for me. Kudos once again to zerouno for making such a marvelous "plugin" (and also to all that contributed code and ideas to it).

In an ideal world, slackpkg+ would be merged with slackpkg and included in slackware proper pre-configured with repos trusted by the BDFL himself (he already publicly stated he trusts alienbob's repos by using Slackware's GPG here and here and I'm sure he trusts others in the core team as well)
 
Old 07-29-2016, 09:40 AM   #15
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Original Poster
Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by phenixia2003 View Post
Hello,
Hello!

Quote:
if your main source of softwares is SBo and that you grab only some packages from 3rd-party repositories with slackpkg+, then it's simply better to add SBo packages on slackpkg's blacklist (ie. add [0-9]+_SBo in /etc/slackpkg/blacklist).
That was easy! I need to spend time getting all of this together in my head instead of muddling through.

Quote:
Using greylist in this scenario will only complicate package management. Furthermore, greylist only works in dialog mode, and thus, execution of slackpkg in batch mode could lead to unexpected upgrade/downgrade.
The lateral thinking of a professional. Merci mon ami.
 
  


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
[Announce] sbotools 2.0 suppy Slackware 15 09-30-2016 06:39 AM
sbopkg/sqg vs sbotools? Didier Spaier Slackware 2 11-11-2015 04:39 AM
sbotools following files missing from kit Altiris Slackware - ARM 2 06-15-2015 07:13 AM
How to replace the official slackpkg repo? qweasd Slackware 10 11-13-2014 02:28 PM
process priority,nice -- small question regarding high/low priority values beeblequix Linux - Newbie 1 10-11-2006 10:22 AM

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

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