[root@iZ23jyp275rZ ~]# ls /etc/yum.repos.d/
backup
[root@iZ23jyp275rZ ~]# ls /etc/yum.repos.d/backup/
CentOS-Base.repo epel.repo
[root@iZ23jyp275rZ ~]# yum update
Loaded plugins: security
Setting up Update Process
No Packages marked for Update
[root@iZ23jyp275rZ ~]# yum install httpd
Loaded plugins: security
Setting up Install Process
No package httpd available.
Error: Nothing to do
[root@iZ23jyp275rZ ~]# mv /etc/yum.repos.d/backup/CentOS-Base.repo /etc/yum.repos.d/
[root@iZ23jyp275rZ ~]# yum install httpd
Loaded plugins: security
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:04
extras | 3.4 kB 00:00
extras/primary_db | 37 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 748 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
發(fā)表評(píng)論