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