You are not logged in.
Pages: 1
Hi all.
Just a straightforward question.
Is there a way to exclude a whole group from appearing in the list given by "pacman -Qe"?
For example, I'd like to get the results without anything that belongs to base and base-devel.
Offline
You can give
comm -23 <(pacman -Qqe) <((pacman -Qqg base base-devel) | sort)
a shot.
Offline
Brilliant!
Thanks.
Offline
Hello cipater,
i don't know if there is a straight-forward solution, but this is a simple idea i came up with:
There is a script that shows all files, that are not owned by any package, by comparing the output of find and pacman -Ql, which can be found here.
You can modify this script, e. g. replacing the lines
find /bin /boot /etc /lib /opt /sbin /usr /var | sort -u > full
pacman -Ql | tee owned_full | cut -d' ' -f2- | sed 's/\/$//' | sort -u > owned
with
pacman -Qe | cut -d' ' -f1 | sort -u > full
pacman -Qg base base-devel | tee owned_full | cut -d' ' -f2 | sort -u > owned
The corresponding headlines in the output will not match, but here, with the given modification, the script will list the desired packages.
/edit: karol came up with a simpler solution
Last edited by Wey (2011-05-04 14:02:02)
Offline
A useful script nonethless.
Thanks for your time.
Offline
BTW, some packages belong to more than one group, e.g. xorg-apps and xorg. If you exclude either of these groups, the package won't be shown in the listing.
Last edited by karol (2011-05-04 13:42:21)
Offline
That applies to both yours and karol's solution right?
I'll keep it in mind anyways.
Offline
Pages: 1