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
946c3c28
Commit
946c3c28
authored
Mar 04, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
short fixes
parent
a474ee57
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
6 deletions
+41
-6
TODO
TODO
+1
-0
epm
bin/epm
+1
-1
epm-install
bin/epm-install
+21
-3
epm-packages
bin/epm-packages
+3
-0
epm-provides
bin/epm-provides
+3
-0
epm-query
bin/epm-query
+3
-2
epm-remove
bin/epm-remove
+3
-0
epm-whatdepends
bin/epm-whatdepends
+6
-0
No files found.
TODO
View file @
946c3c28
2. Дописать таблицу на вики на основании реализованных команд.
2. Дописать таблицу на вики на основании реализованных команд.
3. Доделать и проверить deplist|requires
3. Доделать и проверить deplist|requires
https://wiki.archlinux.org/index.php/Pacman_Rosetta
bin/epm
View file @
946c3c28
...
@@ -128,7 +128,7 @@ check_command()
...
@@ -128,7 +128,7 @@ check_command()
-i
|
install
|
add
)
# HELPCMD: install package(s) from remote repositories or from local file
-i
|
install
|
add
)
# HELPCMD: install package(s) from remote repositories or from local file
epm_cmd
=
install
epm_cmd
=
install
;;
;;
-e
|
-P
|
remove|delete
)
# HELPCMD: remove (delete) package(s) from the database and the system
-e
|
-P
|
remove|delete
|uninstall
)
# HELPCMD: remove (delete) package(s) from the database and the system
epm_cmd
=
remove
epm_cmd
=
remove
;;
;;
-s
|
search
)
# HELPCMD: search in remote package repositories
-s
|
search
)
# HELPCMD: search in remote package repositories
...
...
bin/epm-install
View file @
946c3c28
...
@@ -87,6 +87,7 @@ epm_install_names()
...
@@ -87,6 +87,7 @@ epm_install_names()
return
;;
return
;;
npackd
)
npackd
)
separate_installed
$@
separate_installed
$@
# FIXME: fix return status
# TODO: use upgrade if package is already installed
# TODO: use upgrade if package is already installed
[
-n
"
$pkg_noninstalled
"
]
&&
sudocmd npackdcl add
--package
=
$@
$pkg_noninstalled
[
-n
"
$pkg_noninstalled
"
]
&&
sudocmd npackdcl add
--package
=
$@
$pkg_noninstalled
[
-n
"
$pkg_installed
"
]
&&
sudocmd npackdcl update
--package
=
$@
$pkg_installed
[
-n
"
$pkg_installed
"
]
&&
sudocmd npackdcl update
--package
=
$@
$pkg_installed
...
@@ -106,6 +107,11 @@ epm_install_names()
...
@@ -106,6 +107,11 @@ epm_install_names()
[
-n
"
$force
"
]
&&
force
=
-force-depends
[
-n
"
$force
"
]
&&
force
=
-force-depends
sudocmd ipkg
$force
install
$@
sudocmd ipkg
$force
install
$@
return
;;
return
;;
nix
)
separate_installed
$@
[
-n
"
$pkg_noninstalled
"
]
&&
sudocmd nix-env
--install
$pkg_noninstalled
[
-n
"
$pkg_installed
"
]
&&
sudocmd nix-env
--upgrade
$pkg_installed
return
;;
*
)
*
)
fatal
"Do not known install command for
$PMTYPE
"
fatal
"Do not known install command for
$PMTYPE
"
;;
;;
...
@@ -133,6 +139,9 @@ epm_ni_install_names()
...
@@ -133,6 +139,9 @@ epm_ni_install_names()
pkgsrc
)
pkgsrc
)
sudocmd pkg_add
-r
$@
sudocmd pkg_add
-r
$@
return
;;
return
;;
emerge
)
sudocmd emerge
-uD
$@
return
;;
pacman
)
pacman
)
sudocmd pacman
-S
--noconfirm
$force
$nodeps
$@
sudocmd pacman
-S
--noconfirm
$force
$nodeps
$@
return
;;
return
;;
...
@@ -149,9 +158,14 @@ epm_ni_install_names()
...
@@ -149,9 +158,14 @@ epm_ni_install_names()
ipkg
)
ipkg
)
sudocmd ipkg
-force-defaults
install
$@
sudocmd ipkg
-force-defaults
install
$@
return
;;
return
;;
nix
)
sudocmd nix-env
--install
$@
return
;;
slackpkg
)
slackpkg
)
# TODO: use upgrade if package is already installed
separate_installed
$@
sudocmd /usr/sbin/slackpkg
-batch
=
on
-default_answer
=
yes install
$@
# FIXME: broken status when use batch and default answrt
[
-n
"
$pkg_noninstalled
"
]
&&
sudocmd /usr/sbin/slackpkg
-batch
=
on
-default_answer
=
yes install
$pkg_noninstalled
[
-n
"
$pkg_installed
"
]
&&
sudocmd /usr/sbin/slackpkg
-batch
=
on
-default_answer
=
yes
upgrade
$pkg_installed
return
;;
return
;;
*
)
*
)
fatal
"Do not known appropriate install command for
$PMTYPE
"
fatal
"Do not known appropriate install command for
$PMTYPE
"
...
@@ -239,6 +253,10 @@ epm_print_install_command()
...
@@ -239,6 +253,10 @@ epm_print_install_command()
pkgsrc
)
pkgsrc
)
echo
"pkg_add
$@
"
echo
"pkg_add
$@
"
;;
;;
#emerge)
# # it is better to use epm
# echo "tar xvfj $@ -C /"
# ;;
pacman
)
pacman
)
echo
"pacman -U --noconfirm --force
$nodeps
$@
"
echo
"pacman -U --noconfirm --force
$nodeps
$@
"
;;
;;
...
@@ -265,7 +283,7 @@ epm_install()
...
@@ -265,7 +283,7 @@ epm_install()
return
return
fi
fi
[
-n
"
$pkg_files$pkg_names
"
]
||
fatal
"Run install without packages"
[
-n
"
$pkg_files$pkg_names
"
]
||
{
echo
"Skip empty install list"
;
return
22
;
}
local
names
=
"
$(
echo
$pkg_names
| filter_out_installed_packages
)
"
local
names
=
"
$(
echo
$pkg_names
| filter_out_installed_packages
)
"
local
files
=
"
$(
echo
$pkg_files
| filter_out_installed_packages
)
"
local
files
=
"
$(
echo
$pkg_files
| filter_out_installed_packages
)
"
...
...
bin/epm-packages
View file @
946c3c28
...
@@ -57,6 +57,9 @@ case $PMTYPE in
...
@@ -57,6 +57,9 @@ case $PMTYPE in
# ;;
# ;;
slackpkg
)
slackpkg
)
CMD
=
"ls -1 /var/log/packages/"
CMD
=
"ls -1 /var/log/packages/"
if
[
-n
"
$short
"
]
;
then
docmd
ls
-1
/var/log/packages/ |
sed
-e
"s|-[0-9].*||g"
return
;;
;;
homebrew
)
homebrew
)
CMD
=
"brew
$pkg_filenames
"
CMD
=
"brew
$pkg_filenames
"
...
...
bin/epm-provides
View file @
946c3c28
...
@@ -55,6 +55,9 @@ case $PMTYPE in
...
@@ -55,6 +55,9 @@ case $PMTYPE in
# FIXME: use hi level commands
# FIXME: use hi level commands
fi
fi
;;
;;
emerge
)
CMD
=
"equery files"
;;
# yum-rpm)
# yum-rpm)
# CMD="yum deplist"
# CMD="yum deplist"
# ;;
# ;;
...
...
bin/epm-query
View file @
946c3c28
...
@@ -70,11 +70,12 @@ __epm_query_name()
...
@@ -70,11 +70,12 @@ __epm_query_name()
CMD
=
"rpm -q"
CMD
=
"rpm -q"
;;
;;
apt-dpkg
)
apt-dpkg
)
CMD
=
"dpkg -l"
#docmd dpkg -l $@
docmd dpkg
-l
$@
|
grep
"^ii"
# TODO: make rpm-like output
# TODO: make rpm-like output
#showcmd dpkg -l $pkg_filenames
#showcmd dpkg -l $pkg_filenames
#dpkg -l $pkg_filenames | grep "^ii"
#dpkg -l $pkg_filenames | grep "^ii"
#
return
return
;;
;;
npackd
)
npackd
)
CMD
=
"npackdcl path --package=
$@
"
CMD
=
"npackdcl path --package=
$@
"
...
...
bin/epm-remove
View file @
946c3c28
...
@@ -84,6 +84,9 @@ epm_remove_names()
...
@@ -84,6 +84,9 @@ epm_remove_names()
npackd
)
npackd
)
sudocmd npackdcl remove
--package
=
$@
sudocmd npackdcl remove
--package
=
$@
return
;;
return
;;
nix
)
sudocmd nix-env
--uninstall
$@
return
;;
chocolatey
)
chocolatey
)
sudocmd chocolatey uninstall
$@
sudocmd chocolatey uninstall
$@
return
;;
return
;;
...
...
bin/epm-whatdepends
View file @
946c3c28
...
@@ -27,6 +27,12 @@ case $PMTYPE in
...
@@ -27,6 +27,12 @@ case $PMTYPE in
apt-rpm|apt-dpkg
)
apt-rpm|apt-dpkg
)
CMD
=
"apt-cache whatdepends"
CMD
=
"apt-cache whatdepends"
;;
;;
yum-rpm
)
CMD
=
"repoquery --whatrequires"
;;
emerge
)
CMD
=
"equery depends -a"
;;
*
)
*
)
fatal
"Do not known command for
$PMTYPE
"
fatal
"Do not known 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