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


[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core) 


[root@localhost ~]# yum install bind
Wait for the process at pid 5016 to terminate.

“It will never end …”

[root@localhost ~]# ps|grep "5016"
   5016 pts/0    00:00:04 yum

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

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

“If you don’t die …”

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



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