Using Yumdownloader
Another way to download RPM packages is through a special package download tool -- yumdownloader. This tool is a subset of the yum toolkit, which contains a suite of helper tools for yum package management.
- $ sudo yum install yum-utils
Download an RPM package:
- $ sudo yumdownloader <package-name>
The downloaded package will be saved in the current directory. You need to use root privileges because yumdownloader will update the package index file during the download process. Unlike the yum command, any dependencies will not be downloaded.