zoukankan      html  css  js  c++  java
  • CentOS8 安装epel 使用阿里云镜像

    CentOS8和前面的不太一样,准备推出dnf(下一代yum)了,所以epel结构也和之前的CentOS7 不一样。

    这里经过测试给出了CentOS8 下面可用的epel几个文件,分别/etc/yum.repos.d/目录下的:

    epel.repo
    epel-playground.repo
    epel-testing.repo
    epel-testing-modular.rep
    epel-modular.rep
    下面以epel.repo为例,其他都是一样的,把metalink注释掉,baseurl换成阿里云的,vi /etc/yum.repos.d/epel.repo

    [epel]
    name=Extra Packages for Enterprise Linux $releasever - $basearch
    baseurl=https://mirrors.aliyun.com/epel/$releasever/Everything/$basearch
    #metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8

    [epel-debuginfo]
    name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
    baseurl=https://mirrors.aliyun.com/epel/$releasever/Everything/$basearch/debug
    #metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
    gpgcheck=1

    [epel-source]
    name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
    baseurl=https://mirrors.aliyun.com/epel/$releasever/Everything/SRPMS
    #metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
    gpgcheck=1


    修改把这些网址修改之后,再运行: dnf repolist epel -v

    [root@localhost yum.repos.d]# dnf repolist epel -v
    Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
    DNF version: 4.2.17
    cachedir: /var/cache/dnf
    User-Agent: constructed: 'libdnf (CentOS Linux 8; generic; Linux.x86_64)'
    repo: using cache for: AppStream
    AppStream: using metadata from Thu 16 Jul 2020 09:44:25 PM EDT.
    repo: using cache for: aliyun-BaseOS
    aliyun-BaseOS: using metadata from Thu 16 Jul 2020 09:44:21 PM EDT.
    repo: using cache for: extras
    extras: using metadata from Fri 10 Jul 2020 10:19:28 AM EDT.
    repo: using cache for: epel-modular
    epel-modular: using metadata from Thu 09 Jul 2020 09:04:51 PM EDT.
    repo: downloading from remote: epel
    Extra Packages for Enterprise Linux 8 - x86_64 4.8 MB/s | 7.4 MB 00:01
    epel: using metadata from Wed 22 Jul 2020 08:46:16 PM EDT.
    Last metadata expiration check: 0:00:01 ago on Fri 24 Jul 2020 12:15:48 PM EDT.
    Completion plugin: Generating completion cache...

    Repo-id : epel
    Repo-name : Extra Packages for Enterprise Linux 8 - x86_64
    Repo-status : enabled
    Repo-revision : 1595465144
    Repo-updated : Wed 22 Jul 2020 08:46:16 PM EDT
    Repo-pkgs : 6,105
    Repo-available-pkgs: 6,104
    Repo-size : 7.8 G
    Repo-baseurl : https://mirrors.aliyun.com/epel/8/Everything/x86_64
    Repo-expire : 172,800 second(s) (last: Fri 24 Jul 2020 12:15:48 PM EDT)
    Repo-filename : /etc/yum.repos.d/epel.repo
    Total packages: 6,105


    https://blog.csdn.net/weixin_42205230/article/details/104744588

  • 相关阅读:
    分子动力学中步长的选取
    提高编程能力刷题网站
    【18】如何把数据存储到MongoDB数据库
    【17】有关python面向对象编程的提高【多继承、多态、类属性、动态添加与限制添加属性与方法、@property】
    【16】有关python面向对象编程
    【15】杂记章节
    【14】文件读取并格式化处理
    【13】python time时间模块知识点备查
    【11】python 递归,深度优先搜索与广度优先搜索算法模拟实现
    6380. 【NOIP2019模拟2019.10.06】小w与最长路(path)
  • 原文地址:https://www.cnblogs.com/kate7/p/13372624.html
Copyright © 2011-2022 走看看