[CentOS] yum install hangs

Mon Jul 6 22:39:19 UTC 2009
Niki Kovacs <contact at kikinovak.net>

Carlos Santana a écrit :
> Thanks Niki.
> 
> More specifically it hangs after:
> Downloading Packages:
> Running rpm_check_debug
> Running Transaction Test
> 
> If I did yum clean all while app. is running then I get following message:
> [root at localhost ~]# yum clean all
> Existing lock /var/run/yum.pid: another copy is running as pid 17097.

In that case, I bet this is your yum-updatesd daemon interfering. Try this:

# service yum-updatesd stop

And then:

# chkconfig yum-updatesd off

Basically, you can't have two instances of Yum running at the same time. 
Up to CentOS 5.2, yum-updatesd defaulted to on, but I understand since 
5.3 it defaults to off.

Cheers,

Niki