Rocky Linux 9.1 logwatch issues

Hello Team,

I have just installed a basic rocky linux 9.1 with web service. Then I have added logwatch.
When I run logwatch command below the issue :

Can’t locate File/Path.pm in @INC (you may need to install the File::Path module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/share/perl5/vendor_perl/File/Temp.pm line 149.
BEGIN failed–compilation aborted at /usr/share/perl5/vendor_perl/File/Temp.pm line 149.
Compilation failed in require at /usr/sbin/logwatch line 64.
BEGIN failed–compilation aborted at /usr/sbin/logwatch line 64.

Has anyone solved this issue ? Thanks for your help.

dnf install logwatch result :
logwatch-7.5.5-4.el9.noarch
perl-Date-Manip-6.85-3.el9.noarch
perl-Sys-CPU-0.61-26.el9.x86_64
perl-Sys-MemInfo-0.99-18.el9.0.1.x86_64
perl-diagnostics-1.37-479.el9.noarch
s-nail-14.9.22-6.el9.x86_64

/usr/bin/perl -v
This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-linux-thread-multi

Running:

# dnf whatprovides */Path.pm
Last metadata expiration check: 1:06:10 ago on Tue 14 Feb 2023 10:17:31 AM EST.
debconf-1.5.79-4.el9.noarch : Debian configuration management system
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/Debconf/Path.pm

dpkg-perl-1.21.9-1.el9.noarch : Dpkg perl modules
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/Dpkg/Path.pm

mariadb-test-3:10.5.16-2.el9_0.x86_64 : The test suite distributed with MariaDB
Repo        : crb
Matched from:
Filename    : /usr/share/mysql-test/lib/My/File/Path.pm

mysql-test-8.0.30-3.el9_0.x86_64 : The test suite distributed with MySQL
Repo        : crb
Matched from:
Filename    : /usr/share/mysql-test/lib/My/File/Path.pm

perl-File-Path-2.18-4.el9.noarch : Create or remove directory trees
Repo        : @System
Matched from:
Filename    : /usr/share/perl5/vendor_perl/File/Path.pm

perl-File-Path-2.18-4.el9.noarch : Create or remove directory trees
Repo        : appstream
Matched from:
Filename    : /usr/share/perl5/vendor_perl/File/Path.pm

perl-Mojolicious-9.22-2.el9.noarch : A next generation web framework for Perl
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/Mojo/Path.pm

perl-RDF-Query-2.918-19.el9.noarch : SPARQL 1.1 Query and Update implementation
                                   : for RDF::Trine
Repo        : epel
Matched from:
Filename    : /usr/share/perl5/vendor_perl/RDF/Query/Algebra/Path.pm
Filename    : /usr/share/perl5/vendor_perl/RDF/Query/Plan/Path.pm

It is available in appstream as:

perl-File-Path-2.18-4.el9.noarch
which should be an automatically enabled repository.

I’m running logwatch and don’t remember having to download that rpm separately. It could be that something else I installed called it in as a dependency.

All is ok now. I think you have right :
“It could be that something else I installed called it in as a dependency”
Really thanks for your answer and your help !