config yum source for linux

yhj20041128001發表於2014-12-04
[root@ocm01 u01]# mount -o loop Enterprise-R5-U2-Server-i386-dvd.iso /media/
[root@ocm01 u01]# cd /media/
[root@ocm01 media]# cd /etc/yum.repos.d/
[root@ocm01 yum.repos.d]# ls


[root@ocm01 yum.repos.d]# touch  yum.repo
[root@ocm01 yum.repos.d]# vi yum.repo


[Server]
baseurl=file:///media/Server
gpgcheck=0
enabled=1




command:
yum list


yum install package name






yum install  kernel-headers-2.6.18-194.el5.i386.rpm
yum install  glibc-headers-2.5-49.i386.rpm
yum install  glibc-devel-2.5-49.i386.rpm
yum install  libgomp-4.4.0-6.el5.i386.rpm
yum install  gcc-4.1.2-48.el5.i386.rpm


yum install  libstdc++-devel-4.1.2-48.el5.i386.rpm
yum install  gcc-c++-4.1.2-48.el5.i386.rpm

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23757700/viewspace-1356792/,如需轉載,請註明出處,否則將追究法律責任。

相關文章