利用yum 批量安装rpm包
【早期文章,迁移过来】
1.挂进系统光盘
2.mount 光盘到文件系统,如
#mount /dev/hdc /mnt/hgfs
3.修改yum配置文件:
/etc/yum.repos.d/rhel-debuginfo.repo
内容如下:
[server1]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/hgfs/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
4.安装
yum install binutils compat-libstdc++ elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel openmotif openmotif-devel libXp libXp-devel
5.完成