Hello, I''m setting up a test mailserver on centos4. I want to use stable rpm packages but ones that don''t have conflicting lib requirements. I''ve got the standard yum configuration with one excdeption i''ve enabled the centosplus yum repository. I''ve read that dag''s repository has a package i''m going to need courier so i figured to set that up. Here''s my problem, if i then do a yum update on this box and more than one repository has a package say kernel which does it get? Or, if a package has a library dependency and that is installed and it conflicts with another, how would this be resolved? Sorry about the confusion any help appreciated. I''m also going to possibly have a need to roll out custom-made rpms not sure yet on that one, and it''s been a while since i did them, rh7 i think was the last time. Does anyone have a Centos-specific howto on this not for modifying an existing srpm, but for creating an rpm from tarball? Thanks. Dave.
On 3/28/06, Dave <dmehler26@woh.rr.com> wrote:> if i then do a > yum update on this box and more than one repository has a package say kernel > which does it get? Or, if a package has a library dependency and that is > installed and it conflicts with another, how would this be resolved?with protectbase yum''s plugin?
On Tue, 2006-03-28 at 01:41 -0500, Alain Reguera wrote:> On 3/28/06, Dave <dmehler26@woh.rr.com> wrote: > > if i then do a > > yum update on this box and more than one repository has a package say kernel > > which does it get? Or, if a package has a library dependency and that is > > installed and it conflicts with another, how would this be resolved? > > with protectbase yum''s plugin?That is one option. The plugin is named: yum-plugin-protectbase You would also need to edit your /etc/yum.conf and add this line (after installing the protectbase plugin): plugins=1 The other option is to only include the packages you need from centosplus and dags repo using the "includepkgs=" yum.conf repo option. If you put this in the centosplus repo definition, you will get only the postfix programs (for example): includepkgs=postfix postfix-pflogsumm Then when running updates and installs, only postfix and postfix- pflogsumm would be looked at from the centosplus repo. For more yum info see: http://mirror.centos.org/centos/4/docs/html/yum/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.centos.org/pipermail/centos/attachments/20060328/eee7c989/attachment.bin
On Tue, 2006-03-28 at 00:59 -0500, Dave wrote:> Hello, > I''m setting up a test mailserver on centos4. I want to use stable rpm > packages but ones that don''t have conflicting lib requirements. I''ve got the > standard yum configuration with one excdeption i''ve enabled the centosplus > yum repository. I''ve read that dag''s repository has a package i''m going to > need courier so i figured to set that up. Here''s my problem, if i then do a > yum update on this box and more than one repository has a package say kernel > which does it get? Or, if a package has a library dependency and that is > installed and it conflicts with another, how would this be resolved? Sorry > about the confusion any help appreciated. > I''m also going to possibly have a need to roll out custom-made rpms not > sure yet on that one, and it''s been a while since i did them, rh7 i think > was the last time. Does anyone have a Centos-specific howto on this not for > modifying an existing srpm, but for creating an rpm from tarball? > Thanks. > Dave.---- you can have the repositories installed and disabled - the same way that centosplus is typically configured... ''enabled=0'' which means that yum update won''t pull packages from them but a single line yum command can... yum enablerepo=dag install package yum enablerepo=centos install package if there are additional packages necessary that aren''t supplied by the base centos repo, it will tell you - and it''s likely that the dependencies would also be satisfied by the same repo. This should prevent any conflicts but I can assure you that using dag''s repository enabled all the time, I have yet to run into conflicts. Dag does replace a few packages (mostly perl stuff) from the upstream and hence from centos base. As for rolling rpms from tarballs...nothing has changed except that the command is now rpmbuild -tb ... - man rpmbuild Craig
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Mar 28, 2006 at 05:04:58AM -0700, Craig White wrote:> you can have the repositories installed and disabled - the same way that > centosplus is typically configured... ''enabled=0'' which means that yum > update won''t pull packages from them but a single line yum command > can... > > yum enablerepo=dag install package > yum enablerepo=centos install packageOr you can even use: yum --disablerepo=* --enablerepo=dag install package (order matters) That way, yum will check ONLY the dag repo. []s - -- Rodrigo Barbosa <rodrigob@suespammers.org> "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEKXQLpdyWzQ5b5ckRAkmAAKC/vZzsd7mEdk8n+ElnZt3IerL50ACdF7NE zlfoRqV/3bytrcWG3oIVg7E=5BbH -----END PGP SIGNATURE-----