{"id":1002,"date":"2009-11-29T17:16:00","date_gmt":"2009-11-29T09:16:00","guid":{"rendered":"\/?p=1002"},"modified":"2009-11-29T17:16:00","modified_gmt":"2009-11-29T17:16:00","slug":"1002","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/linux\/1002.html","title":{"rendered":"CentOS 5.2\u6700\u5c0f\u5316\u5b89\u88c5\u540e\u5e38\u7528\u5de5\u5177\u6dfb\u52a0"},"content":{"rendered":"
\u7b2c\u4e00\u6b21\u5b89\u88c5CentOS 5.2 \uff0c\u4ee5\u6587\u672c\u65b9\u5f0f\u5b89\u88c5\uff0c\u9009\u7684\u6700\u5c0f\u5316\u5b89\u88c5\uff0c\u5373\u4ec0\u4e48\u90fd\u4e0d\u9009\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\u53d1\u73b0\u4e00\u4e9b\u5e38\u7528\u5de5\u5177\u90fd\u6ca1\u6709\u5b89\u88c5\uff0c\u6ca1\u529e\u6cd5\uff0c\u8c01\u53eb\u6211\u4eec\u9009\u62e9\u7684\u6700\u5c0f\u5316\u5b89\u88c5\u5462\uff0c\u73b0\u5728\u4e00\u4e2a\u4e00\u4e2a\u8865\u56de\u6765\u5427\u3002<\/p>\n
\u51c6\u5907\u5de5\u4f5c\uff1a
1.\u5148\u628aISO\u6216\u5149\u76d8\u6302\u8f7d\u5230\u7cfb\u7edf\u4e0a
\uff1ccoolcode>
mkdir \/mnt\/cdrom
mount \/dev\/cdrom \/mnt\/cdrom<\/p>\n
2.\u5907\u4efdCentOS-Base.repo\u548cCentOS-Media.repo
mv CentOS-Base.repo CentOS-Base.repo.bak
mv CentOS-Media.repo CentOS-Media.repo.bak<\/p>\n
3.\u6dfb\u52a0yum\u6e90
vi dvdiso.repo #\u6700\u5c0f\u5316\u5b89\u88c5\u8fdevim\u4e5f\u6ca1\u7684-_-
[DVDISO]
name=DVD ISO
baseurl=file:\/\/\/mnt\/cdrom\/
enabled=1
gpgcheck=0<\/p>\n
\u4fdd\u5b58\u540e\u8fd0\u884c
yum list<\/p>\n