Fedora Linux Support Community & Resources Center
  #1  
Old 31st May 2010, 01:02 PM
tedi Offline
Registered User
 
Join Date: Sep 2008
Posts: 4
linuxfedorafirefox
yum groupinstall optional packages

hi,

i want to install "Graphics" group packages. so i run this:

Code:
yum groupinstall "Graphics"
but it wont install the optional packages. I've been googling around to find the ways but unfortunately i don't find it. is there any command to install all the optional packages all at once without doing it one by one?
Reply With Quote
  #2  
Old 31st May 2010, 02:20 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
linuxfedorafirefox
Re: yum groupinstall optional packages

Hello tedi,

I don't know a command to do that either. Sorry. But here is a way that I have done it that's at least better than one-at-a-time (in case a better idea never comes). Get a list of them with yum groupinfo Graphics. That takes about a minute. Then copy the list of optional packages from the terminal to a text editor. Manually adjust the spacing and remove newlines until you have a long string of package names resembling a paragraph. That takes about a minute. Then add yum install at the front of it and paste it back into the terminal.
Reply With Quote
  #3  
Old 31st May 2010, 05:34 PM
tedi Offline
Registered User
 
Join Date: Sep 2008
Posts: 4
linuxfedorafirefox
Re: yum groupinstall optional packages

great idea! its like this rite?:

Code:
yum install ImageMagick Panini agave argyllcms
although it is quite a job to do it, but this is better than installing one by one.
Reply With Quote
  #4  
Old 31st May 2010, 05:41 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
linuxfedorafirefox
Re: yum groupinstall optional packages

That's right. Or, exactly like this...
Code:
yum install ImageMagick Panini agave argyllcms asciio asymptote blender cbrpager cinepaint comix dcraw digikam f-spot fyre gcolor2 geeqie gifsicle gifview gipfel gnome-scan gpp gqview graphviz gutenprint-plugin gv hugin inkscape ipe k3d kdegraphics kipi-plugins koffice-krita kphotoalbum makehuman mirage netpbm-progs nip2 optipng pstoedit pydot qiv rawstudio renrot sane-frontends showimg tachyon tuxpaint tzclock ufraw uniconvertor viewnior wings xfig xpaint xsane
It's not elegant, but it wasn't so much work either. I did that by hand, but I have a little script that I use to convert a list to a paragraph for this purpose. It saves a minute, but I only do things like this about once every six months.
Reply With Quote
  #5  
Old 31st May 2010, 09:17 PM
tedi Offline
Registered User
 
Join Date: Sep 2008
Posts: 4
linuxfedorafirefox
Re: yum groupinstall optional packages

a script hmm... can you share your script with us?
Reply With Quote
  #6  
Old 31st May 2010, 09:41 PM
RahulSundaram Offline
Registered User
 
Join Date: May 2005
Posts: 3,549
linuxsafari
Re: yum groupinstall optional packages

Hi,

You can set group_package_types to optional in /etc/yum.conf. Refer to man yum.conf for details.
__________________
Rahul
http://fedoraproject.org/wiki/RahulSundaram
Reply With Quote
  #7  
Old 31st May 2010, 11:36 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
linuxfedorafirefox
Re: yum groupinstall optional packages

Thanks. Obviously the definitive answer.
Reply With Quote
  #8  
Old 31st May 2010, 11:52 PM
tedi Offline
Registered User
 
Join Date: Sep 2008
Posts: 4
linuxfedorafirefox
Re: yum groupinstall optional packages

wow! thanks Rahul. by adding:

group_package_types=mandatory,default,optional

under [main] in /etc/yum.conf, all the packages now is included in the installation. this is just awesome.
Reply With Quote
  #9  
Old 12th March 2011, 10:02 AM
Buchmueller Offline
Registered User
 
Join Date: Mar 2011
Posts: 1
linuxfedorafirefox
Re: yum groupinstall optional packages

yum install `repoquery -g -l --grouppkgs=all 'graphics' `
Reply With Quote
  #10  
Old 18th July 2012, 08:57 PM
benson Offline
Registered User
 
Join Date: Jul 2012
Location: USA
Posts: 1
linuxfirefox
Re: yum groupinstall optional packages

yum --setopt=group_package_types=optional groupinstall "Your Package Group"
Reply With Quote
Reply

Tags
groupinstall, optional, packages, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome optional packages 1jackjack Installation and Live Media 5 3rd July 2007 09:20 AM
How to install NEW/OPTIONAL Software Packages from FC5 Installation CDs? src2206 Using Fedora 4 31st August 2006 05:42 PM
Help w/Yum: avoiding optional packages LouArnold Installation and Live Media 3 21st July 2006 12:58 AM
How to include optional packages with the "yum groupinstall" command? Terence Using Fedora 4 26th December 2005 10:07 PM
Yum groupinstall - what about the optional packages ThijsH Using Fedora 2 1st July 2005 02:59 PM


Current GMT-time: 02:45 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat