LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 07-29-2012, 12:36 PM   #1
lopid
Member
 
Registered: Jun 2008
Posts: 103

Rep: Reputation: Disabled
Question Slackpkg blacklist entire branch


Say I don't want any of the new /xfce branch. I've removed the xfce package as well as xfce4-notifyd and xfce4-power-manager. I don't want any of the xfce packages showing up when I do a slackpkg install-new. Must I list each of those packages explicitly in the blacklist file, or is there a regex that can be used? I've tried "xfce/", and "xfce/.*", even though the comments say not to.
 
Old 07-29-2012, 12:42 PM   #2
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 212Reputation: 212Reputation: 212
just xfce
Also make sure there is not a space after the entry.
 
Old 07-29-2012, 12:46 PM   #3
lopid
Member
 
Registered: Jun 2008
Posts: 103

Original Poster
Rep: Reputation: Disabled
Oh. Thanks O:-)
 
Old 07-29-2012, 12:49 PM   #4
dTd
Member
 
Registered: Feb 2007
Location: CT, USA
Distribution: Slackware
Posts: 61

Rep: Reputation: 8
"slackpkg blacklist xfce" from the command line will blacklist them all
 
1 members found this post helpful.
Old 07-29-2012, 07:40 PM   #5
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 419

Rep: Reputation: Disabled
You can also manually add <package series>/*:
Code:
echo "xfce/*" >> /etc/slackpkg/blacklist
Or something of that sort I suppose.
 
Old 07-30-2012, 03:56 AM   #6
dTd
Member
 
Registered: Feb 2007
Location: CT, USA
Distribution: Slackware
Posts: 61

Rep: Reputation: 8
Quote:
Originally Posted by TommyC7 View Post
You can also manually add <package series>/*:
Code:
echo "xfce/*" >> /etc/slackpkg/blacklist
Or something of that sort I suppose.
"slackpkg blacklist xfce" does exactly that.
 
Old 07-30-2012, 05:55 AM   #7
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 419

Rep: Reputation: Disabled
From my recollections of blacklisting package series in the past, that method adds the packages under xfce/* individually. For example:
Code:
# slackpkg blacklist xfce
$ cat /etc/slackpkg/blacklist
=================================================
xfce4-panel
xfwm
Terminal
Thunar
libxfce4ui
...
=================================================
Whereas adding "xfce/*" via
Code:
# echo "xfce/*" >> /etc/slackpkg/blacklist
$ cat /etc/slackpkg/blacklist
=================================================
...
xfce/*
=================================================
does accomplish the same task, but uses less space in the /etc/slackpkg/blacklist for organizational and bit-saving purposes. In addition to that, "slackpkg blacklist xfce" (again, from when I recall blacklisting package series in the past) blacklists the packages under xfce/ individually at the time it is run. Any new packages added to the xfce package series will still be on the list of "slackpkg install-new" requiring another "slackpkg blacklist xfce" to grab the new packages under the xfce package series.

Last edited by TommyC7; 07-30-2012 at 05:58 AM.
 
Old 07-30-2012, 08:03 AM   #8
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 462

Rep: Reputation: Disabled
There are a few ways to blacklist a package series. Rather that use slackpkg blacklist to add entries, I prefer to edit my blacklist file. I use comments to remind me why. All of these will work for the xfce series:

Code:
xfce
./slackware/xfce
./slackware64/xfce
# This takes care above two with one entry
./slackware[0-9]+/xfce
suffixing /* to any of the above will also work.

These will also take care of new packages tagged as "Added." in ChangeLog.txt

A good way to test your blacklist is with slackpkg search.

You do have to be careful in adding things to blacklist, you would not want to add txz for example.

Last edited by chrisretusn; 07-30-2012 at 08:06 AM.
 
Old 07-30-2012, 08:38 AM   #9
dTd
Member
 
Registered: Feb 2007
Location: CT, USA
Distribution: Slackware
Posts: 61

Rep: Reputation: 8
Quote:
Originally Posted by TommyC7 View Post
From my recollections of blacklisting package series in the past, that method adds the packages under xfce/* individually. For example:
Code:
# slackpkg blacklist xfce
$ cat /etc/slackpkg/blacklist
=================================================
xfce4-panel
xfwm
Terminal
Thunar
libxfce4ui
...
=================================================
Whereas adding "xfce/*" via
Code:
# echo "xfce/*" >> /etc/slackpkg/blacklist
$ cat /etc/slackpkg/blacklist
=================================================
...
xfce/*
=================================================
does accomplish the same task, but uses less space in the /etc/slackpkg/blacklist for organizational and bit-saving purposes. In addition to that, "slackpkg blacklist xfce" (again, from when I recall blacklisting package series in the past) blacklists the packages under xfce/ individually at the time it is run. Any new packages added to the xfce package series will still be on the list of "slackpkg install-new" requiring another "slackpkg blacklist xfce" to grab the new packages under the xfce package series.
Makes sense
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] regex in blacklist for slackpkg - how to use it? markush Slackware 2 03-30-2011 05:31 PM
[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


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