How to Download RPM Package and its dependencies using Yum

Yum is a great tool to install packages in fedora. If we download a package and its dependencies then we can use these downloaded rpms to install in a system which is not connected to internet.

for download packages and its dependencies using yum we need a package called yum-downloadonly

download from here

ftp://fr2.rpmfind.net/linux/fedora/releases/10/Everything/i386/os/Packages/yum-downloadonly-1.1.18-2.fc10.noarch.rpm

and install.

This will add two options to yum commnad

1. –download only

2.–downloaddir=/path/to/dir

usage is

yum install mplayer –downloadonly –downloaddir=/path/to/dir

The path 2

the rpms are stored in the dir /var/yum/cache

go there and simply copy the rpms which are installed

simple way.

methode 1 is safer than 2

Happy hacking —!!

One comment

  1. Interesting and informative post.

    I was looking out for a company that could provide customized and affordable SEO services and with whom I could touchbase on a daily basis. I was very impressed with the professionalism and quick response time of Seo Traffic Spider and hired their full time SEO services. Its interesting that they not only offer a customized optimization plan but also provide a superb discount on their SEO combinations.

    I think this would be a helpful start for anyone looking out for highly professional seo services and who prioritize quick customer response time and chat availability. You can surely get it all here.

Leave a Reply