Commit 83a99bed authored by Vitaly Lipatov's avatar Vitaly Lipatov

add more pacman commands

parent f6169e0b
......@@ -40,6 +40,8 @@ case $PMTYPE in
;;
pacman)
echo "You need manually add repo to /etc/pacman.conf"
# Only for alone packages:
#sudocmd repo-add $pkg_filenames
;;
npackd)
docmd npackdcl add-repo --url=$pkg_filenames
......
......@@ -51,9 +51,10 @@ __epm_changelog_local_names()
;;
emerge)
docmd view /usr/portage/category/$1/ChangeLog | less
# docmd equery changes -f $1 | less
;;
pacman)
docmd pacman -Qc package | less
docmd pacman -Qc $1 | less
;;
*)
fatal "Do not known command for $PMTYPE"
......
......@@ -49,6 +49,9 @@ case $PMTYPE in
docmd rpm -Va --nofiles --nodigest
;;
pacman)
sudocmd revdep-rebuild
;;
urpm-rpm)
sudocmd urpme --auto-orphans
;;
......
......@@ -33,6 +33,9 @@ case $PMTYPE in
urpm-rpm)
sudocmd urpmi --clean
;;
pacman)
sudocmd pacman -Sc
;;
zypper-rpm)
sudocmd zypper clean
;;
......
......@@ -63,7 +63,8 @@ __epm_filelist_name()
CMD="rpm -ql"
;;
pacman)
CMD="pacman -Ql"
docmd pacman -Ql $pkg_names | sed -e "s|.* ||g"
return
;;
slackpkg)
is_installed $pkg_names || fatal "Query filelist for non installed packages does not realized"
......
......@@ -56,6 +56,7 @@ case $PMTYPE in
docmd zypper info $pkg_names
;;
pacman)
is_installed $pkg_names && docmd pacman -Qi $pkg_names && return
docmd pacman -Si $pkg_names
;;
npackd)
......
......@@ -34,6 +34,9 @@ epm_remove_low()
emerge)
sudocmd emerge --unmerge $@
return ;;
pacman)
sudocmd pacman -R $@
return ;;
slackpkg)
sudocmd /sbin/removepkg $@
return ;;
......@@ -63,7 +66,7 @@ epm_remove_names()
sudocmd emerge -aC $@
return ;;
pacman)
sudocmd pacman -R $@
sudocmd pacman -Rs $@
return ;;
yum-rpm)
sudocmd yum remove $@
......@@ -103,7 +106,7 @@ epm_remove_nonint()
sudocmd urpme --auto $@
return ;;
pacman)
sudocmd pacman -R --noconfirm $@
sudocmd pacman -Rs --noconfirm $@
return ;;
yum-rpm)
sudocmd yum -y remove $@
......@@ -130,6 +133,9 @@ epm_print_remove_command()
pkgsrc)
echo "pkg_delete -r $@"
;;
pacman)
echo "pacman -R $@"
;;
emerge)
echo "emerge --unmerge $@"
;;
......
......@@ -22,7 +22,7 @@ epm_requires()
local CMD
[ -n "$pkg_filenames" ] || fatal "Run query without names"
# by file package
# by package file
case $PMTYPE in
apt-rpm|urpm-rpm|zypper-rpm|yum-rpm)
CMD="rpm -q --requires -p"
......@@ -39,7 +39,7 @@ esac
[ -n "$pkg_files" ] && docmd $CMD $pkg_files
# by file name
# by package name
case $PMTYPE in
apt-rpm|urpm-rpm|zypper-rpm)
# FIXME: use hi level commands
......@@ -48,6 +48,9 @@ case $PMTYPE in
yum-rpm)
CMD="yum deplist"
;;
pacman)
CMD="pactree"
;;
apt-dpkg)
CMD="apt-cache depends"
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment