按照上图操作挂载光盘镜像在/mnt下,cd /mnt/Server下安装上图标记的三个包:
[root@guojianjunServer]# rpm -ivh vim-common-7.0.109-6.el5.i386.rpm
warning:vim-common-7.0.109-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID37017186
Preparing... ###########################################[100%]
1:vim-common ########################################### [100%]
[root@guojianjunServer]# rpm -ivh vi
vim-X11-7.0.109-6.el5.i386.rpm vim-minimal-7.0.109-6.el5.i386.rpm
vim-common-7.0.109-6.el5.i386.rpm vino-2.13.5-9.el5.i386.rpm
vim-enhanced-7.0.109-6.el5.i386.rpm vixie-cron-4.1-77.el5_4.1.i386.rpm
[root@guojianjunServer]# rpm -ivh vim-minimal-7.0.109-6.el5.i386.rpm
warning:vim-minimal-7.0.109-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID37017186
Preparing... ########################################### [100%]
package vim-minimal-7.0.109-6.el5.i386is already installed
[root@guojianjunServer]# cd
[root@guojianjunServer]# rpm -ivh vim-enhanced-7.0.109-6.el5.i386.rpm
warning:vim-enhanced-7.0.109-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID37017186
Preparing... ########################################### [100%]
1:vim-enhanced ########################################### [100%]
[root@guojianjunServer]# cd
然后就可以用vim编辑器了!