glibc-kernheaders-2.4-9.1.100.EL.i386.rpm
glibc-headers-2.3.4-2.39.i386.rpm
glibc-devel-2.3.4-2.39.i386.rpm
compat-gcc-32-3.2.3-47.3.i386.rpm
compat-libstdc++-33-3.2.3-47.3.i386.rpm
compat-gcc-32-c++-3.2.3-47.3.i386.rpm
cpp-3.4.6-9.i386.rpm
gcc-3.4.6-9.i386.rpm
libstdc++-devel-3.4.6-9.i386.rpm
gcc-c++-3.4.6-9.i386.rpm
libf2c-3.4.6-9.i386.rpm
gcc-g77-3.4.6-9.i386.rpm
libgnat-3.4.6-9.i386.rpm
gcc-gnat-3.4.6-9.i386.rpm
zlib-devel-1.2.1.2-1.2.i386.rpm
atk-1.8.0-2.i386.rpm
libart_lgpl-2.3.16-3.i386.rpm
pango-1.6.0-9.i386.rpm
gtk2-2.4.13-22.i386.rpm
libgcj-3.4.6-9.i386.rpm
libgcj-devel-3.4.6-9.i386.rpm
gcc-java-3.4.6-9.i386.rpm
libobjc-3.4.6-9.i386.rpm
gcc-objc-3.4.6-9.i386.rpm
libgcc-3.4.6-9.i386.rpm
我自己用的是CentOS 4.6的DVD光盘,直接编写一个简单的脚本,让它自动按照顺序执行安装这些软件包,省了不少力气!
#!/bin/bash
rpm -ivh /media/cdrom/CentOS/RPMS/glibc-kernheaders-2.4-9.1.100.EL.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/glibc-headers-2.3.4-2.39.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/glibc-devel-2.3.4-2.39.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/compat-gcc-32-3.2.3-47.3.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/compat-libstdc++-33-3.2.3-47.3.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/compat-gcc-32-c++-3.2.3-47.3.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/cpp-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/gcc-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/libstdc++-devel-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/gcc-c++-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/libf2c-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/gcc-g77-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/libgnat-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/gcc-gnat-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/zlib-devel-1.2.1.2-1.2.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/atk-1.8.0-2.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/libart_lgpl-2.3.16-3.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/pango-1.6.0-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/gtk2-2.4.13-22.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/libgcj-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/libgcj-devel-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/gcc-java-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/libobjc-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/gcc-objc-3.4.6-9.i386.rpm
rpm -ivh /media/cdrom/CentOS/RPMS/libgcc-3.4.6-9.i386.rpm
将以上内容保存为脚本文件,然后添加执行权限后执行即可!
注:/media/cdrom 为光驱挂载的文件目录!
说明:虚拟机开启挂载cdrom为4.6的安装ISO就行。