This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/modules/pacman/functions/pacman-list-explicit
2012-06-30 15:54:51 -04:00

23 lines
385 B
Plaintext

#
# Lists explicitly installed Pacman packages.
#
# Authors:
# Benjamin Boudreau <dreurmail@gmail.com>
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
sudo pacman --query --explicit --info \
$(pacman --query --upgrades | cut -d' ' -f 1) \
| awk '
BEGIN {
FS=":"
}
/^Name/ {
print $2
}
/^Description/ {
print $2
}
'