zoukankan      html  css  js  c++  java
  • Redhat5.8以光盘、镜像文件配置yum

    本机是MacOS系统,虚拟机用的visual box,安装的是Redhat5.8的系统

    1.首先挂载光盘、镜像

     

    2.挂载命令

    [root@localhost ~]# mount /dev/cdrom /mnt
    mount: block device /dev/cdrom is write-protected, mounting read-only
    出现如上所示提示表示挂好光盘
    [root@localhost ~]# cd /mnt/Server
    [root@localhost Server]# ls
    a2ps-4.13b-57.2.el5.x86_64.rpm
    acl-2.2.39-8.el5.x86_64.rpm
    ........
    3.修改YUM配置文件,启用本地YUM
     

    [root@localhost ~]# vi /etc/yum.repos.d/rhel-debuginfo.repo

     

    修改内容如下:

     

    [rhel-debuginfo]

    name=Red Hat Enterprise Linux $releasever - $basearch - Debug

    baseurl=file:///mnt/Server

    enabled=1

    gpgcheck=1

    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

     

    保存退出

     

    4.测试YUM源配置成功与否

     

    [root@localhost ~]# yum list

    会列出很多包名

    这样就配置完毕了

  • 相关阅读:
    django http请求request详解
    HTTP协议向服务器传参
    股票交易费用及复利计算公式
    scrapy初步使用
    通过 multiprocessing Pool 线程池加速爬虫的处理
    通过 PIL 和 Python-tesseract 模拟登陆
    BeautifulSoup
    xpath
    http 请求特殊字符
    HTTP cookies
  • 原文地址:https://www.cnblogs.com/zoeyqq/p/8303764.html
Copyright © 2011-2022 走看看