Greetings :-)
On this particular production centos 4 mail server system if I
rpm -qa | grep perl
I get...
perl-Filter-1.30-6 newt-perl-1.08-7 perl-DateManip-5.42a-3 perl-libwww-perl-5.79-5 perl-XML-Encoding-1.01-26 perl-Time-HiRes-1.55-3 perl-URI-1.30-4 mod_perl-1.99_16-4.centos4 perl-HTML-Tagset-3.03-30 perl-Parse-Yapp-1.05-32 perl-XML-Parser-2.34-5 perl-XML-Dumper-0.71-2 perl-libxml-enno-1.02-31 perl-Digest-SHA1-2.07-5 perl-Net-DNS-0.48-1 <------------- **** perl-DBI-1.40-8 perl-HTML-Parser-3.35-6 perl-libxml-perl-0.07-30 perl-Digest-HMAC-1.01-13 perl-5.8.5-36.RHEL4
right now I am focusing on perl-Net-DNS-0.48-1
and I want to figure out how to migrate to the latest version of Net::DNS on the
website or learn if .59 has been rolled into the upstream and therefore to centos 4 or ???
i ask this as I am leary of upgrading production centos servers via CPAN
I am looking to list wisdom to get some direction to help solve this one first please.
I have researched the basics yet if I may please get a little help to continue going in the right direction I would be most grateful.
I am sure I will want to add or upgrade some of the others as well.
Ummm much of this is in relation to Spamassassin 3.1.7 issues
Please chime in on creating a new RPM or using CPAN and any other ways that you folks are dealing with this pleasae?
Thank you and kind regards
- rh
-- Robert - Abba Communications Computer & Internet Services (509) 624-7159 - www.abbacomm.net
On Wed, January 17, 2007 5:44 pm, R Lists06 wrote:
Greetings :-)
On this particular production centos 4 mail server system if I
rpm -qa | grep perl
I get...
perl-Filter-1.30-6 newt-perl-1.08-7 perl-DateManip-5.42a-3 perl-libwww-perl-5.79-5 perl-XML-Encoding-1.01-26 perl-Time-HiRes-1.55-3 perl-URI-1.30-4 mod_perl-1.99_16-4.centos4 perl-HTML-Tagset-3.03-30 perl-Parse-Yapp-1.05-32 perl-XML-Parser-2.34-5 perl-XML-Dumper-0.71-2 perl-libxml-enno-1.02-31 perl-Digest-SHA1-2.07-5 perl-Net-DNS-0.48-1 <------------- **** perl-DBI-1.40-8 perl-HTML-Parser-3.35-6 perl-libxml-perl-0.07-30 perl-Digest-HMAC-1.01-13 perl-5.8.5-36.RHEL4
right now I am focusing on perl-Net-DNS-0.48-1
and I want to figure out how to migrate to the latest version of Net::DNS on the
website or learn if .59 has been rolled into the upstream and therefore to centos 4 or ???
i ask this as I am leary of upgrading production centos servers via CPAN
I am looking to list wisdom to get some direction to help solve this one first please.
I have researched the basics yet if I may please get a little help to continue going in the right direction I would be most grateful.
I am sure I will want to add or upgrade some of the others as well.
Ummm much of this is in relation to Spamassassin 3.1.7 issues
Please chime in on creating a new RPM or using CPAN and any other ways that you folks are dealing with this pleasae?
Thank you and kind regards
- rh
-- Robert - Abba Communications Computer & Internet Services (509) 624-7159 - www.abbacomm.net
type "perl -MCPAN -e shell" Select no for manual configuration type "install Net::DNS"
Net-DNS-0.59 is the version that is available via this method.
Cheers!
Matthew Martz wrote:
On Wed, January 17, 2007 5:44 pm, R Lists06 wrote:
perl-Net-DNS-0.48-1 <------------- ****
type "perl -MCPAN -e shell" Select no for manual configuration type "install Net::DNS"
Net-DNS-0.59 is the version that is available via this method.
Yes. But that really doesn't register with rpm. If the new version really is needed, cpan2rpm should be used. It doesn't do great packaging, but at least it *does* package.
Ralph
type "perl -MCPAN -e shell" Select no for manual configuration type "install Net::DNS"
Net-DNS-0.59 is the version that is available via this method.
Except that rpm is not aware that you've updated things, and any package relying on this rpm will have issues. This is a bad way to do things for an rpm based distribution, hence the OP stating that he was hesitant to use cpan.
Please chime in on creating a new RPM or using CPAN and any other ways that you folks are dealing with this pleasae?
.59 is available from the rpmforge repository. See http://wiki.centos.org/Repositories
.59 is available from the rpmforge repository. See http://wiki.centos.org/Repositories
I notice that in the dag repo that all dists seem to have it except EL4 and it is ignored
if you look at the spec file there is a notation regarding EL4
http://dag.wieers.com/packages/perl-Net-DNS/perl-Net-DNS.spec
any ideas or help here?
I am not a perl expert or I wouldn't be taking peoples time on this I imagine
so, I am wondering what the wise alternative is for centos 4 and version .59 of this perl mod Net-DNS ?
which other repo or advise?
I don't use yum or yum protect base to do this kind of thing right now as I need some more granular control until we develop into it.
- rh
-- Robert - Abba Communications Computer & Internet Services (509) 624-7159 - www.abbacomm.net
R Lists06 spake the following on 1/17/2007 9:27 PM:
.59 is available from the rpmforge repository. See http://wiki.centos.org/Repositories
I notice that in the dag repo that all dists seem to have it except EL4 and it is ignored
if you look at the spec file there is a notation regarding EL4
http://dag.wieers.com/packages/perl-Net-DNS/perl-Net-DNS.spec
any ideas or help here?
I am not a perl expert or I wouldn't be taking peoples time on this I imagine
so, I am wondering what the wise alternative is for centos 4 and version .59 of this perl mod Net-DNS ?
which other repo or advise?
I don't use yum or yum protect base to do this kind of thing right now as I need some more granular control until we develop into it.
- rh
-- Robert - Abba Communications Computer & Internet Services (509) 624-7159 - www.abbacomm.net
I just built it with cpan2rpm. It took less than 2 minutes. I can send you an rpm off list if that will help you.
I just built it with cpan2rpm. It took less than 2 minutes. I can send you an rpm off list if that will help you. --
That would be nice, or learning how to do it.
Question(s)
how does cpan2rpm know that I am using centos 4 and associated libraries and even more importantly, which perl modules I am using or what perl modules that need to be used in the latest incarnation?
Ummmm I was experimenting with the fedora core 5 version source rpm for latest Net-DNS and although I have been making progress it is like a chicken and egg things at times.
Every package needs another package
- rh
-- Robert - Abba Communications Computer & Internet Services (509) 624-7159 - www.abbacomm.net
R Lists06 spake the following on 1/18/2007 5:25 PM:
I just built it with cpan2rpm. It took less than 2 minutes. I can send you an rpm off list if that will help you. --
That would be nice, or learning how to do it.
Question(s)
how does cpan2rpm know that I am using centos 4 and associated libraries and even more importantly, which perl modules I am using or what perl modules that need to be used in the latest incarnation?
cpan2rpm basically seems to be a wrapper that pulls the source from cpan, builds a simple spec file, and tries to do an rpmbuild on the source. If you were good with rpm, you could do it all yourself.
On 1/19/07, Scott Silva ssilva@sgvwater.com wrote:
R Lists06 spake the following on 1/18/2007 5:25 PM:
I just built it with cpan2rpm. It took less than 2 minutes. I can send you an rpm off list if that will help you. --
That would be nice, or learning how to do it.
Question(s)
how does cpan2rpm know that I am using centos 4 and associated libraries and even more importantly, which perl modules I am using or what perl modules that need to be used in the latest incarnation?
cpan2rpm basically seems to be a wrapper that pulls the source from cpan, builds a simple spec file, and tries to do an rpmbuild on the source. If you were good with rpm, you could do it all yourself.
But many who are good with rpm use cpan2rpm or cpanflute. Why? Because someone else already did all the work for us. If they lack we patch them. This is the open source way (of course if they were fundementally wrong we would do our own thing and unleash yet another open source tool into the wild).
Cheers...james
James Olin Oden spake the following on 1/19/2007 11:26 AM:
On 1/19/07, Scott Silva ssilva@sgvwater.com wrote:
R Lists06 spake the following on 1/18/2007 5:25 PM:
I just built it with cpan2rpm. It took less than 2 minutes. I can send you an rpm off list if that will help you. --
That would be nice, or learning how to do it.
Question(s)
how does cpan2rpm know that I am using centos 4 and associated
libraries and
even more importantly, which perl modules I am using or what perl
modules
that need to be used in the latest incarnation?
cpan2rpm basically seems to be a wrapper that pulls the source from cpan, builds a simple spec file, and tries to do an rpmbuild on the source. If you were good with rpm, you could do it all yourself.
But many who are good with rpm use cpan2rpm or cpanflute. Why? Because someone else already did all the work for us. If they lack we patch them. This is the open source way (of course if they were fundementally wrong we would do our own thing and unleash yet another open source tool into the wild).
Cheers...james
True .. So true. Why go out and design a hammer when you really just wanted to hang a picture! I haven't tried cpanflute. Does it work any better? Or is it just a different hammer?
R Lists06 wrote:
i ask this as I am leary of upgrading production centos servers via CPAN
I am looking to list wisdom to get some direction to help solve this one first please.
Personally, I wouldn't be leery of upgrading Net::DNS via CPAN at all. It's probably better than upgrading perl modules with yum or apt-get, since CPAN is pretty much the authority on perl in general.
If you're really leery of using the CPAN shell, or want a more automated process, I'd download the source tarball, verify that the manual installation method works, script it, and then rsync the tarball/script, and do a over ssh to fire it off.
An example of a script I use to send around qmail aliases would be:
#!/bin/bash # $Id: syncAliases,v 1.0 2006/11/08 15:18:00 peter Exp $ # # Synchronize the /var/qmail/alias/aliases file after updates are made and # rebuild the aliases.cdb from blade1.
cd /var/qmail/alias || exit 1 make all MASTER=host1 HOSTS="host5 host6 host7 host8" for h in $HOSTS ; do scp /var/qmail/alias/aliases root@$h:/var/qmail/alias/aliases ssh root@$h "cd /var/qmail/alias && make all" done
Fire it off, pop in the passphraze twice, and let it rip.
For your application, I'd replace the /var/qmail/aliases with <full_path_to_source_tarball>, make a script that runs on the local system after sending the file over, put a line that sends it over before the tarball or after, and then change the execute line enclosed in doublequotes to run that script.
As long as you verify everything works by testing before committing, there's no reason you couldn't do 200 servers in not too much over an hour. If you trust using empty passphraze host keys (not really considered a good idea), then it could be finished in a half hour.
Peter
Personally, I wouldn't be leery of upgrading Net::DNS via CPAN at all. It's probably better than upgrading perl modules with yum or apt-get, since CPAN is pretty much the authority on perl in general.
As stated earlier, he is right to be leery, as updating via CPAN does *NOT* inform rpm of the changes. This means that anything which requires the perl-Net-DNS package will fail with dependency errors.
Also, while CPAN may be the authority on perl, they are not the authority on PACKAGED perl, as it ships with any managed distribution. Your methods show you to be working against the benefits of package management, and therefore, administrative sanity.
You can just as surely get apache from apache.org, but why duplicate the effort when the distribution has taken the time to test, patch, secure and configure the software for you. Unless there's a compelling and convincing reason (and I have yet to see one) you should ALWAYS use your distribution's package management scheme. This applies to all distributions, and manners of package management with the exception of slackware for obvious reasons.