yum downloading its indexes all the time is a major PITA

Reindl Harald h.reindl at thelounge.net
Thu May 31 23:34:17 UTC 2012


Am 01.06.2012 01:13, schrieb Fernando Cassia:
> That sounds like the right way to do things.
> However, I looked at /etc/yum.conf and found nothing that resembles that.
> 
> [main]
> cachedir=/var/cache/yum/$basearch/$releasever
> keepcache=0
> debuglevel=2
> logfile=/var/log/yum.log
> exactarch=1
> obsoletes=1
> gpgcheck=1
> plugins=1
> installonly_limit=3
> exclude=openoffice.org-ure*,libreoffice-ure*

sometimes it is a good idea to read manuals!

"metadata_expire" is your friend and after that "yum clean metadata"
if you want to force the search for updates

http://linux.die.net/man/5/yum.conf

keepcache Either '1' or '0'.
Determines whether or not yum keeps the cache of headers and packages after successful installation.

metadata_expire Time (in seconds) after which the metadata will expire.
So that if the current metadata downloaded is less than this many seconds
old then yum will not update the metadata against the repository.
_________________________________-

[root at srv-rhsoft:~]$ cat /etc/yum.repos.d/fedora.repo
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
exclude=*.i686,dbmail*


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120601/b22ddfe2/attachment-0001.sig>


More information about the users mailing list