Yum install failing With Error Another app is currently holding the yum lock; waiting for it to exit

Linux

[[email protected]~]$# yum install gcc

Loaded plugins: amazon-id, rhui-lb, security

Existing lock /var/run/yum.pid: another copy is running as pid 4447.

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

The other application is: yum

Memory : 368 M RSS (933 MB VSZ)

Started: Mon May  8 18:19:54 2017 - 11:45:55 ago

State  : Traced/Stopped, pid: 4447

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

The other application is: yum

Memory : 368 M RSS (933 MB VSZ)

Started: Mon May  8 18:19:54 2017 - 11:45:57 ago

State  : Traced/Stopped, pid: 4447

Solution:

Kill running yum process.

[[email protected]~]# ps aux | grep yum

root 1546 0.0 0.1 103272 832 pts/1 S+ 06:07 0:00 grep yum

root 4447 1.0 62.2 955100 376404 pts/1 T May08 7:32 /usr/bin/python /usr/bin/yum install kmod-oracleasm

[[email protected]~]$# kill -9 4447

[[email protected]~]$]# ps aux | grep yum

root 1557 0.0 0.1 103272 832 pts/1 S+ 06:07 0:00 grep yum

[1]+ Killed yum install kmod-oracleasm