The first thing I noticed after installing Fedora 14 was that there are updates available for my packages. And not a few, more than 400 updates! Sizing about 500mb! Now, I use a lame internet plan of 256kbps. Updating all the packages in one go will make me keep this system on for about 5 hours. Thats not possible for me. So I needed a way to update few packages everytime and keep doing that whenever I find time.Now I can open the update manager, untick about 350 package the first time to update first 50 package and go on like that.. Sounds ridiculous, right? So ticking-unticking aint an option, lets look for something new. Terminal is always there, lets use it. I thought of using conditions with the yum command. Like defining a number, so that first that number of packages will be updated. But that'd most probably require me to write a complicated shell script which I'm not intending to do right now. Next option, lets try to find if any condition can be applied to packages' name and update only the matching ones. This idea seem to have an easy way to deploy. I found that you can use wildcard (*) to the yum update command. Now that's cool! it lets me to select packages based on a portion of their name. Like, if I want to update only the packages that start with a, all I need to do is use this command -
# yum update a*
Or if I want to update all the packages that has the phrase py in them, I'd use the command -
# yum update *py*
I can also define more than one condition with a space as delimiter, like -
# yum update 'a*' '*bas*'
That's it! I got my way to update few packages at a time. :D
Note: Before using Yum, install the yum plugin yum-fastestmirror. Saves time finding the the mirrors that'll transfer data faster. :)

Bibhas Debnath

iambibhas bibhasdn


Published

blog comments powered by Disqus