虚拟化容器,大数据,DBA,中间件,监控。

rhel6/RHEL7 yum 源配置

29 11月
作者:admin|分类:系统运维
rhel6/RHEL7 yum 源配置

 RHEL6.2配置本地yum源和第三方源

          yum可以自动解决软件包的依赖问题,简化软件安装,但RHEL的yum源是收费的,无法使用,要方便的使用yun,就必须为其添加免费的yum源。免费yum源一般有两种:本地yum源和第三方yum源。下面本文将简明的介绍两种yum源的安装配置过程。
一、RHEL6.2配置本地yum源
       本地yum源是将RHEL6.2安装光盘里的软件包作为本地源,因为安装光盘里的软件包已经十分全面,一般无需额外的软件包即可满足日常需求。相对与网络上的yum源,本地源速度很快,来自官方支持,十分稳定,是很不错的选择。 配置本地yum源步骤如下:
  (1)将rhel6.2安装光盘镜像(名为rhel.iso)拷到硬盘备用,此例位置为/home/lee/documents/Softwares/OsImages/rhel.iso
  (2)创建iso镜像挂载目录#mkdir /localiso
  (3)修改/etc/fstab文件挂载镜像(也可将iso内容拷贝到 /localiso目录下)
           #vi /etc/fstab
           在最后一行加入如下信息:
           /home/lee/documents/Softwares/OsImages/rhel.iso /localisoiso9660,udf loop,ro,auto 0 0
          保存退出
 (4)新建本地yun源的配置文件
          #vi /etc/yum.repos.d/local.repo
          加入以下信息:
          [Local]
          name=Local
          baseurl=file:///localiso
          enable=1
         gpgcheck=0
         保存退出
二、RHEL6.2配置第三方yum源
      第三方yum源一般由开源社区提供, 比较出名的第三方yum源有epel、rpmforge和和rpmfusion。
(1)安装epel源
       epel由fedora社区提供,其提供的软件包与RHEL基本无区别,是RHEL的小白鼠版本,也就是说当epel里的源通过普通用户使用测试,证明比较稳定后才会被用于RHEL,但其也是非常稳定的,是不错的选择。
      epel源安装非常简单,只需安装相应的epel的软件包即可。
      epel包下载页面:http://fedoraproject.org/wiki/EPEL
      RHEL6.2的epel下载链接为:http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
     下载下来后执行如下命令即可:
     #rpm -ivh epel-release-6-5.noarch.rpm
(2)安装rpmforge源
     rpmforge源包含了RHEL, CentOS 和Scientific Linux的rpm包,它包含了许多和RHEL各版本兼容的软件包。
    各linux操作系统对应的rpmforge包下载页面:http://repoforge.org/use/
    RHEL6.2的rpmforge包下载链接:http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
   下载下来后执行如下命令即可:
     #rpm -ivh rpmforge-release-0.5.2-2.el6.rf.i686.rpm
(3)安装rpmfusion源
   RPM Fusion提供了Fedora Project or Red Hat不愿意发行的软件包。该软件提供目前所有的Fedora版本和红帽企业Linux5和6的预编译的RPM; RPM融合库。
    各linux操作系统对应的rpmfusion包下载页面:http://rpmfusion.org/Configuration
    RHEL6.2的rpmfusion包下载链接:
    http://download1.rpmfusion.org/nonfree/el/updates/testing/6/i386/rpmfusion-nonfree-release-6-0.1.noarch.rpm
   下载下来后执行如下命令即可:
     #rpm -ivh rpmfusion-nonfree-release-6-0.1.noarch.rpm
 
三、建立yum的cache
    重启系统,iso镜像便会自动挂载到指定目录。    执行如下命令:    #yum clean all    #yum makecache    则可建立yum的缓存
    到此本地yum源和第三方源已建立完成。


HomePage

Welcome to the ELRepo Project

"For the community, by the community."

Welcome to ELRepo, an RPM repository for Enterprise Linux packages. ELRepo supports Red Hat Enterprise Linux (RHEL) and its derivatives (Scientific Linux, CentOS & others).

The ELRepo Project focuses on hardware related packages to enhance your experience with Enterprise Linux. This includes filesystem drivers, graphics drivers, network drivers, sound drivers, webcam and video drivers.



Star Get started

Import the public key:


Detailed info on the GPG key used by the ELRepo Project can be found on https://www.elrepo.org/tiki/key (external link)
If you have a system with Secure Boot enabled, please see the SecureBootKey page for more information.

To install ELRepo for RHEL-7, SL-7 or CentOS-7:


To make use of our mirror system, please also install yum-plugin-fastestmirror.

To install ELRepo for RHEL-6, SL-6 or CentOS-6:


To make use of our mirror system, please also install yum-plugin-fastestmirror.



Star Repository contents

ELRepo contains four channels. You can browse the contents of each channel by clicking on its name.

elrepo

This is the main channel and is enabled by default. As this channel should not contain packages also present in the distribution, it should be safe to run a 'yum update' with this repository channel enabled.

For example, to install kmod-r8168 (Realtek r8168 NIC driver):

yum install kmod-r8168

Depending on the package being installed or the repository setup, it might be necessary to disable non-elrepo repositories:

yum --disablerepo=\* --enablerepo=elrepo install kmod-nvidia

elrepo-extras

The elrepo-extras channel provides packages and their dependencies that replace/update RHEL distribution packages. It may be enabled in the /etc/yum.repos.d/elrepo.repo file or used with 'yum --enablerepo=elrepo-extras'.

elrepo-testing

The elrepo-testing channel provides packages yet to be released to the main channel and is disabled by default. It may be enabled in the /etc/yum.repos.d/elrepo.repo file or used with 'yum --enablerepo=elrepo-testing'.

elrepo-kernel

The elrepo-kernel channel provides both the long-term support kernels (which have been configured for RHEL-7 and RHEL-6) and the latest stable mainline kernels (which have been configured for RHEL-7 and RHEL-6) using sources available from the Linux Kernel Archives (external link). Please see the kernel-lt or kernel-ml pages for further details. This channel may be enabled in the /etc/yum.repos.d/elrepo.repo file or used with 'yum --enablerepo=elrepo-kernel'.

Help Need help?



浏览2133 评论0
返回
目录
返回
首页
centos6 安装wmwaretools找不到kernel header How to changing XenServer Management IP Address