[SOLVED] Lets say I want to remove all SBo packages (I don't)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How would I pass this output as an argument to removepkg?
I tried:
Code:
ls /var/log/packages | grep SBo >> list
for i in list do;
removepkg $i;
done
It didn't work and even if it did I know already it is not the best way. I am sure there is a way to pass the result of "grep" directly to removepkg. How?
which though is a GUI in ncurses, is still technically a cli tool.
Yes , but be aware that will propose you to remove not only SBo packages but more generally all packages non shipped in the Slackware distribution, so use with care.
SBo is commented out by default in /etc/slackpkg/blacklist:
Code:
# You can blacklist using regular expressions.
#
# Don't use *full* regex here, because all of the following
# will be checked for the regex: series, name, version, arch,
# build and fullname.
#
# This one will blacklist all SBo packages:
#[0-9]+_SBo
#
# Alien Bob's packages
[0-9]+alien
#
# ruario's latest-firefox
[0-9]+ro
#
# Nouveau
xf86-video-nouveau
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.