How to do yum update in Linux?         

Use yum to install the scheduled task function. The result is prompted:

Copy the code

The code is as follows:

# yum -y install vixie-cron

Loaded plugins: fastestmirror, refresh-pa

  
Grep yum

root 6744 0.0 0.0 103260 900 pts/1 S+ 14:59 0:00 grep yum

root 25960 0.0 0.0 0 0 ? Z Sep19 0:01 [yumBackend.py]< Br>

Unfortunately, kill can't handle it, what should I do?

You can force the yum process to be turned off:

#rm -f /var/run/yum.pid

Then you can use yum. If you can't, you can restart yum

/sbin/service yum-updatesd restart

Here are some other users' supplements:

Add one,

Sometimes, in Linux yum update will prompt:

Another app is currently holding the yum lock solution

The solution is to kill the yum process in the cache and restart yum.

Clear the process in the cache:

rm -f /var/run/yum.pid

Restart yum (my system is fedora)

systemctl status yum-updatesd.service

Centos users use:

/sbin/service yum-updatesd restart

Supplement 2,

on CentOS Yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool* error:

1) What happened? According to the prompt, it is the system process There is already an update running. View in the process: ps -ef

Copyright © Windows knowledge All Rights Reserved