slackpkg+ blacklist - how to blacklist third party package set?
Slackware64-current updated (slackpkg+-1.7.6-noarch-5mt)
How to properly blacklist certain package set from a third party repo? Case: blacklist perl-*-?alien packages? I wish to blacklist ONLY perl* packages from alienbob repository, as they are old (not for latest current) and they are messed up my sistem in the past. The perl package from slackware repository (perl-5.xxx86_64-?) must be excluded from the blacklist and so on the list for upgrade and enabled. I install current perl scripts packages I need with cpan2tgz. |
You shouldn't need to blacklist third party packages using slackpkg with slackpkg+
Here is my slackpkplus.conf (applicable sections) as a reference Code:
PKGS_PRIORITY=( slackware64:id3lib ) # 2018-01-09, also in alienbob You can add this to greylist to keep those packages from being selected by default. This is useful with 'slackpkg install alienbob' and slackpkg upgrade-all' in that alienbob packages will not be selected by default. You will have to review the list and select them manually. Code:
SLACKPKGPLUS_alienbob Edit2: justpkgs is a local directory that has only packages, no metadata required. |
Thank you "chrisretusn".
My question was not exact. I already have slackpkplus.conf configured that way and regarding packages are listed in update list but not marked. My goal is to configure updates the way that packages, I do not want to upgrade are NOT even on the list, not only "not marked for update" I do not want to see those packages on a list. That list is sometimes huge, and can accidentally mark undesired package for upgrade - when I mark all multilib packages. regex in blacklist do not work right. For example perl-*-?alien do not hide those packages. |
According to :
Code:
man /etc/slackpkg/blacklist <package>-.* So if you want to blacklist alienbob's perl packages - which is not fair :-) - the syntax would be : Code:
perl-.*?alien |
Quote:
And "- which is not fair" - agree 100% with you. Eric is one of the best and respectable contributors/developers. :hattip: :hattip: :hattip: But his perl packages, the one I need, are all outdated and not for latest current (pre slackware-15). I've broken my system with them and spent a lot of time to find out the reason. I use >90 perl scripts - Zoneminder dependencies, and to find a sinner among them.. :banghead: |
Why is the question mark there? Maybe you are confusing regular expressions and shell globbing (wild cards)?
|
Quote:
And since the 24/02/2021 the syntax has change Code:
Wed Feb 24 22:07:25 CET 2021 |
Quote:
Tested working: Quote:
|
Quote:
the good one with ?: Code:
perl-.*-?alien |
Quote:
I'm sure you know your regular expressions but for those who don't, a little recap: a matches 'a' a? matches '' and 'a' a+ matches 'a', 'aa', 'aaa', 'aaaa',... a* matches '', 'a', 'aa', 'aaa', 'aaaa',... A dot matches any single character, so naturally: . matches any character, e.g. 'b' .? matches zero or one character, e.g. '', 'b' .+ matches one or more characters, e.g. 'b', 'be', 'beg7z' .* matches zero or more characters, e.g. '', 'b', 'be', 'beg7z' (Literal dot, question mark etc need to be escaped by a backslash: \. \? \+ \* ) So, what does perl-.*-?alien match? It has 'perl-', then after that any characters, zero times or more, then a hyphen zero times or once, and then 'alien'. For example perl-anythingalien and perl-anything-alien. It seems -? is superfluous, as a hyphen is also an 'any character', and perl-.*alien would match even with a hyphen immediately before 'alien'. As a matter of fact, alien's package names don't even contain a substring '-alien'. Instead, they have a version number between the hyphen and 'alien'. What if you wanted to check for the version number? [0-9] matches any single character between 0 and 9 (i.e. a digit), so [0-9]+ matches one or more digits. You could then use Code:
perl-.*[0-9]+alien |
Thanks for the explanation ;-)
The right method is the one that works, anyway |
what if (in current) I want to blacklist blackbox??
Is this correct? blackbox/* in /etc/slackpkg/blacklist? |
Quote:
blackbox-.* |
thank you very much!
|
No, it would be:
Code:
blackbox |
All times are GMT -5. The time now is 06:01 PM. |