Sometime we need to have a copy of the rpm package. There are many ways to acquire the packages such as
wget or directly from repository url from browser. But if you don’t know the url or too lazy to find out, you can use
yumdownloader command and it will do the rest for you.
yum-utils to obtain
1 yum install yum-utils
Then we can download the rpm package with command
1 yumdownloader httpd
And there you go, now you can do whatever you want with it.