linux下安装yum及gcc的详细教程
----孤独小客(http://doc.docsou.com)
1.安装yum
[root@st ~]#wget http://doc.docsou.com/tools/yum_forAS4.tar.gz 下载yum软件
[root@st ~]# tar zxvf yum_forAS4.tar.gz
yum_forAS4/
yum_forAS4/CentOS-Base.repo
yum_forAS4/python-elementtree-1.2.6-7.el4.rf.i386.rpm
yum_forAS4/python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
yum_forAS4/yum-2.4.2-0.4.el4.rf.noarch.rpm
yum_forAS4/sqlite-2.8.16-1.2.el4.rf.i386.rpm
yum_forAS4/python-sqlite-1.0.1-1.2.el4.rf.i386.rpm
[root@st ~]# cd yum_forAS4
[root@st yum_forAS4]# ls
CentOS-Base.repo
python-elementtree-1.2.6-7.el4.rf.i386.rpm
python-sqlite-1.0.1-1.2.el4.rf.i386.rpm
python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
sqlite-2.8.16-1.2.el4.rf.i386.rpm
yum-2.4.2-0.4.el4.rf.noarch.rpm
[root@st yum_forAS4]# rpm -ivh *.rpm
warning: python-elementtree-1.2.6-7.el4.rf.i386.rpm: V3 DSA signature: NOKEY,
key ID 6b8d79e6
Preparing... ########################################### [100%]
1:sqlite ########################################### [ 20%]
2:python-sqlite ########################################### [ 40%]
3:python-urlgrabber ########################################### [ 60%]
4:python-elementtree ########################################### [ 80%]
5:yum ########################################### [100%]
[root@st yum_forAS4]# cp CentOS-Base.repo /etc/yum.repos.d/
执行如下命令导入GPG Key
[root@st yum_forAS4]# rpm --import http://doc.docsou.com/centos/RPM-GPG-KEY-CentOS-4
现在yum就可以使用了。
2.安装gcc
现在开始安装gcc
[root@st yum_forAS4]# yum install gcc
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 158 kB 00:02
update : ################################################## 511/511
Added 511 new packages, deleted 0 old in 4.88 seconds
primary.xml.gz 100% |=========================| 608 kB 00:04
base : ################################################## 1591/1591
Added 1591 new packages, deleted 0 old in 13.19 seconds
primary.xml.gz 100% |=========================| 190 B 00:00
Added 0 new packages, deleted 0 old in 0.01 seconds
primary.xml.gz 100% |=========================| 38 kB 00:01
extras : ################################################## 172/172
Added 172 new packages, deleted 0 old in 1.08 seconds
Parsing package install arguments