LinuxQuestions.org
Visit Jeremy's Blog.
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-23-2019, 03:29 AM   #691
marcusmaria
LQ Newbie
 
Registered: Jun 2019
Posts: 11

Rep: Reputation: Disabled

Hi Matteo,

thanks for the explanation. If I understand correctly, all repos defined as MIRRORPLUS will have a higher priority than the slackware default repositories, and all repos defined as REPOPLUS won't, right?

My setup is not so complex, I just use alien, restricted and ktown on current, all configured as MIRRORPLUS. Afaik alien does only overwrite system packages if it's really necessary.

This is my PKGS_PRIORITY=( restricted:vlc ktown ) just to make sure vlc is installed from restricted and not from the alien repository.

My initial question was more about how to write it in the configuration file. So is it best to do it like above or does the following also work:

PKGS_PRIORITY=( restricted:vlc )
PKGS_PRIORITY=( ktown )

so adding two entries instead of PKGS_PRIORITY=( restricted:vlc ktown ). Even though I am not sure if this will have the same effect, maybe yes when the options are read top-down. So the above might also result in ( restricted:vlc ktown )?

Greets
Marcus
 
Old 07-23-2019, 03:35 AM   #692
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 575

Rep: Reputation: 165Reputation: 165
MIRRORPLUS is mandatory (it is the repository url)

repositories added in PKGS_PRIORITY have the higher precedence.

You cannot specify two rows for PKGS_PRIORITY since the second override the first, so the correct syntax is
PKGS_PRIORITY=( restricted:vlc ktown )
 
Old 07-23-2019, 03:48 AM   #693
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 915

Rep: Reputation: 814Reputation: 814Reputation: 814Reputation: 814Reputation: 814Reputation: 814Reputation: 814
Hello,

Quote:
Originally Posted by marcusmaria View Post
Hi all.

First thanks to the author(s) for providing slackpkg+. It helps a lot. I have a question concerning PKGS_PRIORITY. I am using it on -current and wonder how to set the PKGS_PRIORITY. Is it possible to configure it multiple times or is it suggested to write something like this: PKGS_PRIORITY=( restricted:vlc ktown ... )?

Greets
Marcus

The second form, i.e. PKGS_PRIORITY=( restricted:vlc ktown ... ) should suffice in most cases.

If you have a lot of priorities, It might be useful to use the following syntax for better readability.

Code:
PKGS_PRIORITY=( \
  restricted:vlc \
  ktown \
  ... )
You can also add item(s) to PKGS_PRIORITY using any of the following syntax :
Code:
# S1
PKGS_PRIORITY+=( new_item ...)

# Example:
PKGS_PRIORITY=( restricted:vlc )
PKGS_PRIORITY+=( ktown )

# S2
PKGS_PRIORITY=(${PKGS_PRIORITY[@]} new_item ...)

# Example:
#
PKGS_PRIORITY=( restricted:vlc )
PKGS_PRIORITY=( ${PKGS_PRIORITY[@]} ktown )
The syntax S1 allows to add new item(s) to PKGS_PRIORITY , while the syntax S2 recreate PKGS_PRIORITY with the existing items, specified by ${PKGS_PRIORIRT[@]}, and the new items.

In case of S1, the items are always added to the end of PKGS_PRIORITY, while, they are "added" relatively to the position of ${PKGS_PRIORITY[@]} in case of syntax S2.

--
SeB

Last edited by phenixia2003; 07-23-2019 at 03:50 AM.
 
1 members found this post helpful.
Old 07-23-2019, 03:59 AM   #694
marcusmaria
LQ Newbie
 
Registered: Jun 2019
Posts: 11

Rep: Reputation: Disabled
Great, thanks for pointing that out.
 
Old 08-19-2019, 07:27 PM   #695
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,576

Rep: Reputation: 277Reputation: 277Reputation: 277
Getting errors on slackpkgplus gpg and md5sum when running slackpkg update.
 
Old 08-20-2019, 09:21 AM   #696
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 575

Rep: Reputation: 165Reputation: 165
Yes, there was a server problem.

Thankyou for reporting.
 
2 members found this post helpful.
Old 01-09-2020, 01:43 PM   #697
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 14.2 64bit
Posts: 138

