Install logwatch Centos 6
Logwatch is a wonderfull Linux tool that informs us (by email if you like) to what happened to a server during the previous day (configurable).
In CentOS 6, there’s a problem installing it (at least in all my servers with CentOS 6 i had it) because of perl-Date-Manip, with the error:
http://mirrors.nfsi.pt/CentOS/6.2/os/i386/Packages/perl-Date-Manip-6.24-1.el6.noarch.rpm: [Errno -1] Package does not match intended download.
I guess it’s because of the version…
The solution: Get perl-Date-Manip-5.54-4.el6.noarch.rpm from the internet (ie rpm.pbone.net) and before installing it, install all it’s dependencies.
NOTE: This version is i686. For x86_64 just replace the arch.
Go to http://rpm.pbone.net/index.php3/stat/4/idpl/17455805/dir/centos_6/com/perl-Date-Manip-5.54-4.el6.noarch.rpm.html and download it.
Before installing, install all it’s dependencies:
yum install mailx perl perl-Module-Pluggable perl-Pod-Escapes perl-Pod-Simple perl-YAML-Syck perl-libs perl-version
And then, install perl-Date-Manip that we have downloaded before:
rpm -ivh perl-Date-Manip-5.54-4.el6.noarch.rpm
and next, we can install logwatch:
yum install logwatch
This way, logwatch is installed