LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-10-2013, 03:53 AM   #1
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,949

Rep: Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972
slackpkg+: setting PKGS_PRIORITY for multiple third-party repositories


Hi,

I'm happily using zerouno's slackpkg+. This nifty plugin has really changed my life as a sysadmin and saved me countless hours when managing multiple machines with the same setup.

Back in my CentOS days, I've been using the yum-priorities plugin (written by ex-Slacker Daniel de Kok), which enables the user to set fine-grained priorities for third-party repositories. Every repository has a priority between 1 and 99, and the one with the lower priority number takes precedence over another with a higher number.

Now I try to copy this behaviour with slackpkg+, but I don't know how. I'll try with an example.

I'm using two third-party repositories:
  1. Eric Hameleers' Multilib repository for Slackware64
  2. My own repository for MLWS.

In my own repository I have two modified packages, qt and freetype, and I want to provide multilib packages for these two packages. Which means:
  1. My own repo has to take precedence over Eric's Multilib repository.
  2. Eric's Multilib repository in turn has to take precedence over a standard Slackware mirror.

Any idea if this sort of cascading priority setup is possible with slackpkg+?

Cheers,

Niki
 
Old 09-10-2013, 04:21 AM   #2
Raveriux
Member
 
Registered: Jul 2013
Location: Lithuania
Distribution: Slackware64 14, Slackware64 -current, Maemo
Posts: 80

Rep: Reputation: Disabled
from slackpkg+ readme:

Quote:
priority configuration:

When a package is present in more than one repository the package will be searched found in the following order:

1) as listed in PKGS_PRIORITY
2) as listed in Official Slackware Repository (as configured in slackpkg.conf)
3) as listed in REPOPLUS
4) all other defined in MIRRORPLUS
 
2 members found this post helpful.
Old 09-10-2013, 04:51 AM   #3
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 276

Rep: Reputation: 84
PKGS_PRIORITY=( mlws:.* multilib:.* )
 
1 members found this post helpful.
Old 09-10-2013, 05:35 AM   #4
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 299

Rep: Reputation: 179Reputation: 179
Hello,

You can give full priority to your repository over multilib as below :

Code:
PKGS_PRIORITY=( mwls:.* multilib:.* )
Or if you want to give priority only to your qt-compat32/freetype-compat32 packages over multilib, you can do this :

Code:
PKGS_PRIORITY=( mwls:qt-compat32 mwls:freetype-compat32 multilb:.* mwls:.* )
However, keep in mind that :
  • Your qt-compat32/freetype-compat32 must have, at least, different build numbers than in official multilib, otherwise, if the multilib is installed prior to your mwls packages, the installed qt-compat32/freetype-compat32 will not be upgraded to the versions from mwls when running "slackpkg upgrade-all"

  • Once your qt-compat32/freetype-compat32 are installed, the command "slackpkg upgrade multilib" should be avoided, otherwise this will upgrade the installed qt-compat32/freetype-compat32 packages to the versions from official multilib repository. To avoid this, the commands "slackpkg upgrade-all" or "slackpkg upgrade mwls multilib" should be used instead.

  • On a clean system (without any package from mwls and multilib repositories), even with this PKGS_PRIORITY configuration, the command "slackpkg install multilib" will install the qt-compat32/freetype-compat32 version from the multilib repository, not from mwls. To avoid this, the command "slackpkg install mwls multilib" should be used instead.



--
SeB
 
1 members found this post helpful.
Old 09-10-2013, 06:55 AM   #5
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,949

Original Poster
Rep: Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972
OK thanks very much everybody!
 
  


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
slackpkg vs. third-party package repository kikinovak Slackware 278 12-13-2014 10:23 AM
[SOLVED] adding third party repositories in CentOS! avee137 Linux - Newbie 2 05-20-2010 02:55 PM
Third-party Repositories sfxpt Slackware 5 05-18-2008 02:54 PM
RHEL 5 and 3rd Party Repositories. zcrxsir88 Linux - Server 5 02-21-2008 05:20 AM
RHEL 5 and 3rd Party Repositories. zcrxsir88 Linux - Security 2 02-18-2008 08:58 PM


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