yum仓库的搭建
来源:互联网 发布:mac ctrl c 编辑:程序博客网 时间:2024/05/16 14:04
在Linux下,很多时候我们会通过外部挂载DVD光盘,当需要安装需要的软件包时,直接通过yum命令进行安装,而在这之前,我们必须架设yum 仓库,接下来我将详细叙说。
1.将DVD光盘挂载到/media/cdrom中;命令:mount /dev/cdrom /media/
2.修改配置文件;(在修改之前建议先备份)
备份配置文件:
cp /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/rhel-debuginfo.repo.bak
编辑配置文件:
vi /etc/yum.repos.d/rhel-debuginfo.repo
编辑内容:
[rhel-debuginfol]
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
[Cluster]
name=Red Hat Enterprise Linux $releasever - $basearch -Cluster
baseurl=file:///media/Cluster
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=Red Hat Enterprise Linux $releasever - $basearch -ClusterStorage
baseurl=file:///media/ClusterStorage
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Server]
name=Red Hat Enterprise Linux $releasever - $basearch -Server
baseurl=file:///media/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=Red Hat Enterprise Linux $releasever - $basearch -VT
baseurl=file:///media/VT
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
3. yum clean all
4. yum install samba 测试!!!成功!
- yum仓库的搭建
- yum仓库的搭建
- centos7 yum仓库的搭建
- yum第三方软件仓库的搭建
- 基于Nginx本地Yum仓库的搭建
- 搭建本地yum仓库
- 搭建本地yum仓库
- 本地yum仓库搭建
- 搭建yum仓库
- 搭建yum私有仓库
- YUM仓库搭建纯文本
- yum仓库搭建与管理
- 第三方yum仓库搭建
- CentOS 7下 YUM 本地仓库的搭建
- 在Centos7上搭建局域网的yum源仓库
- YUM仓库的配置
- 第三天(2) yum仓库搭建
- 如何手工搭建本地Yum仓库
- GAE报错
- ruby编码说明
- Linux环境变量的设置和查看
- 星型模型与雪花模型
- JavaScript_Location对象
- yum仓库的搭建
- 饮水健康需求催生净水器市场巨大前景
- macos 系统如何使用svn
- Oracle 之connect by
- POJ 2456 Aggressive cows
- Open vSwitch使用笔记
- 《大话数据结构》笔记之 第六章 树
- 黑马程序员---java动态代理
- 指数型母函数