Re: download strategy, was Re: apt, yum, up2date, smartpm, ... ?

William Stearns <[email protected]>
Newsgroups gmane.linux.freshrpms.user
Message-ID <Pine.LNX.4.63.0509220046050.5908@sparrow>
Good evening, Les,

On Wed, 21 Sep 2005, Les Mikesell wrote:

> On Wed, 2005-09-21 at 21:14, William Stearns wrote:
>>  	In the cases where the user does have access to the iso images,
>> the files can be copied over with any file management tool.  Loopback
>> mounting the images means you still use the space for the iso files, but
>> saves about $4 of disk space by not copying the rpms.
>>  	If that's important to you, yam does allow loopback mounts of iso
>> images.  yum-pull is able to use loopback mounted files, it just doesn't
>> do the mounting and symlinks.
>
> I'd need 4 or 5 of these at any one time to cover
> different distributions and versions I might have at a
> location.  The disk space is irrelevant compared to the
> time setting it up. Can't the whole mess be automated?

 	Gladly!
 	Download the hot-off-the-presses 
http://www.stearns.org/yum-pull/linkiso .  Give it an ISO image and a 
directory on the command line and it will link all non-src rpms in that 
iso image to the directory.  In the common case where there are multiple 
iso images for a distribution, just run linkiso once for each iso file.

>>> This doesn't work for repositories that use the mirrorlist option. Yum
>>> picks something different from the list every time, cluttering the
>>> cache and defeating its purpose.
>>
>>  	Good point; I hadn't thought of that.  You'd have to put in a
>> restricted list of mirrors to have this help at all, and cut down to 1
>> mirror to get full use of the cache.
>
> Again, can it do the right thing automatically?  It seems odd
> that the repository setup goes out of its way to defeat
> normal caching.

 	You make it sound intentional.  It's not - yum's just trying to 
access multiple servers in case one or more are unavailable.
 	To have it work well with caching, drop down to a single server 
and edit yum.conf on each client to use that server.
 	Cheers,
 	- Bill

---------------------------------------------------------------------------
         "Suppose for a moment that the automobile industry had developed
at the same rate as computers and over the same period: how much
cheaper and more efficient would the current models be?  If you have not
already heard the analogy, the answer is shattering.  Today you would be
able to buy a Rolls-Royce for $2.75, it would do three million miles to
the gallon, and it would deliver enough power to drive the Queen
Elizabeth II.  And if you were interested in miniaturization, you could
place half a dozen of them on a pinhead."
         -- Christopher Evans
--------------------------------------------------------------------------
William Stearns ([email protected]).  Mason, Buildkernel, freedups, p0f,
rsync-backup, ssh-keyinstall, dns-check, more at:   http://www.stearns.org
--------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.