Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I am running a virtualized CentOS 6.3 on a Windows 7 computer. The computer (4 GB RAM) is connected to a corporate network.

When I run yum update, it shows some progress, then eventually the VM (2 GB RAM) freezes, this has happened nearly 5 times now.

I've also tried updating using the graphic package manager, same thing happens, any ideas why this is happening?

share|improve this question
    
Have you tried yum clean all first? –  nojak Aug 24 '12 at 2:15

1 Answer 1

The yum installer allocates memory and mirror plugins create threads. I managed to update a VPS(128k) running Centos 6.0 to 6.6 as follows:

  • edit /etc/yum/pluginconf.d/fastestmirror.conf and set maxthreads to 1
  • stop as many processes as possible. For example: service stop httpd
  • remove any unwanted packages. For example: yum remove man-pages
  • Run the following script/commands:

    #!/bin/bash
    date
    yum clean all
    echo "Starting Update........."
    for package in `yum -q check-update | awk '{print $1}'`
    do
        echo "*** Updating $package"
        yum -y update $package
    done
    yum clean all
    yum -y update
    date
    
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.