LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackpkg blacklist entire branch (https://www.linuxquestions.org/questions/slackware-14/slackpkg-blacklist-entire-branch-4175419214/)

lopid 07-29-2012 12:36 PM

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.

disturbed1 07-29-2012 12:42 PM

just xfce
Also make sure there is not a space after the entry.

lopid 07-29-2012 12:46 PM

Oh. Thanks O:-)

dTd 07-29-2012 12:49 PM

"slackpkg blacklist xfce" from the command line will blacklist them all

TommyC7 07-29-2012 07:40 PM

You can also manually add <package series>/*:
Code:

echo "xfce/*" >> /etc/slackpkg/blacklist
Or something of that sort I suppose.

dTd 07-30-2012 03:56 AM

Quote:

Originally Posted by TommyC7 (Post 4740887)
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.

TommyC7 07-30-2012 05:55 AM

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.

chrisretusn 07-30-2012 08:03 AM

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.

dTd 07-30-2012 08:38 AM

Quote:

Originally Posted by TommyC7 (Post 4741190)
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 :)


All times are GMT -5. The time now is 08:09 PM.