Image

Imageerebrandir wrote in Imagelinuxnewbies 😯confused

RPM questions

I just downloaded Perl 5.8.0. I'm running Red Hat 7.3, and have the RPM package perl-5.6.1-34.99.6 installed.



Actually, there are a lot of /perl.*/ packages installed. And I just realized that I've been upgrading some of them via CPAN.




List of installed packages:


groff-perl-1.17.2-12

mod_perl-1.26-5

openssl-perl-0.9.6b-18

perl-5.6.1-34.99.6

perl-CGI-2.752-34.99.6

perl-CPAN-1.59_54-34.99.6

perl-DateManip-5.40-15

perl-DBD-MySQL-1.2219-6

perl-DB_File-1.75-34.99.6

perl-DBI-1.21-1

perl-Digest-MD5-2.16-15

perl-HTML-Parser-3.26-2

perl-HTML-Tagset-3.03-14

perl-libnet-1.0901-17

perl-libwww-perl-5.63-9

perl-libxml-enno-1.02-15

perl-libxml-perl-0.07-14

perl-MIME-Base64-2.12-14

perl-NDBM_File-1.75-34.99.6

perl-Parse-Yapp-1.05-15

perl-SGMLSpm-1.03ii-4

perl-Storable-1.0.14-15

perl-TimeDate-1.10-14

perl-Time-HiRes-1.20-14

perl-URI-1.17-16

perl-XML-Dumper-0.4-12

perl-XML-Encoding-1.01-9

perl-XML-Grove-0.46alpha-11

perl-XML-Parser-2.30-15

perl-XML-Twig-2.02-9

rpm-perl-4.0.4-7x.18



So, my concern is, the files that RPM thinks are there are no longer really there. Should I have removed the RPM packages before installing the modules via CPAN? Can I remove the packages from RPM's management without uninstalling them (i.e. removing all files)? Should I remove the main Perl package before building it from the source? I have the feeling that this would really screw things up.



Should I not even try to install Perl 5.8.0 on top of Perl 5.6.1—uninstall all Perl-related RPM packages, wipe my lib directory clean, and then build Perl 5.8.0, and reinstall the modules I had before from CPAN?



In general, when I perform an upgrade manually, by building something from the source, should I be first uninstalling the RPM packages? I've been doing this for most things, but it didn't occur to me with the Perl modules.