1
2
3
|
[root@moban ~]#cd /etc/yum.repos.d/
[root@mobanyum.repos.d]# ls
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo
|
1
2
3
4
|
[root@mobanyum.repos.d]# cp CentOS-Base.repo CentOS-Base.repo.ori #可使用mv
[root@moban yum.repos.d]# ls
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Vault.repo
CentOS-Base.repo.ori CentOS-Media.repo
|
1
2
3
4
5
6
7
8
9
10
11
12
|
[root@mobanyum.repos.d]# wget http:
//mirrors.163.com/.help/CentOS6-Base-163.repo
--
2015
-
05
-
2015
:
14
:
31
-- http:
//mirrors.163.com/.help/CentOS6-Base-163.repo
Resolvingmirrors.
163
.com...
123.58
.
173.186
,
123.58
.
173.185
Connecting tomirrors.
163
.com|
123.58
.
173.186
|:
80
... connected.
HTTP requestsent, awaiting response...
200
OK
Length:
2006
(
2
.0K) [application/octet-stream]
Saving to:aCentOS6-Base-
163
.repoa
100
%[======================================>]
2
,
006
--.-K/s
in
0s
2015
-
05
-
2015
:
14
:
31
(
123
MB/s) - aCentOS6-Base-
163
.repoa saved[
2006
/
2006
]
[root@mobanyum.repos.d]# ls
CentOS6-Base-
163
.repo CentOS-Base.repo.ori CentOS-Media.repo
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Vault.repo
|
1
2
|
[root@mobanyum.repos.d]# cp CentOS6-Base-
163
.repo CentOS-Base.repo
cp: overwrite`CentOS-Base.repo'? y
|
1
2
3
|
[root@mobanyum.repos.d]# yum install tree telnet dos2unix sysstat lrzsz –y
······
Complete!
|
1
|
[root@mobanyum.repos.d]# yum upgrade
|
1
|
[root@mobanyum.repos.d]# yum grouplist
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
[root@mobanyum.repos.d]# yum grouplist
InstalledGroups:
Base
Compatibility libraries
Development tools
······
Dial-up Networking Support
Hardware monitoring utilities
Networking Tools
Performance Tools
AvailableGroups:
Additional Deve
······
|
1
|
[root@mobanyum.repos.d]# yum groupinstall
"Development Tools"
|