You are not logged in.

#1 2014-06-12 00:55:04

fungle
Member
Registered: 2014-05-01
Posts: 81

Recursively removing packages while ignoring certain ones

So here's the scenario I have, I want to

pacman -Rs gstreamer0.10-bad-plugins gstreamer0.10-base-plugins gstreamer0.10-ffmpeg gstreamer0.10-good-plugins gstreamer0.10-ugly-plugins

Which spits out this.

checking dependencies...
:: deadbeef optionally requires libmad: for MP1/MP2/MP3 playback
:: deadbeef optionally requires wavpack: for WavPack playback
:: deadbeef optionally requires faad2: for AAC/MP4 support
:: jack optionally requires celt: NetJACK driver

Packages (49):

Name                        Old Version       Net Change

a52dec                      0.7.4-8            -0.15 MiB
aalib                       1.4rc5-10          -0.31 MiB
cdparanoia                  10.2-5             -0.19 MiB
celt                        0.11.3-2           -0.15 MiB
faac                        1.28-5             -0.15 MiB
faad2                       2.7-4              -0.39 MiB
fftw                        3.3.4-1            -5.50 MiB
gconf                       3.2.6-3            -7.26 MiB
gstreamer0.10               0.10.36-4          -6.11 MiB
gstreamer0.10-bad           0.10.23-8          -3.67 MiB
gstreamer0.10-base          0.10.36-3          -5.48 MiB
gstreamer0.10-good          0.10.31-6          -3.80 MiB
gstreamer0.10-ugly          0.10.19-11         -0.49 MiB
ladspa                      1.13-4             -0.12 MiB
libavc1394                  0.5.4-2            -0.11 MiB
libcaca                     0.99.beta18-2      -1.20 MiB
libcdaudio                  0.99.12-7          -0.13 MiB
libdc1394                   2.2.1-2            -0.34 MiB
libdca                      0.0.5-4            -0.22 MiB
libdv                       1.0.0-6            -0.23 MiB
libgme                      0.6.0-2            -0.33 MiB
libiec61883                 1.2.0-4            -0.15 MiB
liblrdf                     0.5.0-2            -0.07 MiB
libmad                      0.15.1b-7          -0.17 MiB
libmms                      0.6.4-1            -0.08 MiB
libmp4v2                    2.0.0-3            -1.40 MiB
libmpcdec                   1.2.6-3            -0.13 MiB
libmpeg2                    0.5.1-4            -0.25 MiB
libofa                      0.9.3-5            -0.19 MiB
libraw1394                  2.1.0-2            -0.19 MiB
libshout                    1:2.3.1-2          -0.11 MiB
libsidplay                  1.36.59-6          -0.28 MiB
libvisual                   0.4.0-4            -0.61 MiB
libxslt                     1.1.28-3           -2.24 MiB
mjpegtools                  2.1.0-1            -2.20 MiB
musicbrainz                 2.1.5-6            -0.31 MiB
neon                        0.30.0-1           -0.75 MiB
raptor                      2.0.13-2           -1.94 MiB
soundtouch                  1.8.0-1            -0.26 MiB
spandsp                     0.0.6pre21-2       -1.56 MiB
taglib                      1.9.1-1            -1.57 MiB
wavpack                     4.70.0-2           -0.36 MiB
wildmidi                    0.3.6-1            -0.14 MiB
x264                        1:142.20140311-4   -1.99 MiB
gstreamer0.10-bad-plugins   0.10.23-8          -1.83 MiB
gstreamer0.10-base-plugins  0.10.36-3          -0.56 MiB
gstreamer0.10-ffmpeg        0.10.13-2          -7.56 MiB
gstreamer0.10-good-plugins  0.10.31-6          -1.18 MiB
gstreamer0.10-ugly-plugins  0.10.19-11         -0.32 MiB

Total Removed Size:   64.73 MiB

:: Do you want to remove these packages? [Y/n] 

I want to keep the optional dependencies for deadbeef (libmad, wavpack, faad2) while removing everything else. Is there a good way to do this?

Offline

#2 2014-06-12 01:27:15

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Recursively removing packages while ignoring certain ones

Why not just install the optional dependencies back once you go through with that operation?  Otherwise, you can change the install reason on those packages to be explicit rather than as a dependency.

# pacman -D --asexplicit libmad wavpack faad2 

Edit: I thought for a second that maybe you could use the --ignore switch for this.  But it is apparently not applicable to this situation.

Last edited by WonderWoofy (2014-06-12 01:28:09)

Offline

#3 2014-06-12 01:38:27

fungle
Member
Registered: 2014-05-01
Posts: 81

Re: Recursively removing packages while ignoring certain ones

Yea that is what I ended up doing, but I was wondering if there was a way to do it in one command or have pacman handle it all on its own. I was surprised that -R doesn't have a --ignore flag while -S and -U do.

Offline

#4 2014-06-12 02:17:22

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Recursively removing packages while ignoring certain ones

You could always make a feature request or submit patches.

Offline

Board footer

Powered by FluxBB