yum Linux软件安装工具

仓库、库管、菜单

/etc/yum.repos.d/*.repo

[base]  #仓库描述

name  #仓库名字

mirrorlist  #仓库镜像路径

baseurl=  #仓库 url路径

enabled=  #仓库是否使用

gpgcheck=  #密钥检测,1表示开启,0表示关闭

    可以选择关闭,因为都是在国内国外镜像源下载,安全,没必要检测

    sed -i 's/gpgcheck=0/gpgcheck=0/g' /etc/yum.repos.d/CentOS-Base.repo

要更新安装库,可以参考国内镜像源安装

  https://developer.aliyun.com/mirror/ 阿里云

 

yum常用命令

yum list  列表

  search  搜索

  install  安装

    yum install -y net-tools  install -y   安装过程一直点 y

  remove  卸载

 

yum grouplist

  groupinstall

  groupremove

 

yum update  #更新

 

posted @ 2020-09-09 16:46  yxlll  阅读(209)  评论(0编辑  收藏  举报