Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Yum Update Interupted

Status
Not open for further replies.

ThePathfinder

Technical User
Feb 4, 2008
3
I am running CEntOS 4.4 (installed from the single server CD). I was performing a Yum update and after downloading about 209 packages the actual update process started which consisted of around 400 updates. About 20 or so updates in, my little one pressed the power button on the server and it proceeded to shutdown. How do I recover from this?
 
If I'm not mistaken, the 400 updates actually includes installation & clean up together. The downloaded updates are still in your cache folder (/var/cache/yum). Just run your update again, yum should pickup from where it left off. If yum fails, do the update manually. Go to the cache folder, /var/cache/yum/updates/packages (might have updated in other folders) and run rpm -Uvh *.rpm. Clean up yum with yum clean all when you have finished the manual update.

--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
zeland, I think the question was how do they recover from their kid doing such a thing. The answer is, it's going to take time but take solace in the Good Book. I'd like to share two verses, "Spare the rod and spoil the child" and "Beat them, they shall not die". I myself would suggest a thump on the noggin but these days kids lawyer up so young that... Wait. Where am I? What forum is this? Never mind.

 
LOL! I've wondered the same thing these past few years myself and I don't think Linux servers will help me in any way or form. I don't ever recall any incident of mischief that I was spared the cane. A good whipping was always just an arm's length away if my father even thought that I was out of line. My mother thinks otherwise and nags me to no end when I give my 2 children an occasional smack.

--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
OK, zeland, I did what you said. The yum update would not resume. I found the folder that you were talking about (/var/cache/yum/updates/packages). By the way it is /update/ not /updates/ in CEntOS. I ran rpm -Uvh *.rpm. This is the output that I got:

[root@server2 packages]# rpm -Uvh *.rpm
error: Failed dependencies:
initscripts >= 7.93.26.EL-1 is needed by httpd-2.0.52-38.ent.centos4.2.i386
Suggested resolutions:
/home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/initscripts-7.93.31.EL-2.centos4.i386.rpm
 
(Should have put this on last post) The last line of text looks like I am being directed to a website to get the .rpm that it is asking for. If so, how do I download the .rpm file to my server and where does it need to be so that it will be seen during the update process?
 
I just had a thought. Is there any chance that since yum got cut off in its prime that the pid file was left behind? You can check to see if there is a file called /var/run/yum.pid. If there is and yum is not running, then delete it. There is a small chance that yum is actually running. When it's checking for dependencies or preparing that many updates, it can sit for an hour just thinking. Another thing you might be able to do is if the files are still in the updates directory, you could go to that directory and type "yum localupdate *.rpm". This will prevent it from downloading all those files again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top