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
247aa264
Commit
247aa264
authored
Nov 16, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: improve apm support
parent
e5a423a1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
46 additions
and
13 deletions
+46
-13
epm-changelog
bin/epm-changelog
+1
-1
epm-history
bin/epm-history
+2
-2
epm-info
bin/epm-info
+1
-1
epm-install
bin/epm-install
+3
-0
epm-install-print-command
bin/epm-install-print-command
+3
-0
epm-provides
bin/epm-provides
+11
-0
epm-query
bin/epm-query
+1
-1
epm-repodisable
bin/epm-repodisable
+1
-1
epm-repoenable
bin/epm-repoenable
+1
-1
epm-repoindex
bin/epm-repoindex
+1
-1
epm-repolist
bin/epm-repolist
+2
-2
epm-repopkg
bin/epm-repopkg
+3
-3
epm-requires
bin/epm-requires
+16
-0
No files found.
bin/epm-changelog
View file @
247aa264
...
@@ -51,7 +51,7 @@ __epm_changelog_local_names()
...
@@ -51,7 +51,7 @@ __epm_changelog_local_names()
[
-z
"
$*
"
]
&&
return
[
-z
"
$*
"
]
&&
return
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm|yum-rpm|dnf-rpm|dnf5-rpm|urpm-rpm|zypper
-rpm
)
*
-rpm
)
docmd_foreach
"rpm -q --changelog"
$@
docmd_foreach
"rpm -q --changelog"
$@
;;
;;
apt-dpkg|aptitude-dpkg
)
apt-dpkg|aptitude-dpkg
)
...
...
bin/epm-history
View file @
247aa264
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#
#
EHOG
=
'\(apt-get\|rpm\)'
EHOG
=
'\(apt-get\|rpm\)'
JCHAN
=
'-t apt-get -t rpm'
JCHAN
=
'-t apt-get -t rpm
-t apm
'
__alt_epm_history_journal
()
__alt_epm_history_journal
()
{
{
...
@@ -112,7 +112,7 @@ Examples:
...
@@ -112,7 +112,7 @@ Examples:
epm_history
()
epm_history
()
{
{
if
[
$PMTYPE
=
"apt-rpm"
]
;
then
if
[
$PMTYPE
=
"apt-rpm"
]
||
[
$PMTYPE
=
"apm-rpm"
]
;
then
case
"
$1
"
in
case
"
$1
"
in
"-h"
|
"--help"
|
"help"
)
# HELPCMD: help
"-h"
|
"--help"
|
"help"
)
# HELPCMD: help
epm_history_help
epm_history_help
...
...
bin/epm-info
View file @
247aa264
...
@@ -60,7 +60,7 @@ case $PMTYPE in
...
@@ -60,7 +60,7 @@ case $PMTYPE in
if
[
-n
"
$direct
"
]
;
then
if
[
-n
"
$direct
"
]
;
then
__epm_info_rpm_low
&&
return
__epm_info_rpm_low
&&
return
fi
fi
docmd apm system info
$pkg_names
docmd apm system info
$
full
$
pkg_names
;;
;;
aptitude-dpkg
)
aptitude-dpkg
)
if
[
-n
"
$pkg_files
"
]
;
then
if
[
-n
"
$pkg_files
"
]
;
then
...
...
bin/epm-install
View file @
247aa264
...
@@ -273,6 +273,9 @@ epm_ni_install_names()
...
@@ -273,6 +273,9 @@ epm_ni_install_names()
apt-dpkg
)
apt-dpkg
)
sudocmd
env
ACCEPT_EULA
=
y
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
$noremove
--force-yes
-o
APT::Install::VirtualVersion
=
true
-o
APT::Install::Virtual
=
true
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
$APTOPTIONS
install
$@
sudocmd
env
ACCEPT_EULA
=
y
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
$noremove
--force-yes
-o
APT::Install::VirtualVersion
=
true
-o
APT::Install::Virtual
=
true
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
$APTOPTIONS
install
$@
return
;;
return
;;
apm-rpm
)
sudocmd apm system
install
$@
return
;;
aptitude-dpkg
)
aptitude-dpkg
)
sudocmd
env
ACCEPT_EULA
=
y
DEBIAN_FRONTEND
=
noninteractive aptitude
-y
install
$@
sudocmd
env
ACCEPT_EULA
=
y
DEBIAN_FRONTEND
=
noninteractive aptitude
-y
install
$@
return
;;
return
;;
...
...
bin/epm-install-print-command
View file @
247aa264
...
@@ -100,6 +100,9 @@ epm_print_install_names_command()
...
@@ -100,6 +100,9 @@ epm_print_install_names_command()
# this command not for complex use. ACCEPT_EULA=y DEBIAN_FRONTEND=noninteractive
# this command not for complex use. ACCEPT_EULA=y DEBIAN_FRONTEND=noninteractive
echo
"apt-get -y --force-yes -o APT::Install::VirtualVersion=true -o APT::Install::Virtual=true
$APTOPTIONS
install
$*
"
echo
"apt-get -y --force-yes -o APT::Install::VirtualVersion=true -o APT::Install::Virtual=true
$APTOPTIONS
install
$*
"
return
;;
return
;;
apm-rpm
)
echo
"apm system install
$*
"
return
;;
aptitude-dpkg
)
aptitude-dpkg
)
echo
"aptitude -y install
$*
"
echo
"aptitude -y install
$*
"
return
;;
return
;;
...
...
bin/epm-provides
View file @
247aa264
...
@@ -71,6 +71,17 @@ case $PMTYPE in
...
@@ -71,6 +71,17 @@ case $PMTYPE in
return
return
fi
fi
;;
;;
apm-rpm
)
# FIXME: need fix for a few names case
# TODO: separate this function to two section
if
is_installed
$pkg_names
;
then
CMD
=
"rpm -q --provides"
else
docmd apm system info
--full
--format
=
json
$pkg_names
| get_json_values
"data packageInfo provides"
return
fi
;;
urpm-rpm
)
urpm-rpm
)
if
is_installed
$pkg_names
;
then
if
is_installed
$pkg_names
;
then
CMD
=
"rpm -q --provides"
CMD
=
"rpm -q --provides"
...
...
bin/epm-query
View file @
247aa264
...
@@ -135,7 +135,7 @@ __epm_get_hilevel_nameform()
...
@@ -135,7 +135,7 @@ __epm_get_hilevel_nameform()
[
-n
"
$*
"
]
||
return
[
-n
"
$*
"
]
||
return
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
|apm-rpm
)
# use # as delimeter for apt
# use # as delimeter for apt
local
pkg
local
pkg
pkg
=
$(
a
=
''
rpm
-q
--queryformat
"%{NAME}=%{SERIAL}:%{VERSION}-%{RELEASE}
\n
"
--
$1
)
pkg
=
$(
a
=
''
rpm
-q
--queryformat
"%{NAME}=%{SERIAL}:%{VERSION}-%{RELEASE}
\n
"
--
$1
)
...
...
bin/epm-repodisable
View file @
247aa264
...
@@ -45,7 +45,7 @@ epm_repodisable()
...
@@ -45,7 +45,7 @@ epm_repodisable()
{
{
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
|apm-rpm
)
assure_root
assure_root
__epm_repodisable_alt
"
$@
"
__epm_repodisable_alt
"
$@
"
;;
;;
...
...
bin/epm-repoenable
View file @
247aa264
...
@@ -45,7 +45,7 @@ epm_repoenable()
...
@@ -45,7 +45,7 @@ epm_repoenable()
{
{
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
|apm-rpm
)
assure_root
assure_root
__epm_repoenable_alt
"
$@
"
__epm_repoenable_alt
"
$@
"
;;
;;
...
...
bin/epm-repoindex
View file @
247aa264
...
@@ -134,7 +134,7 @@ epm_repoindex()
...
@@ -134,7 +134,7 @@ epm_repoindex()
{
{
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
|apm-rpm
)
__epm_repoindex_alt
"
$@
"
__epm_repoindex_alt
"
$@
"
;;
;;
apt-dpkg|aptitude-dpkg
)
apt-dpkg|aptitude-dpkg
)
...
...
bin/epm-repolist
View file @
247aa264
...
@@ -140,10 +140,10 @@ epm_repolist()
...
@@ -140,10 +140,10 @@ epm_repolist()
{
{
# TODO
# TODO
[
-z
"
$*
"
]
||
[
"
$PMTYPE
"
=
"apt-rpm"
]
||
[
"
$PMTYPE
"
=
"ap
t-dpkg"
]
||
fatal
"No arguments are allowed here"
[
-z
"
$*
"
]
||
[
"
$PMTYPE
"
=
"apt-rpm"
]
||
[
"
$PMTYPE
"
=
"ap
m-rpm"
]
||
[
"
$PMTYPE
"
=
"apt-dpkg"
]
||
fatal
"No arguments are allowed here"
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
|apm-rpm
)
if
tasknumber
"
$1
"
>
/dev/null
;
then
if
tasknumber
"
$1
"
>
/dev/null
;
then
# FIXME: unexpectedly, a list of packages instead of repositories.
# FIXME: unexpectedly, a list of packages instead of repositories.
get_task_packages
"
$@
"
get_task_packages
"
$@
"
...
...
bin/epm-repopkg
View file @
247aa264
...
@@ -101,7 +101,7 @@ epm_repo_pkgadd()
...
@@ -101,7 +101,7 @@ epm_repo_pkgadd()
{
{
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
|apm-rpm
)
__epm_repo_pkgadd_alt
"
$@
"
__epm_repo_pkgadd_alt
"
$@
"
;;
;;
*
)
*
)
...
@@ -116,7 +116,7 @@ epm_repo_pkgupdate()
...
@@ -116,7 +116,7 @@ epm_repo_pkgupdate()
{
{
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
|apm-rpm
)
__epm_repo_pkgupdate_alt
"
$@
"
__epm_repo_pkgupdate_alt
"
$@
"
;;
;;
*
)
*
)
...
@@ -131,7 +131,7 @@ epm_repo_pkgdel()
...
@@ -131,7 +131,7 @@ epm_repo_pkgdel()
{
{
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
|apm-rpm
)
__epm_repo_pkgdel_alt
"
$@
"
__epm_repo_pkgdel_alt
"
$@
"
;;
;;
*
)
*
)
...
...
bin/epm-requires
View file @
247aa264
...
@@ -138,6 +138,22 @@ case $PMTYPE in
...
@@ -138,6 +138,22 @@ case $PMTYPE in
fi
fi
fi
fi
;;
;;
apm-rpm
)
# FIXME: need fix for a few names case
# FIXME: too low level of requires name (libSOME.so)
if
is_installed
$pkg_names
;
then
assure_exists rpm
>
/dev/null
__epm_alt_rpm_requires
$pkg_names
return
else
if
[
-n
"
$short
"
]
;
then
docmd apm system info
--full
--format
=
json
$pkg_names
| get_json_values
"data packageInfo depends"
| __epm_filter_out_base_alt_reqs |
sed
-e
"s| .*||"
else
docmd apm system info
--full
--format
=
json
$pkg_names
| get_json_values
"data packageInfo depends"
| __epm_filter_out_base_alt_reqs
fi
return
fi
;;
packagekit
)
packagekit
)
CMD
=
"pkcon required-by"
CMD
=
"pkcon required-by"
;;
;;
...
...
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