Wait for the process to finish. And kill the process because it remains.

less than 1 minute read


When I did yum install, the process remained, so I just solved it


[[email protected] ~]# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core) 


[[email protected] ~]# yum install bind
Wait for the process at pid 5016 to terminate.

“It will never end …”

[[email protected] ~]# ps|grep "5016"
   5016 pts/0    00:00:04 yum

“I’m not going. Will you kill me?”

[[email protected] ~]# kill 5016
[[email protected] ~]# echo $?
[[email protected] ~]# ps|grep "5016"
   5016 pts/0    00:00:04 yum

“If you don’t die …”

[[email protected] ~]# kill -s 9 5016
[1]+Forced termination yum install bind
[[email protected] ~]# ps|grep "5016"



The return of kill was 0, but it was alive for some reason, so it was killed.