You need to install plugin called yum-downloadonly. This plugin adds a --downloadonly flag to yum so that yum will only download the packages and not install/update them. Following options supported by this plugin:
[a] --downloadonly : don't update, just download a rpm file
[b] --downloaddir=/path/to/dir : specifies an alternate directory to store packages such as /tmp
How do I install yum-downloadonly plugin?
Type the following command to install plugin, enter:# yum install yum-downloadonly
After this plugin is installed on yum, you can use the following command to download any rpm package and store it to downloaddir location.
Download RPM Packages
yum reinstall libXtst --downloadonly --downloaddir=/tmp
No comments:
Post a Comment