Another app is currently holding the yum lockとは

yumコマンドを実行すると下記のようなメッセージがでることがある。

Another app is currently holding the yum lock; waiting for it to exit...

ほかのアプリケーションがyumを実行していて、ロック状態になってるよ。ロックが解除されるまで待ちます。
という意味で、
yum-updatesdがサーバ起動時に実行されるからです。

待っていてもしばらくは動かないので、yumのタスクを停止させます。

# ps aux | grep yum

yum-updatesdに該当するタスクを停止させます。

# kill PID

実行例

[root@localhost ~]# ps aux | grep yum
root      2515  0.0  4.0  26540 10260 ?        SN   12:24   0:00 /usr/bin/python -tt /usr/sbin/yum-updatesd
root      2742  5.8  0.0      0     0 ?        ZN   12:32   0:07 [yum-updatesd-he] <defunct>
root      2873  0.0  0.2   4976   764 pts/1    R+   12:35   0:00 grep yum

この /usr/sbin/yum-updatesd のPIDをkillします。

[root@localhost ~]# kill 2515

[yum-updatesd-he] <defunct> のプロセスは /usr/sbin/yum-updatesd を停止させると一緒にとまります。

さらにyum-updatesdが勝手に起動しないようにするには次のコマンドを実行して、OS起動時の実行をOFFにします。

chkconfig --level 2345 yum-updatesd off

関連記事

スポンサーリンク

Composerをインストールする方法と使い方

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る