码迷,mamicode.com
首页 > 其他好文 > 详细

rhel yum 本地配置

时间:2015-03-18 18:18:25      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:linux   file   release   enabled   

  1. cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 5.7 (Tikanga)

    uname -a
    Linux ftsgw-02 2.6.18-274.17.1.el5 #1 SMP Wed Jan 4 22:45:44 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

  2.  mount -o loop /rhel-server-5.7-x86_64-dvd.iso  /iso/

  3.  cat /etc/yum.repos.d/iso.repo    
    [rhel-iso]
    name=Red Hat Enterprise Linux $releasever - Source
    baseurl=file:///iso/Server/
    enabled=1
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

  4.  yum grouplist (验证)
    Loaded plugins: product-id, security, subscription-manager
    Updating Red Hat repositories.
    Setting up Group Process
    rhel-iso                                                                                                                                 | 1.5 kB     00:00    
    rhel-iso/primary                                                                                                                         | 913 kB     00:00    
    saltstack-salt-el5                                                                                                                       | 2.4 kB     00:00    
    epel/group_gz                                                                                                                            | 167 kB     00:00    
    rhel-iso/group                                                                                                                           | 1.0 MB     00:00    
    Installed Groups:
       GNOME 软件开发
       Java开发
       X 窗口系统
       X 软件开发
       开发工具
       开发库
       打印支持
       服务器配置工具
       管理工具

本文出自 “歪歪男生乖乖心” 博客,请务必保留此出处http://iamxiao.blog.51cto.com/6530374/1621920

rhel yum 本地配置

标签:linux   file   release   enabled   

原文地址:http://iamxiao.blog.51cto.com/6530374/1621920

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!