You are not logged in.
The -Qe option for pacman is fairly handy, but it includes all the packages installed when I first installed Arch.
Is there a way to just see all the packages I have explicitly installed myself, not by the installer?
Last edited by Odysseus (2009-03-20 20:58:36)
I'm the type to fling myself headlong through the magical wardrobe, and then incinerate the ornate mahogany portal behind me with a Molotov cocktail.
Offline
Search the forum for this, or look at the "Handy Utilities you made" thread, iirc there are a few scripts floating around that do this. Also check Xyne's page for his Arch utilities.
Offline
Something like this?
pacman -Qi | awk '/^Name/ {name=$3} /^Groups/ { if ( $3 != "base" ) { print name } }'
EDIT
Good idea Ranguvar, and also use -Qei
pacman -Qei | awk '/^Name/ {name=$3} /^Groups/ { if ( $3 != "base" && $3 != "base-devel") { print name } }'
Last edited by Procyon (2009-03-20 21:52:09)
Offline
You may also want to filter out base-devel.
Offline
Thanks guys! Yea, I do have base-devel installed too, so even better!
Oh, and how would I go about aliasing that? I'm getting a syntax error from awk if I try this:
alias pacman-explicit="pacman -Qei | awk '/^Name/ {name=$3} /^Groups/ { if ( $3 != "base" && $3 != "base-devel" ) { print name } }'"
Last edited by Odysseus (2009-03-20 22:44:26)
I'm the type to fling myself headlong through the magical wardrobe, and then incinerate the ornate mahogany portal behind me with a Molotov cocktail.
Offline
Thanks guys! Yea, I do have base-devel installed too, so even better!
Oh, and how would I go about aliasing that? I'm getting a syntax error from awk if I try this:
alias pacman-explicit="pacman -Qei | awk '/^Name/ {name=$3} /^Groups/ { if ( $3 != "base" && $3 != "base-devel" ) { print name } }'"
You need to encase it in a function:
function pacman-explicit () pacman -Qei | awk '/^Name/ {name=$3} /^Groups/ { if ( $3 != "base" && $3 != "base-devel") { print name } }'
Offline