Download rpm using yum

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.

  1. $ sudo yum install yum-utils 

Download an RPM package:

  1. $ 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.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326863589&siteId=291194637