From be24df6e8dab099ba523411aee2830a91466f0ca Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Thu, 17 Dec 2015 11:28:30 -0500 Subject: [PATCH] add pacown and pacblame aliases --- modules/pacman/README.md | 5 +++++ modules/pacman/alias.zsh | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/modules/pacman/README.md b/modules/pacman/README.md index 946a332..0cf9ea1 100644 --- a/modules/pacman/README.md +++ b/modules/pacman/README.md @@ -54,3 +54,8 @@ Aliases * `pacol` list orphan packages * `pacor` remove all orphan packages + +### Ownership + + * `pacown` list all files provided by a given package + * `pacblame` show package(s) that own a specified file diff --git a/modules/pacman/alias.zsh b/modules/pacman/alias.zsh index 0c67b35..e0bfa6c 100644 --- a/modules/pacman/alias.zsh +++ b/modules/pacman/alias.zsh @@ -69,6 +69,7 @@ alias pacs='pacman -Ss' # search for the package in the local repository alias pacS='pacman -Qs' + # # Orphans # @@ -78,3 +79,14 @@ alias pacol='pacman -Qdt' # remove orphan packages alias pacor='sudo pacman -Rns $(pacman -Qtdq)' + + +# +# Ownership +# + +# list all files that belong to a package +alias pacown='pacman -Ql' + +# show package(s) owning the specified file +alias pacblame='pacman -Qo'