Commit 15616615 authored by Danil Mikhailov's avatar Danil Mikhailov

epm: added alpine apk package manager install, update, remove, qa, search commands

parent 3caa1ace
......@@ -51,6 +51,7 @@ pkgtype()
gentoo) echo "tbz2" ;;
windows) echo "exe" ;;
android) echo "apk" ;;
alpine) echo "apk" ;;
cygwin) echo "tar.xz" ;;
debian|ubuntu|mint|runtu|mcst) echo "deb" ;;
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles)
......@@ -130,6 +131,11 @@ elif distro slackware-version ; then
DISTRIB_ID="Slackware"
DISTRIB_RELEASE="$(grep -Eo [0-9]+\.[0-9]+ $DISTROFILE)"
elif distro os-release ; then
. /etc/os-release
DISTRIB_ID="$ID"
DISTRIB_RELEASE="$VERSION_ID"
elif distro arch-release ; then
DISTRIB_ID="ArchLinux"
DISTRIB_RELEASE="2010"
......
......@@ -163,6 +163,9 @@ epm_install_names()
nix)
__separate_sudocmd "nix-env --install" "nix-env --upgrade" $@
return ;;
apk)
sudocmd apk add $@
return ;;
guix)
__separate_sudocmd "guix package -i" "guix package -i" $@
return ;;
......@@ -231,6 +234,9 @@ epm_ni_install_names()
nix)
sudocmd nix-env --install $@
return ;;
apk)
sudocmd apk add $@
return ;;
#android)
# sudocmd pm install $@
# return ;;
......
......@@ -122,6 +122,9 @@ case $PMTYPE in
ipkg)
CMD="ipkg list"
;;
apk)
CMD="apk info"
;;
guix)
CMD="guix package -I"
;;
......
......@@ -107,6 +107,9 @@ epm_remove_names()
nix)
sudocmd nix-env --uninstall $@
return ;;
apk)
sudocmd apk del $@
return ;;
guix)
sudocmd guix package -r $@
return ;;
......
......@@ -64,6 +64,9 @@ case $PMTYPE in
mpkg)
CMD="mpkg search"
;;
apk)
CMD="apk search"
;;
conary)
CMD="conary repquery"
;;
......
......@@ -469,6 +469,9 @@ case $DISTRNAME in
Cygwin)
CMD="aptcyg"
;;
alpine)
CMD="apk"
;;
*)
fatal "Have no suitable DISTRNAME $DISTRNAME"
;;
......
......@@ -80,6 +80,9 @@ case $PMTYPE in
ipkg)
sudocmd ipkg update
;;
apk)
sudocmd apk update
;;
pkgsrc)
# portsnap extract for the first time?
sudocmd portsnap fetch update
......
......@@ -459,6 +459,9 @@ case $DISTRNAME in
Cygwin)
CMD="aptcyg"
;;
alpine)
CMD="apk"
;;
*)
fatal "Have no suitable DISTRNAME $DISTRNAME"
;;
......@@ -1706,6 +1709,9 @@ epm_install_names()
nix)
__separate_sudocmd "nix-env --install" "nix-env --upgrade" $@
return ;;
apk)
sudocmd apk add $@
return ;;
guix)
__separate_sudocmd "guix package -i" "guix package -i" $@
return ;;
......@@ -1773,6 +1779,9 @@ epm_ni_install_names()
nix)
sudocmd nix-env --install $@
return ;;
apk)
sudocmd apk add $@
return ;;
#android)
# sudocmd pm install $@
# return ;;
......@@ -2236,6 +2245,9 @@ case $PMTYPE in
ipkg)
CMD="ipkg list"
;;
apk)
CMD="apk info"
;;
guix)
CMD="guix package -I"
;;
......@@ -3262,6 +3274,9 @@ epm_remove_names()
nix)
sudocmd nix-env --uninstall $@
return ;;
apk)
sudocmd apk del $@
return ;;
guix)
sudocmd guix package -r $@
return ;;
......@@ -3693,6 +3708,9 @@ case $PMTYPE in
mpkg)
CMD="mpkg search"
;;
apk)
CMD="apk search"
;;
conary)
CMD="conary repquery"
;;
......@@ -4194,6 +4212,9 @@ case $PMTYPE in
ipkg)
sudocmd ipkg update
;;
apk)
sudocmd apk update
;;
pkgsrc)
# portsnap extract for the first time?
sudocmd portsnap fetch update
......@@ -4446,6 +4467,7 @@ pkgtype()
gentoo) echo "tbz2" ;;
windows) echo "exe" ;;
android) echo "apk" ;;
alpine) echo "apk" ;;
cygwin) echo "tar.xz" ;;
debian|ubuntu|mint|runtu|mcst) echo "deb" ;;
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles)
......@@ -4525,6 +4547,11 @@ elif distro slackware-version ; then
DISTRIB_ID="Slackware"
DISTRIB_RELEASE="$(grep -Eo [0-9]+\.[0-9]+ $DISTROFILE)"
elif distro os-release ; then
. /etc/os-release
DISTRIB_ID="$ID"
DISTRIB_RELEASE="$VERSION_ID"
elif distro arch-release ; then
DISTRIB_ID="ArchLinux"
DISTRIB_RELEASE="2010"
......
......@@ -457,6 +457,9 @@ case $DISTRNAME in
Cygwin)
CMD="aptcyg"
;;
alpine)
CMD="apk"
;;
*)
fatal "Have no suitable DISTRNAME $DISTRNAME"
;;
......@@ -871,6 +874,7 @@ pkgtype()
gentoo) echo "tbz2" ;;
windows) echo "exe" ;;
android) echo "apk" ;;
alpine) echo "apk" ;;
cygwin) echo "tar.xz" ;;
debian|ubuntu|mint|runtu|mcst) echo "deb" ;;
alt|asplinux|suse|mandriva|rosa|mandrake|pclinux|sled|sles)
......@@ -950,6 +954,11 @@ elif distro slackware-version ; then
DISTRIB_ID="Slackware"
DISTRIB_RELEASE="$(grep -Eo [0-9]+\.[0-9]+ $DISTROFILE)"
elif distro os-release ; then
. /etc/os-release
DISTRIB_ID="$ID"
DISTRIB_RELEASE="$VERSION_ID"
elif distro arch-release ; then
DISTRIB_ID="ArchLinux"
DISTRIB_RELEASE="2010"
......
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