Friday 23 December 2011

Storing all the RPM packages installing via yum installer

Storing all the RPM packages installing via yum installer

For storing all the RPM packages installing via yum installer, add this following line to your /etc/yum.conf file.

keepcache=1


For Example:


$ more /etc/yum.conf
[main]
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
color=never
keepcache=1

Then all rpm packages installed via yum are stored in /var/cache/yum/*/packages.

you can change the cache directory by specifying
cachedir=<mydir> in yum.conf.

For Example:

$ more /etc/yum.conf
[main]
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
color=never
keepcache=1
cachedir=/home/user/Downloads

No comments:

Post a Comment