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'