CentOS 8.x dnf verify installed packages
From Notes_Wiki
<yambe:breadcrumb self="dnf verify installed packages">CentOS 8.x dnf or yum|dnf or yum</yambe:breadcrumb>
CentOS 8.x dnf verify installed packages
To verify all installed packages use:
rpm --verify -a
Note that this does not checks for missing dependencies. For that use:
yum check dependencies
which finds issues with dependencies of installed programs.
On CentOS 8 this shows:
Modular dependency problems: Problem 1: conflicting requests - nothing provides module(perl:5.26) needed by module perl-DBD-MySQL:4.046:8010020191114030811:073fa5fe-0.x86_64 Problem 2: conflicting requests - nothing provides module(perl:5.26) needed by module perl-DBD-SQLite:1.58:8010020191114033549:073fa5fe-0.x86_64 Problem 3: conflicting requests - nothing provides module(perl:5.26) needed by module perl-DBI:1.641:8010020191113222731:16b3ab4d-0.x86_64
Unfortunately dnf works better on CentOS 8 then yum and hence ' yum check dependencies' does not helps and results in output similar to:
Last metadata expiration check: 1 day, 2:54:55 ago on Sun 12 Apr 2020 10:31:51 PM IST. Package perl-4:5.26.3-416.el8.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! <pre> However with dnf we can do: <pre> dnf module list perl
which results into
Last metadata expiration check: 1 day, 2:55:37 ago on Sun 12 Apr 2020 10:31:51 PM IST. CentOS-8 - AppStream Name Stream Profiles Summary perl 5.24 common [d], minimal Practical Extraction and Report Language perl 5.26 [d] common [d], minimal Practical Extraction and Report Language Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
Then use:
dnf module -y install perl:5.26
which shows output
Last metadata expiration check: 1 day, 2:56:05 ago on Sun 12 Apr 2020 10:31:51 PM IST. Dependencies resolved. ====================================================================================================================================================== Package Architecture Version Repository Size ====================================================================================================================================================== Installing module profiles: perl/common Enabling module streams: perl 5.26 Transaction Summary ====================================================================================================================================================== Complete!
Refer:
<yambe:breadcrumb self="dnf verify installed packages">CentOS 8.x dnf or yum|dnf or yum</yambe:breadcrumb>