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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx             Web: www.beam.ltd.uk
BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software
                       "Tandems are twice the fun !"

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux