You are not logged in.

#1 2015-06-14 13:22:04

maggie
Member
Registered: 2011-02-12
Posts: 255

Remove an entire group but keep members that are deps

I would like to remove all members of the gnome group that are not needed for other packages but don't know which switch will do it.

# pacman -Rs gnome
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: gtk3: requires adwaita-icon-theme
:: xfce4-settings: requires gnome-themes-standard

Offline

#2 2015-06-14 13:23:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: Remove an entire group but keep members that are deps

man pacman

Offline

#3 2015-06-14 13:33:56

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Remove an entire group but keep members that are deps

Install the packages explicitly before attempting to remove the gnome group:

# pacman -S adwaita-icon-theme gnome-themes-standard
# pacman -Rs gnome
pacman(8) wrote:

       -s, --recursive
           Remove each target specified including all of their dependencies, provided that (A) they are not required by other packages; and (B) they were not explicitly installed by the user. This operation is recursive and analogous to a backwards --sync operation, and it helps keep a clean system without orphans. If you want to omit condition (B), pass this option twice.


Jin, Jîyan, Azadî

Offline

#4 2015-06-14 13:37:20

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Remove an entire group but keep members that are deps

There is a better way...

Offline

#5 2015-06-14 13:54:03

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: Remove an entire group but keep members that are deps

Allan wrote:

There is a better way...

And I believe that it's spelled out in the manpage under the REMOVE OPTIONS section:

man pacman wrote:

-u, --unneeded
  Removes targets that are not required by any other packages. This is mostly useful when removing a group without
  using the -c option, to avoid breaking any dependencies.

So try:

pacman -Rsu gnome

...and please spend 5 minutes looking though the man page before posting.  Not only are you likely to find the solution, you may actually learn something for later use.

Offline

Board footer

Powered by FluxBB