Rep: Reputation: 20
Hi all, I'm using slackpkg+ on slcack stable for a long, anyway I have some doubts about a new config for mainteince of a just installed "slackware64-current" system.
What I want to obtain is a multilib system on which I don't want to install any kde kdei or xfce series. I prefer original gcc package because I don't need to build 32bit packages, I have just few 32bit binaries that has to run on this x86_64 system (like brother proprietary drivers for instance).

Moreover I'm going to install many packages created from SBo. So I don't want slack pkg tries to overwrite that packages (tagged with _SBo suffix).

I report below config files:

slackpkgplus.conf
Code:
# sed -e '/^#/d' -e '/^$/d' /mnt/ssd/etc/slackpkg/slackpkgplus.conf
SLACKPKGPLUS=on
VERBOSE=1
ALLOW32BIT=off
USEBL=1
WGETOPTS="--timeout=20 --tries=2"
SEARCH_CLOG_INPARENT=on
CACHEUPDATE=off
GREYLIST=on
SENSITIVE_SEARCH=on
WW_FILE_SEARCH=on
SHOWORDER=package
DETAILED_INFO=none
STRICTGPG=on
PKGS_PRIORITY=( patches:gcc slackware64:gcc multilib )
TAG_PRIORITY=off
REPOPLUS=( slackpkgplus restricted alienbob )
MIRRORPLUS['alienbob']=http://bear.alienbase.nl/mirrors/people/alien/sbrepos/current/x86_64/
MIRRORPLUS['restricted']=http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/current/x86_64/
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/
MIRRORPLUS['multilib']=http://bear.alienbase.nl/mirrors/people/alien/multilib/current/
blacklist
Code:
# sed -e '/^#/d' -e '/^$/d' /mnt/ssd/etc/slackpkg/blacklist
kernel-generic
kernel-generic-smp
kernel-huge
kernel-huge-smp
kernel-modules
kernel-modules-smp
kernel-source
[0-9]+_SBo
kde
kdei
xfce
mirrors
Code:
# sed -e '/^#/d' -e '/^$/d' /mnt/ssd/etc/slackpkg/mirrors
https://slackware.uk/slackware/slackware64-current/
If I well understand, repo priority will be:

- official gcc found in "patches"
- official gcc found in "slackware64"
- multilib
- other software found on official patches/slackware64 repo (I don't know slack-current very well but I think patches will be almost always empty, anyway...)
- slackpkgplus "repo" for slackpkg+ upgrade
- restricted
- alienbob

Moreover if a package is related to kde kdei or xfce it shouldn't be visible in the list or installed with install-new.
Hope you can give confirm, or suggest a better config. Any comment is welcome!
Thanks in advance!
Bye!
 
Old 01-09-2020, 02:02 PM   #698
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware current 64bit
Posts: 925
Blog Entries: 5

Rep: Reputation: 151Reputation: 151
Hi joenew,

My experience is that patches is empty on current.

In your configuration file slackpkgplus.conf, I'm not sure that restricted would have priority over alienbob and slackpkgplus would have priority over alienbob. To be on the safe side, I would use:
Code:
PKGS_PRIORITY=( slackware64:gcc multilib slackpkgplus restricted alienbob )
Also an alternative way to avoid gcc from official Slackware from being overwritten by multilib would be to add the following line in blacklist file:
Code:
SLACKPKGPLUS_multilib gcc
with this alternative way for handling gcc, PKGS_PRIORITY would be:
Code:
PKGS_PRIORITY=( slackpkgplus restricted alienbob )
 
1 members found this post helpful.
Old 01-09-2020, 06:35 PM   #699
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 14.2 64bit
Posts: 138

Rep: Reputation: 20
Quote:
Originally Posted by /usr/doc/slackpkg+-1.7.0/README
PRIORITY CONFIGURATION

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

1) as listed in PKGS_PRIORITY (allow to override official packages)
2) as listed in an official Slackware repository
(configured in /etc/slackpkg/mirrors)
3) as listed in REPOPLUS (deny to override official packages)
4) all others defined in MIRRORPLUS
So the order in which REPOPLUS array elements appear, should cause also the priority order followed by slackpkg+.

