Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
7cde2258
Commit
7cde2258
authored
Apr 15, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for termux-pkg
parent
ac3da935
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
40 additions
and
3 deletions
+40
-3
distr_info
bin/distr_info
+1
-0
epm-addrepo
bin/epm-addrepo
+3
-0
epm-clean
bin/epm-clean
+3
-0
epm-filelist
bin/epm-filelist
+3
-0
epm-info
bin/epm-info
+3
-0
epm-install
bin/epm-install
+12
-3
epm-packages
bin/epm-packages
+3
-0
epm-reinstall
bin/epm-reinstall
+3
-0
epm-remove
bin/epm-remove
+3
-0
epm-search
bin/epm-search
+3
-0
epm-upgrade
bin/epm-upgrade
+3
-0
No files found.
bin/distr_info
View file @
7cde2258
...
...
@@ -190,6 +190,7 @@ case $DISTRIB_ID in
;;
Android
)
CMD
=
"android"
# TODO: CMD="termux-pkg"
;;
Cygwin
)
CMD
=
"aptcyg"
...
...
bin/epm-addrepo
View file @
7cde2258
...
...
@@ -496,6 +496,9 @@ case $PMTYPE in
winget
)
sudocmd winget
source
add
"
$repo
"
;;
termux-pkg
)
sudocmd pkg
install
"
$repo
"
;;
slackpkg
)
info
"You need manually add repo to /etc/slackpkg/mirrors"
;;
...
...
bin/epm-clean
View file @
7cde2258
...
...
@@ -89,6 +89,9 @@ case $PMTYPE in
xbps
)
sudocmd xbps-remove
-O
;;
termux-pkg
)
sudocmd pkg clean
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
bin/epm-filelist
View file @
7cde2258
...
...
@@ -135,6 +135,9 @@ __epm_filelist_name()
android
)
CMD
=
"pm list packages -f"
;;
termux-pkg
)
CMD
=
"pkg files"
;;
conary
)
CMD
=
"conary query --ls"
;;
...
...
bin/epm-info
View file @
7cde2258
...
...
@@ -146,6 +146,9 @@ case $PMTYPE in
appget
)
docmd appget view
$pkg_names
;;
termux-pkg
)
docmd pkg show
$pkg_names
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
bin/epm-install
View file @
7cde2258
...
...
@@ -161,6 +161,9 @@ epm_install_names()
guix
)
__separate_sudocmd
"guix package -i"
"guix package -i"
$@
return
;;
termux-pkg
)
sudocmd pkg
install
$@
return
;;
android
)
fatal
"We still have no idea how to use package repository, ever if it is F-Droid."
return
;;
...
...
@@ -257,9 +260,9 @@ epm_ni_install_names()
# FIXME: sudo and quote
SUDO
=
''
__separate_sudocmd
"brew install"
"brew upgrade"
$@
return
;;
#android
)
# sudocmd pm
install $@
#
return ;;
termux-pkg
)
sudocmd pkg
install
$@
return
;;
slackpkg
)
# FIXME: broken status when use batch and default answer
__separate_sudocmd_foreach
"/usr/sbin/slackpkg -batch=on -default_answer=yes install"
"/usr/sbin/slackpkg -batch=on -default_answer=yes upgrade"
$@
...
...
@@ -593,6 +596,9 @@ epm_print_install_command()
android
)
echo
"pm install
$*
"
;;
termux-pkg
)
echo
"pkg install
$*
"
;;
aptcyg
)
echo
"apt-cyg install
$*
"
;;
...
...
@@ -659,6 +665,9 @@ epm_print_install_names_command()
eopkg
)
echo
"eopkg install
$*
"
return
;;
termux-pkg
)
echo
"pkg install
$*
"
return
;;
appget|winget
)
echo
"
$PMTYPE
install
$*
"
return
;;
...
...
bin/epm-packages
View file @
7cde2258
...
...
@@ -156,6 +156,9 @@ case $PMTYPE in
info
"Use appget instead of winget"
return
0
;;
termux-pkg
)
docmd pkg list-installed
;;
xbps
)
CMD
=
"xbps-query -l"
showcmd
$CMD
...
...
bin/epm-reinstall
View file @
7cde2258
...
...
@@ -49,6 +49,9 @@ epm_reinstall_names()
pkgng
)
sudocmd pkg
install
-f
$@
return
;;
termux-pkg
)
sudocmd pkg reinstall
$@
return
;;
opkg
)
sudocmd opkg
--force-reinstall
install
$@
return
;;
...
...
bin/epm-remove
View file @
7cde2258
...
...
@@ -155,6 +155,9 @@ epm_remove_names()
android
)
sudocmd pm uninstall
$@
return
;;
termux-pkg
)
sudocmd pkg uninstall
$@
return
;;
chocolatey
)
sudocmd chocolatey uninstall
$@
return
;;
...
...
bin/epm-search
View file @
7cde2258
...
...
@@ -109,6 +109,9 @@ case $PMTYPE in
android
)
CMD
=
"pm list packages"
;;
termux-pkg
)
CMD
=
"pkg search"
;;
aptcyg
)
CMD
=
"apt-cyg searchall"
;;
...
...
bin/epm-upgrade
View file @
7cde2258
...
...
@@ -171,6 +171,9 @@ epm_upgrade()
xbps
)
CMD
=
"xbps-install -Su"
;;
termux-pkg
)
CMD
=
"pkg upgrade"
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment