[ATrpms-users] Co-ordinating package versions on multiple systems (HOWTO?)
Chris Rouch
chris.rouch at gmail.com
Thu Mar 13 10:17:13 CET 2008
On 3/12/08, Craig Huff <huffcslists at gmail.com> wrote:
> On Wed, Mar 12, 2008 at 7:31 AM, Chris Rouch <chris.rouch at gmail.com> wrote:
> >
> > On 3/12/08, Craig Huff <huffcslists at gmail.com> wrote:
> > > My question is: How do I go about updating later systems with the same
> > > .rpm that I used on earlier systems? Is the .rpm that has been
> > > installed on system A physically present there as a single file that
> > > could easily be moved (e.g. with scp) to system B and then locally
> > > referenced in the yum invocation (or better, referenced remotely from
> > > A) on B? If so, where should I expect to find the .rpm and how do I
> > > tell yum to install /the/package/at/this/location/existing.rpm?
> >
> > In /etc/yum.conf make sure
> >
> > keepcache=1
> >
> > Then all packages will be in e.g. /var/cache/yum/atrpms/packages.
> >
> Thanks Chris! That answers the first half of my question.
>
> Now, how do I tell yum (and smart) to install an rpm that's on a local
> drive such as SystemB:/the/package/at/this/location/existing.rpm (or
> do I have to dig into the rpm man-page)?
>
You need to dig in the yum manual pages. I have a repo configured like this
[goodison-atrpms]
name = atrpms locally stored rpms
baseurl = http://www.intranet.goodison/yum/f$releasever/i386/atrpms
enabled=1
(my private lan is configured as www.intranet.goodison)
The httpd server is configured to point /yum at the right place, and
then every night I run a script which calls
createrepo $YUMDIR/$release/$arch/$dir
e.g createrepo $YUMDIR/f8/i386/atrpms
I don't think there's any guarantee that yum will look at the local
copy rather than atrpms itself, but
it seems to happen this way.
You can probably do something similar with smart, but I gave up on it
a long time ago when it ate all the memory on my laptop.
HTH,
Chris
More information about the atrpms-users
mailing list