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
5c6956d1
Commit
5c6956d1
authored
Nov 16, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm check: add rpm --rebuilddb
parent
247aa264
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
epm-check
bin/epm-check
+19
-1
No files found.
bin/epm-check
View file @
5c6956d1
...
@@ -27,9 +27,17 @@ __epm_check_container_issue_43533()
...
@@ -27,9 +27,17 @@ __epm_check_container_issue_43533()
echo
'%_netsharedpath /sys:/proc'
| sudocmd
tee
/etc/rpm/macros.d/container
echo
'%_netsharedpath /sys:/proc'
| sudocmd
tee
/etc/rpm/macros.d/container
}
}
__epm_rpm_rebuilddb
()
{
sudocmd
rm
-vf
/var/lib/rpm/__db
*
sudocmd rpm
$(
subst_option verbose
-vv
)
--rebuilddb
}
epm_check
()
epm_check
()
{
{
is_root
||
fatal
"Run me under root user."
update_repo_if_needed
update_repo_if_needed
local
APTOPTIONS
=
"
$(
subst_option non_interactive
-y
)
"
local
APTOPTIONS
=
"
$(
subst_option non_interactive
-y
)
"
local
DNFOPTIONS
=
"
$(
subst_option non_interactive
-y
)
$(
subst_option verbose
--verbose
)
"
local
DNFOPTIONS
=
"
$(
subst_option non_interactive
-y
)
$(
subst_option verbose
--verbose
)
"
...
@@ -43,8 +51,9 @@ case $PMTYPE in
...
@@ -43,8 +51,9 @@ case $PMTYPE in
apt-rpm
)
apt-rpm
)
#sudocmd apt-get check || exit
#sudocmd apt-get check || exit
#sudocmd apt-get update || exit
#sudocmd apt-get update || exit
__epm_rpm_rebuilddb
sudocmd apt-get
-f
$APTOPTIONS
install
||
return
sudocmd apt-get
-f
$APTOPTIONS
install
||
return
info
"You can
use epm dedup also
"
info
"You can
also use epm dedup
"
;;
;;
apt-dpkg
)
apt-dpkg
)
#sudocmd apt-get check || exit
#sudocmd apt-get check || exit
...
@@ -59,6 +68,8 @@ case $PMTYPE in
...
@@ -59,6 +68,8 @@ case $PMTYPE in
#sudocmd apt-get autoremove
#sudocmd apt-get autoremove
;;
;;
yum-rpm
)
yum-rpm
)
__epm_rpm_rebuilddb
docmd yum check
$DNFOPTIONS
docmd yum check
$DNFOPTIONS
docmd package-cleanup
--problems
docmd package-cleanup
--problems
...
@@ -68,15 +79,19 @@ case $PMTYPE in
...
@@ -68,15 +79,19 @@ case $PMTYPE in
docmd rpm
-Va
--nofiles
--nodigest
docmd rpm
-Va
--nofiles
--nodigest
;;
;;
dnf-rpm|dnf5-rpm
)
dnf-rpm|dnf5-rpm
)
__epm_rpm_rebuilddb
sudocmd dnf check
$DNFOPTIONS
sudocmd dnf check
$DNFOPTIONS
;;
;;
emerge
)
emerge
)
sudocmd revdep-rebuild
sudocmd revdep-rebuild
;;
;;
#urpm-rpm)
#urpm-rpm)
# __epm_rpm_rebuilddb
# sudocmd urpme --auto-orphans
# sudocmd urpme --auto-orphans
# ;;
# ;;
zypper-rpm
)
zypper-rpm
)
__epm_rpm_rebuilddb
sudocmd zypper
$(
subst_option non_interactive
--non-interactive
)
verify
sudocmd zypper
$(
subst_option non_interactive
--non-interactive
)
verify
;;
;;
conary
)
conary
)
...
@@ -97,6 +112,9 @@ case $PMTYPE in
...
@@ -97,6 +112,9 @@ case $PMTYPE in
apk
)
apk
)
sudocmd apk fix
sudocmd apk fix
;;
;;
*
-rpm
)
__epm_rpm_rebuilddb
;;
*
)
*
)
fatal
'Have no suitable command for $PMTYPE'
fatal
'Have no suitable 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