Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a centos machine in which i already installed openssl-devel

$ yum install openssl-devel 

It downloaded and installed all the dependency packages
Now I need all those rpm packages , Is this possible to download only rpm package when i do this

 $ yum install  openssl-devel -y --downloadonly 
It says 
Package 1:openssl-devel-1.0.1e-4.fc18.x86_64 already installed and latest version

since its already installed

Can any one know how to download those rpm packages on the same systems

share|improve this question

closed as not constructive by Jenny D, mgorven, gWaldo, Sven, Zoredache May 17 '13 at 19:16

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

yumdownloader in yum-utils will download any packages you pass to it, or optionally generate the URLs the packages can be downloaded from.

share|improve this answer
its not resolving dependencies , it just download openssl-devel.x86_64.rpm – abubacker May 17 '13 at 12:46
No, it doesn't resolve dependencies. But how far back would you like the tool to resolve the dependencies? glibc? filesystem? – Ignacio Vazquez-Abrams May 17 '13 at 12:47
my requirement is simple , i need to get the list of rpms , to install it on another machine , which is in offline – abubacker May 17 '13 at 12:50
You say "simple", but it's actually not as simple as you think. There is no tool that will resolve dependencies given just a list of which packages are already installed. – Ignacio Vazquez-Abrams May 17 '13 at 12:52
actually it is simple , yum install openssl-devel -y --downloadonly if i do this command on an another machine , it will resolve all dependencies , but my question is whether its possible to do the same in a machine which we installed that command already – abubacker May 17 '13 at 12:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.