so I've googled, but my google-fu juice must be low. I know I can list all available packages by using
yum list available
10/20/2010 8:52:26 PM
I don't think so, but I don't understand why you would want to do this
10/20/2010 8:57:09 PM
*shrug* for the heck of it.
10/20/2010 8:57:44 PM
Not entirely sure, but I think you might could do something with xargs and the contents of yum list's output.
10/20/2010 11:12:21 PM
yum install * doesn't work?
10/21/2010 7:42:00 AM
This works on fedora.yum install `yum list available | cut -f1 -d. -s | perl -e 'while (<> { chomp; print; print " " ; }; exit;'`Those are backticks before yum list and after exit;'` to make bash execute the piped statements and dump the output to yum install.If you're going to do this then I would strongly recommend you backup any files beforehand as I can guarantee that you will run into configuration issues if everything installs correctly.[Edited on October 21, 2010 at 8:06 AM. Reason : .]
10/21/2010 8:01:28 AM
nice post user=720
10/21/2010 9:32:48 AM
[root@toolbox2 ~]# lsanaconda-ks.cfg install.log install.log.syslog[root@toolbox2 ~]# yum install *Excluding Packages in global exclude listFinishedSetting up Install ProcessNo package anaconda-ks.cfg available.No package install.log available.No package install.log.syslog available.Nothing to do[root@toolbox2 ~]#
yum install `yum list available | cut -f1 -d. -s | perl -e 'while (<> { chomp; print; print " " ; }; exit;'`
10/21/2010 9:46:00 AM
In my previous post the smiley face should be a right parenthesis ) to close the while loop conditional.yum install * doesn't work but yum install "*" should. Need to quote the asterisk to prevent bash from auto expanding.
10/21/2010 7:11:48 PM