You are not logged in.

#1 2011-04-18 03:10:07

QuimaxW
Member
From: Papua New Guinea
Registered: 2006-12-03
Posts: 228
Website

Uninstall most of a group

When I set up my system, I was lazy and just installed the entire group "xorg-drivers" Now, I want to uninstall most of the packages in that group, but without typing out each and every package I don't need on a line. In the past, I would have done a pacman -Rf xorg-drivers, then re-installed the individual packages I needed on the next. However, without the force option anymore, I can't do that as xorg depends on one of the items.

Any suggestions, or just should I just start typing?


"He is no fool who gives what he cannot keep to gain that which he cannot lose." -Jim Elliot

Offline

#2 2011-04-18 03:13:58

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Uninstall most of a group

$ pacman -Qgq xorg-drivers > pkglist # edit pkglist to remove the items you want to keep
# pacman -R - < pkglist

If you get dependency errors, remove less/more by editing the list or cautiously using -Rs.

Offline

#3 2011-04-21 11:14:03

QuimaxW
Member
From: Papua New Guinea
Registered: 2006-12-03
Posts: 228
Website

Re: Uninstall most of a group

Awesome. I should have thought of that, but I'd forgotten that pacman can take a file as input. smile


"He is no fool who gives what he cannot keep to gain that which he cannot lose." -Jim Elliot

Offline

Board footer

Powered by FluxBB