[Yum] Using yum to just download a set of RPM's

Terry Barnaby terry at beam.ltd.uk
Fri Aug 6 16:05:25 UTC 2004


Hi,

Is it possible to use yum to download a set of RPM's into a directory as
a normal user ?

I have tried creating a yum.conf file as follows:

##########
[main]
cachedir=/dist/fedora_2/t
#cachedir=/var/cache/yum
debuglevel=10
logfile=/dist/fedora_2/t/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20

[updates-released]
name=Local: Fedora Core $releasever - $basearch - Released Updates
baseurl=file:///dist/fedora_2/updates/i386
###########

I have tried running this using the command:

yum -c yum.conf --download-only update

I get the error:
Gathering header information file(s) from server(s)
Server: Local: Fedora Core 2 - i386 - Released Updates
CacheDir: /dist/fedora_2/t/updates-released
Error - /dist/fedora_2/t/updates-released/header.info cannot be found
Please ask your sysadmin to update the headers on this system.

If I create the directory/file: /dist/fedora_2/t/updates-released/header.info
I get the error:

Gathering header information file(s) from server(s)
Server: Local: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Cannot download file:///dist/fedora_2/updates/i386/headers/kernel-smp-0-2.6.7-1.494.2.2.i586.hdr in 
caching only mode or when running as non-root user.
Deleting entry from Available packages
Cannot download file:///dist/fedora_2/updates/i386/headers/kernel-0-2.6.7-1.494.2.2.i586.hdr in 
caching only mode or when running as non-root user.
Deleting entry from Available packages
Cannot download file:///dist/fedora_2/updates/i386/headers/kernel-doc-0-2.6.7-1.494.2.2.noarch.hdr 
in caching only mode or when running as non-root user.
Deleting entry from Available packages
You need to be root to perform these commands

So is it possible to download RPM's using yum as a normal user ?

Cheers

Terry
-- 
Dr Terry Barnaby                     BEAM Ltd
Phone: +44 1454 324512               Northavon Business Center, Dean Rd
Fax:   +44 1454 313172               Yate, Bristol, BS37 5NH, UK
Email: terry at beam.ltd.uk             Web: www.beam.ltd.uk
BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software
                       "Tandems are twice the fun !"



More information about the Yum mailing list