LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-25-2009, 11:15 AM   #1
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
How to remove a group of packages?


In Fedora / CentOS, there is a command to remove a group of packages:
Code:
yum groupremove ...
Is there any correlative command in Slackware?

P/S: I don't like to use pkgtool and select one-by-one package.
 
Old 06-25-2009, 11:45 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You could probably do:

Code:
cd /var/log/packages
for i in *; do if grep '/var/log/mount/slackware/a/' "$i" > /dev/null; then removepkg "$i"; fi; done
change the '/var/log/mount/slackware/a/' accordingly, so to remove kde packages use '/var/log/mount/slackware/kde/'.
 
Old 06-25-2009, 12:11 PM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Have a look at slackpkg. This is from "man slackpkg" :
Code:
# slackpkg <command> {PATTERN|FILE}

       PATTERN can be a package name, or just part of package name. It can be a software series, too (like kde, a, ap, ...).  FILE is a file with a
       list of PATTERNs inside, either one per line or several per line with spaces as separators.
So you can run "slackpkg remove d" to remove all from package series d - development. Another example would be to run "slackpkg remove kde" to remove all from the kde package set. It's a really useful tool and well worth checking out.
 
Old 06-25-2009, 08:08 PM   #4
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Original Poster
Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by bgeddy View Post
Have a look at slackpkg. This is from "man slackpkg" :
Code:
# slackpkg <command> {PATTERN|FILE}

       PATTERN can be a package name, or just part of package name. It can be a software series, too (like kde, a, ap, ...).  FILE is a file with a
       list of PATTERNs inside, either one per line or several per line with spaces as separators.
So you can run "slackpkg remove d" to remove all from package series d - development. Another example would be to run "slackpkg remove kde" to remove all from the kde package set. It's a really useful tool and well worth checking out.
Thank you very much. That is exactly what I need.

Keyword in here is "software series", but I used to "group of packages".

Series of packages are available:
Code:
      A   - Base Linux system
      AP  - Various applications that do not need X
      D   - Program Development (C, C++, Kernel source, Lisp, Perl, etc.)
      DES - crypt() add-on
      E   - GNU Emacs
      F   - FAQ lists
      GTK - GTK+ apps and libs (including GNOME)
      K   - Linux kernel source
      KDE - Qt and KDE (the K Desktop Environment)
      N   - Networking (TCP/IP, UUCP, Mail)
      T   - TeX
      TCL - Tcl/Tk/TclX, Tcl language, and Tk toolkit for developing X apps
      X   - XFree86 Base X Window System
      XAP - X Window Applications
      XD  - XFree86 X11 server development system
      XV  - XView (OpenLook [virtual] Window Manager, apps)
      Y   - Games (that do not require X)
If read carefully when install you will see it.
 
1 members found this post helpful.
Old 06-26-2009, 01:30 AM   #5
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware64-current
Posts: 298

Rep: Reputation: 56
Whats wrong with browsing to /var/log/packages with dolphin or konqueror, opening terminal emulator(F4 in dolphin), "su" to root, "removepkg " and dragging&dropping files from file manager onto terminal? I've done it that way multiple times, i guess it is not totally wrong approach.
 
Old 06-27-2009, 07:13 AM   #6
marco@slack
LQ Newbie
 
Registered: Jun 2009
Location: Bergamo (Italy)
Distribution: Slackware Linux
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by bgeddy View Post
Have a look at slackpkg. This is from "man slackpkg" :
Code:
# slackpkg <command> {PATTERN|FILE}

       PATTERN can be a package name, or just part of package name. It can be a software series, too (like kde, a, ap, ...).  FILE is a file with a
       list of PATTERNs inside, either one per line or several per line with spaces as separators.
So you can run "slackpkg remove d" to remove all from package series d - development. Another example would be to run "slackpkg remove kde" to remove all from the kde package set. It's a really useful tool and well worth checking out.
Yes, slackpkg is a very helpful tool!

I used this to remove kde kdei y series of packages! I use xfce, I suggest you to do the same thing;

I post you some changes on my slackware system

############################################
excluded offical slackware packages series
############################################

- kde
- kdei
- y

#####################################
deleted official slackware packages
#####################################

- arts
- gnuplot
- gkrellm
- hplip-2.8.10-i486-1
- fluxbox
- blackbox
- fvvm
- windowmaker
- audacius
- audacius plugin
- gxine
- lilo
- pan-0.133-i486-1

####################################################
upgraded/new-installed official slackware packages
####################################################

root@darkstar:/home/marco# slackpkg upgrade-all

########################################
extra offical slackware packwages added
########################################

grub-0.97-i486-6
slacktrack-2.01-noarch-1
bittorrent-4.4.0-noarch-2

Bye
 
  


Reply



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
how to remove the set-group-ID sunilvadranapu Linux - General 5 02-11-2010 07:10 PM
remove group RPMs from a DVD ncsuapex Linux - Software 1 07-14-2008 01:24 PM
how to install all packages under a group tanveer Linux - General 3 11-26-2007 10:10 PM
How to remove user from their secondary group? Akhran Linux - Newbie 2 09-13-2006 04:09 AM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:26 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration