离线安装openssl-devel顺序

前段时间,由于项目需要,安装keepalived,需要安装依赖包openssl-devel,可是无奈服务器不允许使用网络,无法使用yum安装,所以研究了下如何离线安装,进入了很多坑,所以记录分享下

声明:此文仅为其中一种方法,不要自己将思维局限于这一种方式

前提:基于redhat 6.5或者CentOS 6.5
软件包(由yum缓存中提取的):
http://pan.baidu.com/s/1dDHIEGD

rpm -e --nodeps keyutils-libs-1.4-4.el6.x86_64
rpm -ivh keyutils-libs-1.4-5.el6.x86_64.rpm
rpm -ivh keyutils-libs-devel-1.4-5.el6.x86_64.rpm 
rpm -ivh libsepol-devel-2.0.41-4.el6.x86_64.rpm 
rpm -e --nodeps libselinux-2.0.94-5.3.el6_4.1.x86_64         删除以后就再也装不上了。。。。,恢复,取消此操作,继续测试

rpm -e --nodeps libselinux-utils-2.0.94-5.3.el6_4.1.x86_64
rpm -Uvh libselinux-2.0.94-5.8.el6.x86_64.rpm   安装成功,由此绕过之前5步出错的bug,
rpm -ivh libselinux-devel-2.0.94-5.8.el6.x86_64.rpm
rpm -e --nodeps krb5-libs-1.10.3-10.el6_4.6.x86_64
rpm -ivh krb5-libs-1.10.3-42.el6.x86_64.rpm
rpm -e --nodeps libcom_err-1.41.12-18.el6.x86_64
rpm -ivh libcom_err-1.41.12-22.el6.x86_64.rpm 
rpm -ivh libcom_err-devel-1.41.12-22.el6.x86_64.rpm
rpm -ivh krb5-devel-1.10.3-42.el6.x86_64.rpm
rpm -ivh zlib-devel-1.2.3-29.el6.x86_64.rpm 
rpm -e --nodeps openssl-1.0.1e-15.el6.x86_64
rpm -ivh openssl-1.0.1e-42.el6.x86_64.rpm 
rpm -ivh openssl-devel-1.0.1e-42.el6.x86_64.rpm

OK,安装成功,借鉴以下文章,但是以下文章并不全能用,因为版本差异太大
参考借鉴文章: http://kusix.iteye.com/blog/1226892

OK,去编译keepalived成功了

你可能感兴趣的:(离线安装openssl-devel顺序)