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
Vladislav
eepm
Commits
214ab747
You need to sign in or sign up before continuing.
Commit
214ab747
authored
4 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add initial support for appget and winget
parent
5972d14d
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
84 additions
and
7 deletions
+84
-7
epm-addrepo
bin/epm-addrepo
+3
-0
epm-clean
bin/epm-clean
+3
-0
epm-info
bin/epm-info
+6
-0
epm-install
bin/epm-install
+14
-2
epm-packages
bin/epm-packages
+9
-2
epm-remove
bin/epm-remove
+12
-0
epm-removerepo
bin/epm-removerepo
+3
-0
epm-repo
bin/epm-repo
+4
-0
epm-repolist
bin/epm-repolist
+3
-0
epm-reposave
bin/epm-reposave
+13
-0
epm-search
bin/epm-search
+5
-2
epm-sh-functions
bin/epm-sh-functions
+3
-1
epm-update
bin/epm-update
+3
-0
epm-upgrade
bin/epm-upgrade
+3
-0
No files found.
bin/epm-addrepo
View file @
214ab747
...
...
@@ -161,6 +161,9 @@ case $PMTYPE in
npackd
)
sudocmd npackdcl add-repo
--url
=
"
$repo
"
;;
winget
)
sudocmd winget
source
add
"
$repo
"
;;
slackpkg
)
info
"You need manually add repo to /etc/slackpkg/mirrors"
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-clean
View file @
214ab747
...
...
@@ -80,6 +80,9 @@ case $PMTYPE in
pkgng
)
sudocmd pkg clean
-a
;;
appget|winget
)
sudocmd
$PMTYPE
clean
;;
xbps
)
sudocmd xbps-remove
-O
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-info
View file @
214ab747
...
...
@@ -134,6 +134,12 @@ case $PMTYPE in
aptcyg
)
docmd apt-cyg show
$pkg_names
;;
winget
)
docmd winget show
$pkg_names
;;
appget
)
docmd appget view
$pkg_names
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-install
View file @
214ab747
#!/bin/sh
#
# Copyright (C) 2012-20
19
Etersoft
# Copyright (C) 2012-20
19
Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012-20
20
Etersoft
# Copyright (C) 2012-20
20
Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
...
...
@@ -201,6 +201,9 @@ epm_install_names()
xbps
)
sudocmd xbps-install
$@
return
;;
appget|winget
)
sudocmd
$PMTYPE
install
$@
return
;;
*
)
fatal
"Have no suitable install command for
$PMTYPE
"
;;
...
...
@@ -273,6 +276,9 @@ epm_ni_install_names()
xbps
)
sudocmd xbps-install
-y
$@
return
;;
appget|winget
)
sudocmd
$PMTYPE
-s
install
$@
return
;;
homebrew
)
# FIXME: sudo and quote
SUDO
=
''
__separate_sudocmd
"brew install"
"brew upgrade"
$@
...
...
@@ -494,6 +500,9 @@ epm_print_install_command()
xbps
)
echo
"xbps-install -y
$*
"
;;
appget|winget
)
echo
"
$PMTYPE
install -s
$*
"
;;
homebrew
)
# FIXME: sudo and quote
echo
"brew install
$*
"
...
...
@@ -541,6 +550,9 @@ epm_print_install_names_command()
nix
)
echo
"nix-env --install
$*
"
return
;;
appget|winget
)
echo
"
$PMTYPE
install
$*
"
return
;;
*
)
fatal
"Have no suitable appropriate install command for
$PMTYPE
"
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-packages
View file @
214ab747
#!/bin/sh
#
# Copyright (C) 2012, 2016, 2017 Etersoft
# Copyright (C) 2012, 2016, 2017 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012, 2016, 2017
, 2020
Etersoft
# Copyright (C) 2012, 2016, 2017
, 2020
Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
...
...
@@ -146,6 +146,13 @@ case $PMTYPE in
guix
)
CMD
=
"guix package -I"
;;
appget
)
CMD
=
"appget list"
;;
winget
)
info
"Use appget instead of winget"
return
0
;;
xbps
)
CMD
=
"xbps-query -l"
showcmd
$CMD
...
...
This diff is collapsed.
Click to expand it.
bin/epm-remove
View file @
214ab747
...
...
@@ -52,6 +52,9 @@ epm_remove_low()
pacman
)
sudocmd pacman
-R
$@
return
;;
appget|winget
)
sudocmd
$PMTYPE
uninstall
$@
return
;;
slackpkg
)
sudocmd /sbin/removepkg
$@
return
;;
...
...
@@ -145,6 +148,9 @@ epm_remove_names()
xbps
)
sudocmd xbps remove
-R
$@
return
;;
appget|winget
)
sudocmd
$PMTYPE
uninstall
$@
return
;;
opkg
)
# shellcheck disable=SC2046
sudocmd opkg
$(
subst_option force
-force-depends
)
remove
$@
...
...
@@ -197,6 +203,9 @@ epm_remove_nonint()
opkg
)
sudocmd opkg
-force-defaults
remove
$@
return
;;
appget|winget
)
sudocmd
$PMTYPE
uninstall
-s
$@
return
;;
xbps
)
sudocmd xbps remove
-y
$@
return
;;
...
...
@@ -240,6 +249,9 @@ epm_print_remove_command()
xbps
)
echo
"xbps remove -y
$*
"
;;
appget|winget
)
echo
$PMTYPE
uninstall
-s
$*
"
;;
*)
fatal "
Have no suitable appropriate remove
command
for
$PMTYPE
"
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-removerepo
View file @
214ab747
...
...
@@ -107,6 +107,9 @@ case $PMTYPE in
npackd
)
sudocmd npackdcl remove-repo
--url
=
"
$@
"
;;
winget
)
sudocmd winget
source
remove
"
$@
"
;;
slackpkg
)
info
"You need remove repo from /etc/slackpkg/mirrors"
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-repo
View file @
214ab747
...
...
@@ -48,6 +48,10 @@ epm_repo()
load_helper epm-reposave
epm_reporestore
"
$@
"
;;
reset
)
load_helper epm-reposave
epm_reporeset
"
$@
"
;;
add
)
# HELPCMD: add package repo (etersoft, autoimports, archive 2017/12/31); run with param to get list
load_helper epm-addrepo
epm_addrepo
"
$@
"
...
...
This diff is collapsed.
Click to expand it.
bin/epm-repolist
View file @
214ab747
...
...
@@ -70,6 +70,9 @@ case $PMTYPE in
xbps
)
docmd xbps-query
-L
;;
winget
)
docmd winget
source
list
;;
pacman
)
docmd
grep
-v
--
"^#
\|
^$"
/etc/pacman.conf
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-reposave
View file @
214ab747
...
...
@@ -44,3 +44,16 @@ case $PMTYPE in
esac
}
epm_reporeset
()
{
case
$PMTYPE
in
winget
)
sudocmd winget
source
reset
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
esac
}
This diff is collapsed.
Click to expand it.
bin/epm-search
View file @
214ab747
#!/bin/sh
#
# Copyright (C) 2012, 2013, 2016-20
19
Etersoft
# Copyright (C) 2012, 2013, 2016-20
19
Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012, 2013, 2016-20
20
Etersoft
# Copyright (C) 2012, 2013, 2016-20
20
Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
...
...
@@ -112,6 +112,9 @@ case $PMTYPE in
xbps
)
CMD
=
"xbps-query -s"
;;
appget|winget
)
CMD
=
"
$PMTYPE
search"
;;
*
)
fatal
"Have no suitable search command for
$PMTYPE
"
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-sh-functions
View file @
214ab747
...
...
@@ -533,7 +533,9 @@ case $DISTRNAME in
CMD
=
"conary"
;;
Windows
)
CMD
=
"chocolatey"
CMD
=
"appget"
which
$CMD
2>/dev/null
>
/dev/null
||
CMD
=
"chocolatey"
which
$CMD
2>/dev/null
>
/dev/null
||
CMD
=
"winget"
;;
MacOS
)
CMD
=
"homebrew"
...
...
This diff is collapsed.
Click to expand it.
bin/epm-update
View file @
214ab747
...
...
@@ -98,6 +98,9 @@ case $PMTYPE in
xbps
)
sudocmd xbps-install
-S
;;
winget
)
sudocmd winget
source
update
;;
*
)
fatal
"Have no suitable update command for
$PMTYPE
"
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-upgrade
View file @
214ab747
...
...
@@ -118,6 +118,9 @@ epm_upgrade()
guix
)
CMD
=
"guix package -u"
;;
appget|winget
)
CMD
=
"
$PMTYPE
update-all"
;;
aptcyg
)
# shellcheck disable=SC2046
docmd_foreach
"epm install"
$(
short
=
1 epm packages
)
...
...
This diff is collapsed.
Click to expand it.
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