Is there a way to enable a repo, and ask it to download a package and all dependencies and save these files to a given directory then some time later execute a command to install those files that were saved. Is that possible? I would like to take a snapshot of something like VLC on dag and always install those same vlc packages and dependencies that were saved locally. Not go out over the net and install them the next time. I'm not concerned about updates to this package. Jerry
Jerry Geis wrote:> Is there a way to enable a repo, and ask it to download a package and > all dependencies > and save these files to a given directory then some time later execute > a command > to install those files that were saved. > > Is that possible? > > I would like to take a snapshot of something like VLC on dag and > always install those same vlc packages and dependencies > that were saved locally. Not go out over the net and install them the > next time. I'm not concerned about > updates to this package.Hi Jerry, I think that was just discussed the other day on 11-24 as subject yum download. If you follow this thread I think this is what you will be looking for: http://lists.centos.org/pipermail/centos/2008-November/068284.html I hope this helps. Dang finally get to answer someone. Lee Perez
Ralph Angenendt
2008-Nov-27 09:42 UTC
[CentOS] enable repo download and save but no install
Jerry Geis wrote:> Is there a way to enable a repo, and ask it to download a package and > all dependencies and save these files to a given directory then some > time later execute a command to install those files that were saved. > > Is that possible?Yes. "yum deplist vlc" shows you all dependencies. Do some grep/awk magic to write the package names which you find in the "Provider:" lines into a file. echo vlc >> file. Then do a "yum install --downloadonly $(cat file)" Maybe you should clean up the deplist a tad, as it contains packages you probably already have installed (like zlib or glibc).> I'm not concerned about updates to this package.If that vlc ever plays streams from the internet, I would be concerned. Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20081127/39815e99/attachment-0003.sig>