added function providefiles

list files provided by package
This commit is contained in:
Bryan Joshua Pedini 2024-08-01 02:02:52 +02:00
parent 7b3de6cef0
commit 8b23dc96a3

10
pman.sh
View File

@ -64,6 +64,15 @@ case "$command_args" in
su_needed=false
command_args="-F"
;;
"providefiles")
# Update the cache
su_needed=true
command_args="-Fy"
execute_command "${@}"
su_needed=false
command_args="-Fl"
;;
"installed")
command_args="-Q"
;;
@ -119,6 +128,7 @@ case "$command_args" in
echo " info - pacman -Si | show package information"
echo " localinfo - pacman -Qi | show local package information"
echo " provides - pacman -F | list packages that provide file"
echo " providefiles - pacman -Fl | list files provided by package"
echo " installed - pacman -Q | list installed packages"
echo " install - pacman -S | install packages"
echo " update - pacman -Sy | updates the repositories"