With your config:
Code:
PKGS_PRIORITY=( slackware64:gcc multilib slackpkgplus restricted alienbob )
All official slackware64 packages will be overwritten by the corresponding ones found in multilib, and that's right. But they will also be overwritten by the ones found in restricted or alienbob repos, and I'd prefer prevent this behavior... Especially when using the "current" branch of slackware, because official packages of slack-current will be likely recent enought.
If I will prefer a specific single package in alien repos than the same provided by official repo I will just add it to PKG_PRIORITY:

Code:
PKGS_PRIORITY=( slackware64:gcc multilib )
PKGS_PRIORITY+=( alienbob:foo_package )
This will append foo_package of alienbob repo to PKG_PRIORITY array, so that it will have priority over a possible "foo_package" found in slackware64-current official repo.

As regard
Code:
SLACKPKGPLUS_repo pattern
I found it in /etc/slackpkg/greylist and not in blacklist, are you sure it works in blacklist too?
 
Old 01-10-2020, 02:36 PM   #700
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware current 64bit
Posts: 925
Blog Entries: 5

Rep: Reputation: 151Reputation: 151
Code:
PKGS_PRIORITY=( slackware64:gcc multilib slackpkgplus restricted alienbob )
You're correct, packages in restricted and alienbob would overwrite Slackware ones.

Yes,
Code:
SLACKPKGPLUS_repo pattern
works in /etc/slackpkg/blacklist. I have this line in my blacklist file to prevent ffmpeg from restricted to overwrite Slackware package.
Code:
SLACKPKGPLUS_restricted ffmpeg
As of time of writing, ffmpeg is the only package from restricted to exist also in Slackware.
So the following combination should do what you're looking for:

/etc/slackpkg/blacklist
Code:
SLACKPKGPLUS_restricted ffmpeg
SLACKPKGPLUS_multilib gcc
/etc/slackpkg/slackpkgplus.conf
Code:
PKGS_PRIORITY=( multilib slackpkgplus restricted )
 
Old 01-10-2020, 11:18 PM   #701
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,003

Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
Just going to toss this out. I am using slackpkg-2.84.0_beta5-noarch-1_rlw with slackpkg+-1.7.0-noarch-10mt

This is my PKGS_PRIOROTY in slackpkgplus.conf:

PKGS_PRIORITY=( nonslack slackpkgplus multilib ktown restricted slackware64:id3lib alienbob )

nonslack is my repository. I use Alien Bob's ffmpeg. There is an ide3lib package in Slackware64 and alienbob, the slackware64:id3lib before alienbob ensures that the slackware package is not overwritten by the alienbob package.

If I wanted to keep the slackware ffmpeg packages I would write my PKGS_PRIORITY as follows:

PKGS_PRIORITY=( nonslack slackpkgplus multilib ktown slackware64:ffmpeg restricted slackware64:id3lib alienbob )

First I've heard of using SLACKPKGPLUS_repo pattern, cool idea. I don't believe is documented though. Correct me if I am wrong.
 
Old 01-11-2020, 02:40 AM   #702
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware current 64bit
Posts: 925
Blog Entries: 5

Rep: Reputation: 151Reputation: 151
Quote:
Originally Posted by chrisretusn View Post
First I've heard of using SLACKPKGPLUS_repo pattern, cool idea. I don't believe is documented though. Correct me if I am wrong.
That's right, this feature is not officially documented. I found it in this LQ thread.

Last edited by gegechris99; 01-11-2020 at 02:40 AM. Reason: typo
 
Old 01-12-2020, 04:30 PM   #703
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 14.2 64bit
Posts: 138

Rep: Reputation: 20
Thanks for your clarification!
 
  


Reply

Tags
slackpkg


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
Holding a package update from slackpkg gazj Slackware 2 01-25-2011 05:58 PM
Where can I find a 3rd Party Repository for RHEL 5? tightlikethat Linux - Newbie 3 02-27-2010 09:46 PM
Best 3rd Party RPM Repository for FC9 kromberg Fedora 11 11-13-2008 09:04 PM
Package Kit Error-- "Cannot retrieve repository metadata (repomd.xml) for repository" mbvpixies78 Linux - Newbie 11 08-22-2008 08:20 PM
3rd party package managers? crontab Slackware 3 10-06-2007 11:34 AM

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

All times are GMT -5. The time now is 02:51 AM.

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