Tuesday, May 22, 2012

Enable Caching in Yum

It is a good idea to enable caching in Yum as it keeps downloaded packages locally and is useful if you have slow connections. The default behavior is to delete downloaded packages. To enable caching, turn 'keepcache=0' into 'keepcache=1' in /etc/yum/yum.conf as:
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
...
...
So, all the downloaded data will reside in 'cachedir' location.

0 comments:

Post a Comment