How to use the yum command to clear the cache list under centos

王林
Release: 2020-03-30 15:15:56
Original
6487 people have browsed it

How to use the yum command to clear the cache list under centos

Yum method to clear the cache list:

1. Clear the software packages in the cache directory. Clear the cache under (/var/cache/yum)

yum clean packages 
Copy after login

2. Clear the headers in the cache directory

yum clean headers
Copy after login

(Recommended tutorial: centos tutorial)

3. Clear the old headers in the cache directory

yum clean oldheaders
Copy after login

4. Clear the software packages and old headers in the cache directory

yum clean all (= yum clean packages; yum clean oldheaders)
Copy after login

In addition: If you encounter the problem that /var/run/yum.pid has been locked when running yum, the PID is xxxx Another program is running problem solved.

Solution:

rm -f /var/run/yum.pid
Copy after login

It can be used by running yum again after deleting the file.

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to use the yum command to clear the cache list under centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!