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
Hide 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. Дописать таблицу на вики на основании реализованных команд.
3. Доделать и проверить deplist|requires
https://wiki.archlinux.org/index.php/Pacman_Rosetta
bin/epm
View file @
946c3c28
...
...
@@ -128,7 +128,7 @@ check_command()
-i
|
install
|
add
)
# HELPCMD: install package(s) from remote repositories or from local file
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
;;
-s
|
search
)
# HELPCMD: search in remote package repositories
...
...
bin/epm-install
View file @
946c3c28
...
...
@@ -87,6 +87,7 @@ epm_install_names()
return
;;
npackd
)
separate_installed
$@
# FIXME: fix return status
# TODO: use upgrade if package is already installed
[
-n
"
$pkg_noninstalled
"
]
&&
sudocmd npackdcl add
--package
=
$@
$pkg_noninstalled
[
-n
"
$pkg_installed
"
]
&&
sudocmd npackdcl update
--package
=
$@
$pkg_installed
...
...
@@ -106,6 +107,11 @@ epm_install_names()
[
-n
"
$force
"
]
&&
force
=
-force-depends
sudocmd ipkg
$force
install
$@
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
"
;;
...
...
@@ -133,6 +139,9 @@ epm_ni_install_names()
pkgsrc
)
sudocmd pkg_add
-r
$@
return
;;
emerge
)
sudocmd emerge
-uD
$@
return
;;
pacman
)
sudocmd pacman
-S
--noconfirm
$force
$nodeps
$@
return
;;
...
...
@@ -149,9 +158,14 @@ epm_ni_install_names()
ipkg
)
sudocmd ipkg
-force-defaults
install
$@
return
;;
nix
)
sudocmd nix-env
--install
$@
return
;;
slackpkg
)
# TODO: use upgrade if package is already installed
sudocmd /usr/sbin/slackpkg
-batch
=
on
-default_answer
=
yes install
$@
separate_installed
$@
# 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
;;
*
)
fatal
"Do not known appropriate install command for
$PMTYPE
"
...
...
@@ -239,6 +253,10 @@ epm_print_install_command()
pkgsrc
)
echo
"pkg_add
$@
"
;;
#emerge)
# # it is better to use epm
# echo "tar xvfj $@ -C /"
# ;;
pacman
)
echo
"pacman -U --noconfirm --force
$nodeps
$@
"
;;
...
...
@@ -265,7 +283,7 @@ epm_install()
return
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
files
=
"
$(
echo
$pkg_files
| filter_out_installed_packages
)
"
...
...
bin/epm-packages
View file @
946c3c28
...
...
@@ -57,6 +57,9 @@ case $PMTYPE in
# ;;
slackpkg
)
CMD
=
"ls -1 /var/log/packages/"
if
[
-n
"
$short
"
]
;
then
docmd
ls
-1
/var/log/packages/ |
sed
-e
"s|-[0-9].*||g"
return
;;
homebrew
)
CMD
=
"brew
$pkg_filenames
"
...
...
bin/epm-provides
View file @
946c3c28
...
...
@@ -55,6 +55,9 @@ case $PMTYPE in
# FIXME: use hi level commands
fi
;;
emerge
)
CMD
=
"equery files"
;;
# yum-rpm)
# CMD="yum deplist"
# ;;
...
...
bin/epm-query
View file @
946c3c28
...
...
@@ -70,11 +70,12 @@ __epm_query_name()
CMD
=
"rpm -q"
;;
apt-dpkg
)
CMD
=
"dpkg -l"
#docmd dpkg -l $@
docmd dpkg
-l
$@
|
grep
"^ii"
# TODO: make rpm-like output
#showcmd dpkg -l $pkg_filenames
#dpkg -l $pkg_filenames | grep "^ii"
#
return
return
;;
npackd
)
CMD
=
"npackdcl path --package=
$@
"
...
...
bin/epm-remove
View file @
946c3c28
...
...
@@ -84,6 +84,9 @@ epm_remove_names()
npackd
)
sudocmd npackdcl remove
--package
=
$@
return
;;
nix
)
sudocmd nix-env
--uninstall
$@
return
;;
chocolatey
)
sudocmd chocolatey uninstall
$@
return
;;
...
...
bin/epm-whatdepends
View file @
946c3c28
...
...
@@ -27,6 +27,12 @@ case $PMTYPE in
apt-rpm|apt-dpkg
)
CMD
=
"apt-cache whatdepends"
;;
yum-rpm
)
CMD
=
"repoquery --whatrequires"
;;
emerge
)
CMD
=
"equery depends -a"
;;
*
)
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