LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to remove a group of packages? (https://www.linuxquestions.org/questions/slackware-14/how-to-remove-a-group-of-packages-735588/)

quanta 06-25-2009 11:15 AM

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.

H_TeXMeX_H 06-25-2009 11:45 AM

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/'.

bgeddy 06-25-2009 12:11 PM

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.

quanta 06-25-2009 08:08 PM

Quote:

Originally Posted by bgeddy (Post 3586194)
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.

veeall 06-26-2009 01:30 AM

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.

marco@slack 06-27-2009 07:13 AM

Quote:

Originally Posted by bgeddy (Post 3586194)
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


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