PDA

View Full Version : [SOLVED] downloading packages from groups


PryGuy
14th December 2010, 08:25 AM
Good day everyone!

I'm going to make a Fedora (and later CentOS) server install (not Live) CD and I want to build it from scratch downloading packages I need. Everything's fine with rpm files, according to this article (http://www.cyberciti.biz/faq/yum-downloadonly-plugin/) I can download them either with:
yum reinstall -y --downloadonly --downloaddir=/path/to/repo package
or with:
yumdownloader --resolve --destdir=/path/to/repo package
But I do not know what to do when it comes to groups such as 'base' or 'core'. The only thing I could invent so far is the quick and dirty method:
yum groupinfo base | grep " " | sed -e 's/^[ \t]*//' | tr "\n" " "
Is there a more kosher way for that? Thanks in advance!

leigh123linux
14th December 2010, 08:35 AM
Good day everyone!

I'm going to make a Fedora (and later CentOS) server install (not Live) CD and I want to build it from scratch downloading packages I need. Everything's fine with rpm files, according to this article (http://www.cyberciti.biz/faq/yum-downloadonly-plugin/) I can download them either with:
yum reinstall -y --downloadonly --downloaddir=/path/to/repo packageor with:
yumdownloader --resolve --destdir=/path/to/repo packageBut I do not know what to do when it comes to groups such as 'base' or 'core'. The only thing I could invent so far is the quick and dirty method:
yum groupinfo base | grep " " | sed -e 's/^[ \t]*//' | tr "\n" " "Is there a more kosher way for that? Thanks in advance!


Try

yumdownloader --resolve @base


Here's another example

yumdownloader --resolve @development-tools

PryGuy
14th December 2010, 08:51 AM

So simple! I feel dumb 'cause I used this syntax many times in kickstart before. ;)
You've made my day! Thanks a lot!!!