redhat5.5 如何yum本地包
来源:互联网 发布:广州尔玛网络 编辑:程序博客网 时间:2024/05/17 23:36
装oracle时,老是要先装一些包,在装的时候会出现包依赖的关系,如何解决依赖包关系,用本地yum
1、挂载本地光盘
mkdir /media/cdrom
[root@asmtest cdrom]# mount /dev/cdrom /media/cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
2、修改cat /etc/yum.repos.d/rhel-debuginfo.repo(修改之前先备份一下)
cp rhel-debuginfo.repo rhel-debuginfo.repo.bak
[root@asmtest ~]# cat /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-debuginfo-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
修改红色字体部分(修改为刚mount的目录下)
baseurl=file:///media/cdrom/Server
enabled=1
3、执行以下命令
执行yum clean all
[root@asmtest Server]# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
执行 yum list ,看到如下界面就成功了
[root@asmtest Server]# yum list
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
rhel-debuginfo | 1.3 kB 00:00
rhel-debuginfo/primary | 868 kB 00:00
rhel-debuginfo: [#################### ] 791/3116
最后安装你想要的lib,如果有依赖包,会自动安装依赖包
yum -y install unixODBC-devel-2.2.11-7.1.i386.rpm
- redhat5.5 如何yum本地包
- redhat5.5 建立本地的yum来源
- redhat5配置本地yum
- redhat5设置本地yum源
- redhat5.4/5设置本地光盘为yum源安装
- RedHat5.5更换yum源
- rhel5.5镜像制作本地yum源(redhat5.5)
- 【redhat5.5】局域网搭建yum样板服务器
- redhat5.5 配置CentOs yum源
- redhat5安装yum源
- redhat5配置yum源
- redhat5安装yum
- 如何创建yum本地源?
- 如何制作yum本地源
- redhat5.5利用 centos的yum 更新软件
- RedHat5.5 x86_i386 yum下令利用 centOS5源更新
- 如何用yum安装本地rpm包
- yum安装(卸载)本地rpm包
- 游标
- 简单的介绍自己,认识下CSDN的牛辦
- 基于Predictive Parsing的ABNF语法分析器(十四)——RFC2234文法解析实战
- WPF(2)----背景图片设置
- android录音功能的实现
- redhat5.5 如何yum本地包
- js学习累积
- <<C语言深度剖析>>学习笔记之五:指针与数组
- 免插件打造wordpress投稿页面
- UIApplication sharedApplication详细解释-IOS
- jquery基础总结
- JAVA移位运算符
- MySQL数据库my.cnf配置文件注释详解
- oracle建主键