zoukankan      html  css  js  c++  java
  • centos 7 常用yum源配置

    使用centos系统最熟悉的莫过于yum命令,yum命令可以让安装软件变得那么简单,编译安装的依赖关系大部分都会解决。

    工具/原料

     
    • centos 7
    • wget
    • yum

    方法/步骤

     
    1.  

      什么是yum,什么是yum源,常见的yum源有哪些?

      yum是centos下更新、管理软件的命令,也有相应的图像界面版本;

      yum源是yum命令去哪里取安装包的地图;

      常见的yum源:网易、阿里云、epel等;

    2.  

      yum、rpm、repo什么关系?

      yum命令查询repo上配置的地址去取相应的rpm包进行安装;

    3.  

      配置下centos的DNS

      一个国内,一个国外

      vi  /etc/resolv.conf

      nameserver 114.114.114.114

      nameserver 8.8.8.8

      centos 7 常用yum源配置
    4.  

      备份下原来的yum源

      cd /etc/yum.repos.d/

      mv CentOS-Base.repo CentOS-Base.repo_bak

      centos 7 常用yum源配置
    5.  

      网易yum源:

      wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

      yum clean all

      yum makecache

      centos 7 常用yum源配置
    6.  

      阿里云yum源:

      wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

      yum clean all

      yum makecache

      centos 7 常用yum源配置
      centos 7 常用yum源配置
    7.  

      epel源

      yum -y install epel-release

      yum clean all

      yum makecache

      centos 7 常用yum源配置
  • 相关阅读:
    课堂作业04 2017.10.27
    课程作业 03 动手动脑 2017.10.20
    课程作业 03 2017.10.20
    HDU 3974 Assign the task
    POJ 2155 Matrix
    POJ 2481 Cows
    HDU 3038 How Many Answers Are Wrong
    CS Academy Array Removal
    POJ_1330 Nearest Common Ancestors LCA
    CF Round 427 D. Palindromic characteristics
  • 原文地址:https://www.cnblogs.com/whowhere/p/10154877.html
Copyright © 2011-2022 走看看