Commit 9c85be7172c7a152b6e84fe9d9bf86a663b14d53

Authored by 徐烜
1 parent 845e3d16

Updates 01_basic/yum.md

Auto commit by GitBook Editor
Showing 1 changed file with 4 additions and 0 deletions
01_basic/yum.md
@@ -34,6 +34,10 @@ wget http://mirrors.163.com/.help/CentOS6-Base-163.repo @@ -34,6 +34,10 @@ wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
34 touch /etc/yum/vars/releasever 34 touch /etc/yum/vars/releasever
35 // 在文件中写入版本号 35 // 在文件中写入版本号
36 echo 6 >> /etc/yum/vars/releasever 36 echo 6 >> /etc/yum/vars/releasever
  37 +// 清理yum
  38 +yum clean all
  39 +// 如果报错,删除subscription-manager
  40 +rpm -e subscription-manager --nodeps
37 ``` 41 ```
38 42
39 43