• 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

  • 相关阅读:
    chromedriver版本对应支持的Chrome版本
    post请求,直接在地址后加请求参数,并将请求参数 url加密
    Requests 请求-重定向Location
    requests 进行https请求,一直报SSL 报错,以及 移除SSL认证后的InsecureRequestWarning警告解决
    fiddler 设置,只过滤固定域名的网址
    python requests库,请求返回 中文乱码问题的解决
    python post请求,application/x-www-form-urlencoded格式,提交数据key、val均需URL转码
    python post请求,text/xml 格式
    那些年找工作入过的坑! 避雷!!!!
    构建前端gulp自动化
  • 原文地址:https://www.cnblogs.com/kate7/p/13372624.html
Copyright © 2020-2023  润新知