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
bf78b9f2
Commit
bf78b9f2
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
10 changed files
with
47 additions
and
8 deletions
+47
-8
TODO
TODO
+1
-0
epm
bin/epm
+1
-1
epm-autoremove
bin/epm-autoremove
+2
-0
epm-install
bin/epm-install
+21
-3
epm-packages
bin/epm-packages
+4
-0
epm-provides
bin/epm-provides
+3
-0
epm-query
bin/epm-query
+4
-3
epm-remove
bin/epm-remove
+3
-0
epm-upgrade
bin/epm-upgrade
+2
-1
epm-whatdepends
bin/epm-whatdepends
+6
-0
No files found.
TODO
View file @
bf78b9f2
2. Дописать таблицу на вики на основании реализованных команд.
3. Доделать и проверить deplist|requires
https://wiki.archlinux.org/index.php/Pacman_Rosetta
bin/epm
View file @
bf78b9f2
...
...
@@ -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-autoremove
View file @
bf78b9f2
...
...
@@ -44,6 +44,8 @@ case $PMTYPE in
;;
emerge
)
sudocmd emerge
--depclean
docmd epm
--skip-installed
install
gentoolkit
sudocmd revdep-rebuild
;;
pacman
)
sudocmd pacman
-Qdtq
| pacman
-Rs
-
...
...
bin/epm-install
View file @
bf78b9f2
...
...
@@ -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 @
bf78b9f2
...
...
@@ -57,6 +57,10 @@ 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
fi
;;
homebrew
)
CMD
=
"brew
$pkg_filenames
"
...
...
bin/epm-provides
View file @
bf78b9f2
...
...
@@ -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 @
bf78b9f2
...
...
@@ -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=
$@
"
...
...
@@ -96,7 +97,7 @@ __epm_query_name()
is_installed
()
{
#pkg_filenames="$@" epm_query >/dev/null
epm installed
$@
>
/dev/null
epm installed
$@
>
/dev/null
2>/dev/null
}
# fill pkg_installed and pkg_noninstalled
...
...
bin/epm-remove
View file @
bf78b9f2
...
...
@@ -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-upgrade
View file @
bf78b9f2
...
...
@@ -28,6 +28,7 @@ epm_upgrade()
CMD
=
"apt-get dist-upgrade"
;;
yum-rpm
)
# can do update repobase automagically
CMD
=
"yum update"
;;
dnf-rpm
)
...
...
@@ -41,7 +42,7 @@ epm_upgrade()
CMD
=
"zypper dist-upgrade"
;;
pacman
)
CMD
=
"pacman -S -u"
CMD
=
"pacman -S -u
$force
"
;;
aura
)
CMD
=
"aura -A -u"
...
...
bin/epm-whatdepends
View file @
bf78b9f2
...
...
@@ -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