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
dnuux ae1fde9e4f Fix pacman-list-explicit function
The function previously worked only when there were no updates
available. Pacman also does not need superuser rights to list
installed packages.
2012-09-06 23:36:45 -04:00

22 lines
330 B
Plaintext

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