• 软件包管理器

    软件包管理器

  • rpm包和rpm命令

    • rpm包
      • vim-common-7.4.10-5.el7.x86_64.rpm
      • 软件名称 软件版本 系统版本 平台
    • rpm命令
      • -q 查询软件包
        • -qa 查询所有软件包
      • -i 安装软件包(安装有依赖关系)
      • -e 卸载软件包
  • yum仓库

    • rpm 包的内容

      • 需要自己解决依赖关系
      • 软件包来源不可靠
    • CentOS yum 源

      • http://mirro.centos.org/centos/7/
    • 国内镜像

      • http://opsx.alibaba.com/mirror
    • yum 配置文件

      • /etc/yum.repos.d/CentOS-Base.repo
      [base]
      name=CentOS-$releasever - Base - mirrors.aliyun.com
      failovermethod=priority
      baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/
              <http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/>
              <http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/>
      gpgcheck=1
      gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
      
      • 配置说明
        • baseUrl: rpm源放在哪儿路径下
        • gpgcheck: 检测包是否备修改
      • wget -O /etc/yum.repos.d/CentOS-Base.repo <http://mirrors.aliyun.com/repo/Centos-7.repo>
    • yum 命令常用选项

      • install 安装软件包
      • remove 卸载软件包
      • list | grouplist 查看软件包
      • update 升级软件包
      • yum makecache 生成缓存
  • 源代码编译安装

    源代码编译安装

  • 内核升级

    升级内核

  • grub配置文件

    grub配置文件