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
186a6be0
Commit
186a6be0
authored
Dec 05, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Dec 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distr_info: added dnf5-rpm package manager
parent
f90f7598
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
32 additions
and
29 deletions
+32
-29
distr_info
bin/distr_info
+3
-0
epm-autoorphans
bin/epm-autoorphans
+1
-1
epm-autoremove
bin/epm-autoremove
+1
-1
epm-changelog
bin/epm-changelog
+1
-1
epm-check
bin/epm-check
+1
-1
epm-clean
bin/epm-clean
+1
-1
epm-downgrade
bin/epm-downgrade
+1
-1
epm-download
bin/epm-download
+1
-1
epm-filelist
bin/epm-filelist
+1
-1
epm-info
bin/epm-info
+1
-1
epm-install
bin/epm-install
+2
-2
epm-install-print-command
bin/epm-install-print-command
+1
-1
epm-kernel_update
bin/epm-kernel_update
+1
-1
epm-mark
bin/epm-mark
+1
-1
epm-print
bin/epm-print
+1
-1
epm-provides
bin/epm-provides
+1
-1
epm-query
bin/epm-query
+2
-2
epm-reinstall
bin/epm-reinstall
+1
-1
epm-release_downgrade
bin/epm-release_downgrade
+1
-1
epm-remove
bin/epm-remove
+1
-1
epm-repolist
bin/epm-repolist
+1
-1
epm-requires
bin/epm-requires
+1
-1
epm-search
bin/epm-search
+1
-1
epm-search_file
bin/epm-search_file
+1
-1
epm-update
bin/epm-update
+1
-1
epm-upgrade
bin/epm-upgrade
+1
-1
epm-whatprovides
bin/epm-whatprovides
+2
-2
No files found.
bin/distr_info
View file @
186a6be0
...
@@ -237,6 +237,9 @@ case $DISTRIB_ID in
...
@@ -237,6 +237,9 @@ case $DISTRIB_ID in
echo
"pkgmanager(): We don't support yet DISTRIB_ID
$DISTRIB_ID
(VENDOR_ID
$VENDOR_ID
)"
>
&2
echo
"pkgmanager(): We don't support yet DISTRIB_ID
$DISTRIB_ID
(VENDOR_ID
$VENDOR_ID
)"
>
&2
;;
;;
esac
esac
if
[
"
$CMD
"
=
"dnf-rpm"
]
&&
[
$(
dnf
--version
|
grep
-qi
"dnf5"
)
]
;
then
CMD
=
"dnf5-rpm"
fi
echo
"
$CMD
"
echo
"
$CMD
"
}
}
...
...
bin/epm-autoorphans
View file @
186a6be0
...
@@ -89,7 +89,7 @@ case $PMTYPE in
...
@@ -89,7 +89,7 @@ case $PMTYPE in
local
PKGLIST
=
$(
a
=
package-cleanup
-q
--orphans
|
grep
-v
"^eepm-"
)
local
PKGLIST
=
$(
a
=
package-cleanup
-q
--orphans
|
grep
-v
"^eepm-"
)
docmd epm remove
$dryrun
$PKGLIST
docmd epm remove
$dryrun
$PKGLIST
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
# TODO: dnf list extras
# TODO: dnf list extras
docmd epm upgrade
docmd epm upgrade
assure_exists package-cleanup dnf-utils
assure_exists package-cleanup dnf-utils
...
...
bin/epm-autoremove
View file @
186a6be0
...
@@ -303,7 +303,7 @@ case $PMTYPE in
...
@@ -303,7 +303,7 @@ case $PMTYPE in
docmd epm remove
$PKGLIST
docmd epm remove
$PKGLIST
done
done
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
if
[
-n
"
$dryrun
"
]
;
then
if
[
-n
"
$dryrun
"
]
;
then
fatal
"--dry-run is not supported yet"
fatal
"--dry-run is not supported yet"
fi
fi
...
...
bin/epm-changelog
View file @
186a6be0
...
@@ -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|urpm-rpm|zypper-rpm
)
apt-rpm|yum-rpm|dnf-rpm|
dnf5-rpm|
urpm-rpm|zypper-rpm
)
docmd_foreach
"rpm -q --changelog"
$@
docmd_foreach
"rpm -q --changelog"
$@
;;
;;
apt-dpkg|aptitude-dpkg
)
apt-dpkg|aptitude-dpkg
)
...
...
bin/epm-check
View file @
186a6be0
...
@@ -67,7 +67,7 @@ case $PMTYPE in
...
@@ -67,7 +67,7 @@ case $PMTYPE in
docmd rpm
-Va
--nofiles
--nodigest
docmd rpm
-Va
--nofiles
--nodigest
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
sudocmd dnf check
$DNFOPTIONS
sudocmd dnf check
$DNFOPTIONS
;;
;;
emerge
)
emerge
)
...
...
bin/epm-clean
View file @
186a6be0
...
@@ -59,7 +59,7 @@ case $PMTYPE in
...
@@ -59,7 +59,7 @@ case $PMTYPE in
sudocmd yum clean all
sudocmd yum clean all
#sudocmd yum makecache
#sudocmd yum makecache
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
sudocmd dnf clean all
sudocmd dnf clean all
;;
;;
urpm-rpm
)
urpm-rpm
)
...
...
bin/epm-downgrade
View file @
186a6be0
...
@@ -135,7 +135,7 @@ epm_downgrade()
...
@@ -135,7 +135,7 @@ epm_downgrade()
sudocmd yum distro-sync
sudocmd yum distro-sync
fi
fi
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
if
[
-n
"
$pkg_filenames
"
]
;
then
if
[
-n
"
$pkg_filenames
"
]
;
then
sudocmd dnf downgrade
$pkg_filenames
sudocmd dnf downgrade
$pkg_filenames
else
else
...
...
bin/epm-download
View file @
186a6be0
...
@@ -279,7 +279,7 @@ epm_download()
...
@@ -279,7 +279,7 @@ epm_download()
fi
fi
docmd apt-get download
$*
docmd apt-get download
$*
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
sudocmd dnf download
$print_url
$*
sudocmd dnf download
$print_url
$*
;;
;;
aptcyg
)
aptcyg
)
...
...
bin/epm-filelist
View file @
186a6be0
...
@@ -81,7 +81,7 @@ __epm_filelist_remote()
...
@@ -81,7 +81,7 @@ __epm_filelist_remote()
assure_exists yum-utils
assure_exists yum-utils
docmd repoquery
-q
-l
"
$@
"
docmd repoquery
-q
-l
"
$@
"
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
assure_exists dnf-plugins-core
assure_exists dnf-plugins-core
docmd dnf repoquery
-l
"
$@
"
docmd dnf repoquery
-l
"
$@
"
;;
;;
...
...
bin/epm-info
View file @
186a6be0
...
@@ -78,7 +78,7 @@ case $PMTYPE in
...
@@ -78,7 +78,7 @@ case $PMTYPE in
urpmi-rpm
)
urpmi-rpm
)
docmd urpmq
-i
$pkg_names
docmd urpmq
-i
$pkg_names
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
docmd dnf info
$pkg_names
docmd dnf info
$pkg_names
;;
;;
zypper-rpm
)
zypper-rpm
)
...
...
bin/epm-install
View file @
186a6be0
...
@@ -135,7 +135,7 @@ epm_install_names()
...
@@ -135,7 +135,7 @@ epm_install_names()
yum-rpm
)
yum-rpm
)
sudocmd yum
$YUMOPTIONS
install
$(
echo
"
$*
"
| exp_with_arch_suffix
)
sudocmd yum
$YUMOPTIONS
install
$(
echo
"
$*
"
| exp_with_arch_suffix
)
return
;;
return
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
sudocmd dnf
install
$(
echo
"
$*
"
| exp_with_arch_suffix
)
sudocmd dnf
install
$(
echo
"
$*
"
| exp_with_arch_suffix
)
return
;;
return
;;
snappy
)
snappy
)
...
@@ -223,7 +223,7 @@ epm_ni_install_names()
...
@@ -223,7 +223,7 @@ epm_ni_install_names()
yum-rpm
)
yum-rpm
)
sudocmd yum
-y
$YUMOPTIONS
install
$(
echo
"
$*
"
| exp_with_arch_suffix
)
sudocmd yum
-y
$YUMOPTIONS
install
$(
echo
"
$*
"
| exp_with_arch_suffix
)
return
;;
return
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
sudocmd dnf
install
-y
--allowerasing
$YUMOPTIONS
$(
echo
"
$*
"
| exp_with_arch_suffix
)
sudocmd dnf
install
-y
--allowerasing
$YUMOPTIONS
$(
echo
"
$*
"
| exp_with_arch_suffix
)
return
;;
return
;;
urpm-rpm
)
urpm-rpm
)
...
...
bin/epm-install-print-command
View file @
186a6be0
...
@@ -103,7 +103,7 @@ epm_print_install_names_command()
...
@@ -103,7 +103,7 @@ epm_print_install_names_command()
yum-rpm
)
yum-rpm
)
echo
"yum -y
$YUMOPTIONS
install
$*
"
echo
"yum -y
$YUMOPTIONS
install
$*
"
return
;;
return
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
echo
"dnf install -y
$YUMOPTIONS
--allowerasing
$*
"
echo
"dnf install -y
$YUMOPTIONS
--allowerasing
$*
"
return
;;
return
;;
urpm-rpm
)
urpm-rpm
)
...
...
bin/epm-kernel_update
View file @
186a6be0
...
@@ -93,7 +93,7 @@ esac
...
@@ -93,7 +93,7 @@ esac
esac
esac
case
$PMTYPE
in
case
$PMTYPE
in
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
docmd epm
install
kernel
docmd epm
install
kernel
;;
;;
apt-
*
)
apt-
*
)
...
...
bin/epm-mark
View file @
186a6be0
...
@@ -91,7 +91,7 @@ case $PMTYPE in
...
@@ -91,7 +91,7 @@ case $PMTYPE in
apt-dpkg
)
apt-dpkg
)
sudocmd apt-mark hold
"
$@
"
sudocmd apt-mark hold
"
$@
"
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
__dnf_assure_versionlock
__dnf_assure_versionlock
sudocmd dnf versionlock add
"
$@
"
sudocmd dnf versionlock add
"
$@
"
;;
;;
...
...
bin/epm-print
View file @
186a6be0
...
@@ -249,7 +249,7 @@ print_srcpkgname()
...
@@ -249,7 +249,7 @@ print_srcpkgname()
docmd urpmq
--sourcerpm
"
$@
"
docmd urpmq
--sourcerpm
"
$@
"
return
return
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
showcmd dnf repoquery
--qf
'%{SOURCERPM}'
"
$@
"
showcmd dnf repoquery
--qf
'%{SOURCERPM}'
"
$@
"
a
=
dnf repoquery
--qf
'%{SOURCERPM}'
"
$@
"
a
=
dnf repoquery
--qf
'%{SOURCERPM}'
"
$@
"
return
return
...
...
bin/epm-provides
View file @
186a6be0
...
@@ -92,7 +92,7 @@ case $PMTYPE in
...
@@ -92,7 +92,7 @@ case $PMTYPE in
fixme
"FIXME: use hi level commands or download firstly"
fixme
"FIXME: use hi level commands or download firstly"
fi
fi
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
if
is_installed
$pkg_names
;
then
if
is_installed
$pkg_names
;
then
CMD
=
"rpm -q --provides"
CMD
=
"rpm -q --provides"
else
else
...
...
bin/epm-query
View file @
186a6be0
...
@@ -45,7 +45,7 @@ exp_with_arch_suffix()
...
@@ -45,7 +45,7 @@ exp_with_arch_suffix()
# TODO: it is ok for ALT rpm to remove with this suffix
# TODO: it is ok for ALT rpm to remove with this suffix
# TODO: separate install and remove?
# TODO: separate install and remove?
case
$PMTYPE
in
case
$PMTYPE
in
yum-rpm|dnf-rpm
)
yum-rpm|dnf-rpm
|dnf5-rpm
)
suffix
=
".x86_64"
suffix
=
".x86_64"
;;
;;
*
)
*
)
...
@@ -146,7 +146,7 @@ __epm_get_hilevel_nameform()
...
@@ -146,7 +146,7 @@ __epm_get_hilevel_nameform()
echo
$pkg
echo
$pkg
return
return
;;
;;
yum-rpm|dnf-rpm
)
yum-rpm|dnf-rpm
|dnf5-rpm
)
# just use strict version with Epoch and Serial
# just use strict version with Epoch and Serial
local
pkg
local
pkg
#pkg=$(rpm -q --queryformat "%{EPOCH}:%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" -- $1)
#pkg=$(rpm -q --queryformat "%{EPOCH}:%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" -- $1)
...
...
bin/epm-reinstall
View file @
186a6be0
...
@@ -40,7 +40,7 @@ epm_reinstall_names()
...
@@ -40,7 +40,7 @@ epm_reinstall_names()
yum-rpm
)
yum-rpm
)
sudocmd yum reinstall
$@
sudocmd yum reinstall
$@
return
;;
return
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
sudocmd dnf reinstall
$@
sudocmd dnf reinstall
$@
return
;;
return
;;
homebrew
)
homebrew
)
...
...
bin/epm-release_downgrade
View file @
186a6be0
...
@@ -119,7 +119,7 @@ epm_release_downgrade()
...
@@ -119,7 +119,7 @@ epm_release_downgrade()
showcmd rpm
-Uvh
http://mirror.yandex.ru/fedora/linux/releases/16/Fedora/x86_64/os/Packages/fedora-release-16-1.noarch.rpm
showcmd rpm
-Uvh
http://mirror.yandex.ru/fedora/linux/releases/16/Fedora/x86_64/os/Packages/fedora-release-16-1.noarch.rpm
showcmd epm Upgrade
showcmd epm Upgrade
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
info
"Check https://fedoraproject.org/wiki/DNF_system_upgrade for an additional info"
info
"Check https://fedoraproject.org/wiki/DNF_system_upgrade for an additional info"
docmd epm
install
dnf
docmd epm
install
dnf
#docmd epm install epel-release yum-utils
#docmd epm install epel-release yum-utils
...
...
bin/epm-remove
View file @
186a6be0
...
@@ -124,7 +124,7 @@ epm_remove_names()
...
@@ -124,7 +124,7 @@ epm_remove_names()
yum-rpm
)
yum-rpm
)
sudocmd yum remove
$@
sudocmd yum remove
$@
return
;;
return
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
sudocmd dnf remove
$@
sudocmd dnf remove
$@
return
;;
return
;;
snappy
)
snappy
)
...
...
bin/epm-repolist
View file @
186a6be0
...
@@ -121,7 +121,7 @@ case $PMTYPE in
...
@@ -121,7 +121,7 @@ case $PMTYPE in
docmd yum repolist
$verbose
docmd yum repolist
$verbose
[
-n
"
$verbose
"
]
||
info
"Use --verbose if you need detail information."
[
-n
"
$verbose
"
]
||
info
"Use --verbose if you need detail information."
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
docmd dnf repolist
$verbose
docmd dnf repolist
$verbose
[
-n
"
$verbose
"
]
||
info
"Use --verbose if you need detail information."
[
-n
"
$verbose
"
]
||
info
"Use --verbose if you need detail information."
;;
;;
...
...
bin/epm-requires
View file @
186a6be0
...
@@ -151,7 +151,7 @@ case $PMTYPE in
...
@@ -151,7 +151,7 @@ case $PMTYPE in
CMD
=
"yum deplist"
CMD
=
"yum deplist"
fi
fi
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
if
is_installed
$pkg_names
;
then
if
is_installed
$pkg_names
;
then
CMD
=
"rpm -q --requires"
CMD
=
"rpm -q --requires"
else
else
...
...
bin/epm-search
View file @
186a6be0
...
@@ -62,7 +62,7 @@ case $PMTYPE in
...
@@ -62,7 +62,7 @@ case $PMTYPE in
yum-rpm
)
yum-rpm
)
CMD
=
"yum search"
CMD
=
"yum search"
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
CMD
=
"dnf search"
CMD
=
"dnf search"
;;
;;
zypper-rpm
)
zypper-rpm
)
...
...
bin/epm-search_file
View file @
186a6be0
...
@@ -80,7 +80,7 @@ case $PMTYPE in
...
@@ -80,7 +80,7 @@ case $PMTYPE in
info
"Search by full packages list is not implemented yet"
info
"Search by full packages list is not implemented yet"
CMD
=
"yum provides"
CMD
=
"yum provides"
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
# TODO
# TODO
info
"Search by full packages list is not implemented yet"
info
"Search by full packages list is not implemented yet"
CMD
=
"dnf provides"
CMD
=
"dnf provides"
...
...
bin/epm-update
View file @
186a6be0
...
@@ -131,7 +131,7 @@ case $PMTYPE in
...
@@ -131,7 +131,7 @@ case $PMTYPE in
# just skipped
# just skipped
[
-z
"
$verbose
"
]
||
info
"update command is stubbed for yum"
[
-z
"
$verbose
"
]
||
info
"update command is stubbed for yum"
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
# just skipped
# just skipped
[
-z
"
$verbose
"
]
||
info
"update command is stubbed for dnf"
[
-z
"
$verbose
"
]
||
info
"update command is stubbed for dnf"
;;
;;
...
...
bin/epm-upgrade
View file @
186a6be0
...
@@ -140,7 +140,7 @@ epm_upgrade()
...
@@ -140,7 +140,7 @@ epm_upgrade()
# can do update repobase automagically
# can do update repobase automagically
CMD
=
"yum
$OPTIONS
upgrade
$*
"
CMD
=
"yum
$OPTIONS
upgrade
$*
"
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
local
OPTIONS
=
"
$(
subst_option non_interactive
-y
)
"
local
OPTIONS
=
"
$(
subst_option non_interactive
-y
)
"
CMD
=
"dnf
$OPTIONS
upgrade
$*
"
CMD
=
"dnf
$OPTIONS
upgrade
$*
"
;;
;;
...
...
bin/epm-whatprovides
View file @
186a6be0
...
@@ -41,8 +41,8 @@ case $PMTYPE in
...
@@ -41,8 +41,8 @@ case $PMTYPE in
urpm-rpm
)
urpm-rpm
)
CMD
=
"urpmq --whatprovides"
CMD
=
"urpmq --whatprovides"
;;
;;
dnf-rpm
)
dnf-rpm
|dnf5-rpm
)
CMD
=
"
yum
provides"
CMD
=
"
dnf repoquery --what
provides"
;;
;;
zypper-rpm
)
zypper-rpm
)
CMD
=
"zypper what-provides"
CMD
=
"zypper what-provides"
...
...
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