yum based install

Julian Field MailScanner at ecs.soton.ac.uk
Thu May 24 19:01:16 IST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Scott Silva wrote:
> Julian Field spake the following on 5/24/2007 9:36 AM:
>   
>> Scott Silva wrote:
>>     
>>> Hugo van der Kooij spake the following on 5/24/2007 3:16 AM:
>>>       
>>>> Hi,
>>>>
>>>> It seems rpmforge will have (or does have by now ;-) a perl-Filesys-Df
>>>> package.
>>>>
>>>> So the only thing one would need to use yum to install MS would be a
>>>> repository with the mailscanner RPM in then for the usual distro's.
>>>>
>>>> There is an issue however that needs to be addressed in the MS rpm file
>>>> to make it work. There is no dependency for perl-Filesys-Df in the MS
>>>> RPM. I noticed the dependency only when I started MS that it needed
>>>> Filesys/Df.pm to run.
>>>>
>>>> I understand Julian is no fan of packagers adding MS to their
>>>> repositories. If keeping it up-to-date and getting some usage figures is
>>>> the main issue then I think it would be almost trivial to setup a
>>>> repository so yum can fetch MS from the right site and Julian will still
>>>> have an up-to-date repository and the download statistics.
>>>>
>>>> Hugo.
>>>>
>>>>     
>>>>         
>>> If Julian doesn't want the MailScanner rpm on a repo, you could always do a
>>> yum localinstall with proper repo info in place.
>>>       
>> Do I need to do anything to make yum installs work more easily?
>>
>> Jules
>>
>>     
> I think it was mentioned near the top of this message about adding the
> dependency for perl-Filesys-Df. If the rpm has the proper requires,
The problem with that is it doesn't help you if you have installed any 
of the Perl modules using CPAN. This is why the MailScanner rpm file 
doesn't have a long "requires" list containing all the Perl modules it 
needs. If you have any of the Perl modules installed via CPAN, you have 
the module but don't have the RPM for it.

Some people (and there are quite of few of them) prefer to use CPAN to 
manage their Perl modules as it avoids the problem where I have to 
'force' the installation of an RPM because the Perl module builds into 
the same location as that used by the main perl rpm itself. Quite a few 
of the Perl modules I use do this. You will notice the 'clashes' error 
messages when the Perl rpms attempt to install during my install.sh script.

A Perl module can choose to live in one of 3 places:
(1) the main perl library tree (these are the troublemakers)
(2) the 'vendor_perl' tree
(3) the 'site_perl' tree

If a module chooses (1) then the RPM built from it won't install without 
being forced. And if you force it, it will overwrite any later version 
that may be installed already.

So people use CPAN instead as it happily installs into (1) without any 
trickery that they don't know about, and it won't overwrite newer versions.

Unfortunately, the whole concept of RPMs doesn't work very well with how 
the Perl library structure works. And I can't fix that.


Jules

- -- 
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk



-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.1 (Build 1012)
Charset: UTF-8

wj8DBQFGVdL1EfZZRxQVtlQRAjLZAJ4r70hEBBWWFnoJ6An3Zyabl0NfVwCg9akU
z0y+Ta+XJ36hR8AP819kRp0=
=P1ot
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk



More information about the MailScanner mailing list