Monday, May 26, 2008

Rsnapshot install on CentOS5

rsnapshot it is a backup script that I happen to love.
Installed it this last week on a CentOS 5 server, here is a round down of the whole process, for the broken dependencies didn't want to use Perl's MCPAN, but plain vanilla RPMs, so it is simple to maintain, update, etc.

The RPM package had a few dependencies unmet on my system:

[web10 rpms]# sudo rpm --test -ivh rsnapshot-1.3.0-1.el5.rf.noarch.rpm
warning: rsnapshot-1.3.0-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
perl(DBI) is needed by rsnapshot-1.3.0-1.el5.rf.noarch
perl(XML::Simple) is needed by rsnapshot-1.3.0-1.el5.rf.noarch
perl(XML::Validator::Schema) is needed by rsnapshot-1.3.0-1.el5.rf.noarch


So, installed those via yum:

yum install perl-DBI
yum install perl-XML-Simple

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
perl-XML-Simple noarch 2.14-4.fc6 base 68 k
Installing for dependencies:
perl-Compress-Zlib i386 1.42-1.fc6 base 52 k
perl-HTML-Parser i386 3.55-1.fc6 base 92 k
perl-HTML-Tagset noarch 3.10-2.1.1 base 15 k
perl-URI noarch 1.35-3 base 116 k
perl-XML-Parser i386 2.34-6.1.2.2.1 base 210 k
perl-libwww-perl noarch 5.805-1.1.1 base 376 k

Transaction Summary
=============================================================================
Install 7 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 929 k
Is this ok [y/N]:


With the "perl(XML::Validator::Schema)" Perl module, I wasn't that lucky using yum:

[web10 rpms]# sudo yum install perl-XML-Validator-Schema
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do

~snip

[web10 rpms]# sudo rpms]# yum install perl-XML-Validator
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do


So I got it from the DAG website, perl-XML-Validator-Schema, but it gave a dependency problem when tried to install it:

[web10 rpms]# sudo rpm --test -ivh perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm
warning: perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
perl(XML::Filter::BufferText) is needed by perl-XML-Validator-Schema-1.10-1.el5.rf
perl(XML::SAX::Exception) is needed by perl-XML-Validator-Schema-1.10-1.el5.rf
perl(XML::SAX::ParserFactory) is needed by perl-XML-Validator-Schema-1.10-1.el5.rf


So, installed via yum:

yum install perl-XML-SAX

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
perl-XML-SAX noarch 0.14-5 base 75 k
Installing for dependencies:
perl-XML-NamespaceSupport noarch 1.09-1.2.1 base 15 k

Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 90 k
Is this ok [y/N]: y


And then get the other needed package from DAG, once again: perl-XML-Filter-BufferText.
After that, everything went golden:

[web10 rpms]# sudo rpm --test -ivh perl-XML-Filter-BufferText-1.01-1.2.el5.rf.noarch.rpm
warning: perl-XML-Filter-BufferText-1.01-1.2.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]

[web10 rpms]# sudo rpm --test -ivh perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm
warning: perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]

[web10 rpms]# sudo rpm --test -ivh rsnapshot-1.3.0-1.el5.rf.noarch.rpm
warning: rsnapshot-1.3.0-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]

Labels: , , ,

0 Comments:

Post a Comment

<< Home