zoukankan      html  css  js  c++  java
  • 配置yum源

    1、挂载DVD光盘到/mnt   因为配置时候路径名里面不能有空格,否则不能识别  [root@ mnt]# mount /dev/cdrom /mnt  

    2、在目录/etc/yum.repos.d/创建文件文件名.repo 

    3、配置本地yum源

    cd /etc/yum.repos.d/   #进入yum配置目录 

    touch  rhel7.repo   #建立yum配置文件 

    vim  rhel7.repo   #编辑配置文件,添加以下内容 

    [rhel-yum]

    name=rhel7   #自定义名称 

    baseurl=file:///mnt#本地光盘挂载路径 

    enabled=1   #启用yum源,0为不启用,1为启用 

    gpgcheck=0  #检查GPG-KEY,0为不检查,1为检查 

    :wq! #保存退出 

    4、、测试使用yum命令自动安装软件

    yum clean all   #清除yum缓存 

    yum makecache  #缓存本地yum源中的软件包信息

    yum repolist all

    yum -y install mlocate

    rpm -q mlocate

    rpm -ql mlocate  #查询所有安装httpd的目录和文件 

  • 相关阅读:
    vue 插件的使用 todolist案例
    vue 传值 混入mixin
    vue 生命周期函数
    vue 指令总结
    vue 其它的指令
    vue 监听数据变化的原理 表单数据的收集
    vue for循环中的key
    vue 学习
    vue 学习
    HDU 1029
  • 原文地址:https://www.cnblogs.com/wdx8927304/p/7879011.html
Copyright © 2011-2022 走看看