User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » yum question Page [1]  
raiden
All American
10504 Posts
user info
edit post

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


What I can find is how to install all available packages. Tried doing a yum install all, but that's no good, neither was a yum install available.

Is there a way to have yum just go ahead and install all available packages? (CentOS 5)

10/20/2010 8:52:26 PM

Ernie
All American
45943 Posts
user info
edit post

I don't think so, but I don't understand why you would want to do this

10/20/2010 8:57:09 PM

raiden
All American
10504 Posts
user info
edit post

*shrug* for the heck of it.

10/20/2010 8:57:44 PM

FenderFreek
All American
2805 Posts
user info
edit post

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

1337 b4k4
All American
10033 Posts
user info
edit post

yum install * doesn't work?

10/21/2010 7:42:00 AM

Calrizzian
Starting Lineup
53 Posts
user info
edit post

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

qntmfred
retired
40594 Posts
user info
edit post

nice post user=720

10/21/2010 9:32:48 AM

raiden
All American
10504 Posts
user info
edit post

Quote :
"yum install * doesn't work?
"


nah, it tries to use filenames in a directory as install names. see this:


[root@toolbox2 ~]# ls
anaconda-ks.cfg install.log install.log.syslog
[root@toolbox2 ~]# yum install *
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package anaconda-ks.cfg available.
No package install.log available.
No package install.log.syslog available.
Nothing to do
[root@toolbox2 ~]#



and this is nice

Quote :
"
yum install `yum list available | cut -f1 -d. -s | perl -e 'while (<> { chomp; print; print " " ; }; exit;'`
"


gg.

10/21/2010 9:46:00 AM

Calrizzian
Starting Lineup
53 Posts
user info
edit post

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

 Message Boards » Tech Talk » yum question Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.