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
This will add two options to yum commnad
1. –download only
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
methode 1 is safer than 2
Happy hacking —!!