Skip to content

Commit

Permalink
Merge pull request #169 from mondeja/dpkg-Qe
Browse files Browse the repository at this point in the history
Add dpkg -Qe
  • Loading branch information
icy authored Jul 3, 2021
2 parents 7f00e5f + 1c9c04e commit eef2e4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ dpkg_Qi() {
dpkg-query -s "$@"
}

dpkg_Qe() {
apt-mark showmanual "$@"
}

dpkg_Ql() {
if [[ -n "$*" ]]; then
dpkg-query -L "$@"
Expand Down
4 changes: 4 additions & 0 deletions tests/dpkg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ in -Q
# ou ^ii +apt +.+ubuntu
ou ^ii +apt +

# List explicitly installed packages
in -Qe
ou ^(iproute2|adduser)$

# Information of `apt`
in -Qi apt
ou ^Package: apt$
Expand Down

0 comments on commit eef2e4f

Please sign in to comment.