I can install packages from Internet using:yum install packagexThis will download all the dependent packages and install them in order. For some of our customers who do not have Internet access, we want to do this by giving them a tarball of a repository creating just these packages. Is it possible to do something like:yum install packagex  --createRepo /tmp/foowhere all the packages are put in /tmp/foo in a repo format which I can tar and then can be used by yum to install packages offline?
Creating a local yum repository without rpms
yum