How to use oracle public yum server

Red hat Customer portal


  • Red Hat Enterprise Linux (RHEL) 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5


  • How do I use yum to download a package without installing it?


There are two ways to download a package without installing it.

One is using the "download only" plugin for yum, the other is using the "yumdownloader" utility.

Download only plugin for yum

  1. Install the package including "download only" plugin:

  2. Run command with "--downloadonly" option as follows:

  3. Confirm the RPM files are available in the specified download directory.


  • Before using the plugin, check /etc/yum/pluginconf.d/downloadonly.conf to confirm that this plugin is "enabled = 1"
  • This is applicable for "yum install / yum update" and not for "yum groupinstall". Use "yum groupinfo" to identify packages within a specific group.
  • If only the package name is specified, the latest available package is downloaded (such as sshd). Otherwise, you can specify the full package name and version (such as httpd-2.2.3-22.el5).
  • If you do not use the --downloaddir option, files are saved by default in / var / cache / yum / in rhel- {arch} -channel / packages
  • If desired, you can download multiple packages on the same command.
  • You still need to re-download the repodata if the repodata expires before you re-use the cache. By default it takes two hours to expire.


If downloading an installed package, "yumdownloader" is useful.

  1. Install the yum-utils package:

  2. Run the command followed by the desired package:


  • The package is saved in the current working directly by default; use the --destdir option to specify an alternate location.
  • Be sure to add --resolve if you need to download dependencies.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.