LinuxQuestions.org
Help answer threads with 0 replies.
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 03-30-2011, 04:30 PM   #1
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
regex in blacklist for slackpkg - how to use it?


Hello together,

today I moved my Slackware64-current installations to multilib. I blacklisted the gcc and glib packages in the blacklist-file for slackpkg. In the blacklistfile they say:
Code:
# Now we can blacklist using regular expressions.
# This one will blacklist all SBo packages:
#[0-9]+_SBo
I have blacklisted
Code:
...
# The gcc compiler suite:
gcc
gcc-g++
gcc-gfortran
gcc-gnat
gcc-java
gcc-objc

# The GNU libc libraries:
glibc
glibc-i18n
glibc-profile
glibc-solibs
glibc-zoneinfo
glibc-debug
...
does anyone know, how I can use the mentioned regular expressions in order to make blacklisting more efficient?

Thanks in advance

Markus
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-30-2011, 05:20 PM   #2
55020
Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 353
Blog Entries: 4

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
Apparently every line of /etc/slackpkg/blacklist is now considered to be a regular expression, which can match *any* part of the package name (and/or version, and/or build number, and/or tag). So, in your example, 'gcc' is a regular expression that blacklists gcc, gcc-g++, gcc-gfortran, etc etc. Also, 'glibc' is a regular expression that blacklists glibc, glibc-i18n, glibc-profile, etc etc. To blacklist the whole of Multilib you could just write

Code:
gcc
glibc
compat32
Yes, it will probably cause a small amount of confusion until we all learn the best way to use it!

Last edited by 55020; 03-30-2011 at 05:25 PM. Reason: clarify matching on version/build/tag
 
2 members found this post helpful.
Old 03-30-2011, 05:31 PM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Original Poster
Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Hello,

thanks for the answer, I've got it now. I fiddeld with regex and found a way to blacklist even the compat32 files, here's the solution
Code:
...
gcc
glibc

compat32
.+-compat32

digikam
libreoffice
texlive
vlc
...
this blacklists all packages with a "-compat32" in their name, libreoffice-l10n and vlc-mozplugins are also blacklisted now.

Markus
 
  


Reply

Tags
multilib, regexp, 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
[SOLVED] Slackpkg blacklist ignored when using clean-system on current octoberblu3 Slackware 6 05-02-2010 09:45 PM
slackpkg/blacklist for AlienBob's current multilib and kde 4.4.2 packages damgar Slackware 7 04-08-2010 09:33 PM
Blacklist lines to keep slackpkg from overwriting Alien Bob's KDE 4.4.1 packages damgar Slackware 1 03-07-2010 12:35 AM
Suggestion: Modify /etc/slackpkg/blacklist samac Slackware 2 01-09-2010 03:36 PM
?Odd bug. modprobe.blacklist~ behaves as modprobe.blacklist arubin Slackware 1 11-05-2006 07:08 PM


All times are GMT -5. The time now is 07:48 PM.

Main Menu
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