Saturday, August 18, 2012

CentOS 5: Install Rsnapshot via RPM

Another one, this time, Rsnapshot, my favorite backup utility...
Not as complex as the getting Nagios up & running on the CentOS box.

Get the RPM first:
wget http://pkgs.repoforge.org/rsnapshot/rsnapshot-1.3.1-1.el5.rf.noarch.rpm
And test how the thing would go...
# rpm --test -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
       perl(XML::Simple) is needed by rsnapshot-1.3.1-1.el5.rf.noarch
       perl(XML::Validator::Schema) is needed by rsnapshot-1.3.1-1.el5.rf.noarch
First one its an easy one...
# yum install perl-XML-Simple

Installed:
  perl-XML-Simple.noarch 0:2.14-4.fc6                                                                                                                                                     

Dependency Installed:
  perl-XML-Parser.x86_64 0:2.34-6.1.2.2.1                                                                                                                                                 

Complete!
Another test...
# rpm --test -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
       perl(XML::Validator::Schema) is needed by rsnapshot-1.3.1-1.el5.rf.noarch
More downloading...
wget http://pkgs.repoforge.org/perl-XML-Validator-Schema/perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm
And testing...
# rpm --test -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header 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.noarch
       perl(XML::SAX::Exception) is needed by perl-XML-Validator-Schema-1.10-1.el5.rf.noarch
       perl(XML::SAX::ParserFactory) is needed by perl-XML-Validator-Schema-1.10-1.el5.rf.noarch
Some of those are on the official repo:
# yum install perl-XML-SAX

Installed:
  perl-XML-SAX.noarch 0:0.14-11                                                                                                              

Dependency Installed:
  perl-XML-NamespaceSupport.noarch 0:1.09-1.2.1                                                                                              

Complete!
More testing...
# rpm --test -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header 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.noarch
More downloading...
wget http://pkgs.repoforge.org/perl-XML-Filter-BufferText/perl-XML-Filter-BufferText-1.01-1.2.el5.rf.noarch.rpm
Last test...
# rpm --test -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm perl-XML-Filter-BufferText-1.01-1.2.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
Go with the install!
# rpm -ivh rsnapshot-1.3.1-1.el5.rf.noarch.rpm perl-XML-Validator-Schema-1.10-1.el5.rf.noarch.rpm perl-XML-Filter-BufferText-1.01-1.2.el5.rf.noarch.rpm 
warning: rsnapshot-1.3.1-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:perl-XML-Filter-BufferT########################################### [ 33%]
   2:perl-XML-Validator-Sche########################################### [ 67%]
   3:rsnapshot              ########################################### [100%]

Labels: , , ,

4 Comments:

Anonymous Anonymous said...

Thank you ! Your post save my life !

11:44 AM  
Blogger hictio said...

Glad it was useful.

2:03 PM  
Blogger Unknown said...

Wow this post was a bullseye for me. Thanks.

8:24 AM  
Blogger hictio said...

Well, I'm glad it was useful, even aftwr all that time.

9:23 PM  

Post a Comment

<< Home