zoukankan      html  css  js  c++  java
  • 记录RedHat/Centos 好用的第三方软件源

    一. 安装EPEL源

    目前可以直接通过执行命令: yum install epel-release 直接进行安装

    如果服务器或VPS是在国内,可以设置为国内的源,执行命令:
    sed -i "s@^#baseurl=http://download.fedoraproject.org/pub@baseurl=http://mirrors.aliyun.com@g" /etc/yum.repos.d/epel*.repo
    sed -i "s@^metalink@#metalink@g" /etc/yum.repos.d/epel*.repo

    如果是CentOS 8,请务必将前面两条命令里面的http都改成https。

    如果前面命令无法安装epel-release可以尝试以下方法
    CentOS/RHEL 5 :

    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm

    CentOS/RHEL 6 :

    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

    CentOS/RHEL 7 :

    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

    CentOS/RHEL 8 :

    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

    Ok,如果不报错的话,epel源就安装完毕。

    使用EPEL源安装软件
    现在就可以执行:yum install 软件包名进行安装了,nginx、htop、iftop ,ncdu、vnstat 等等一些常用的软件都灰常简单的装上了。

    转载于:https://www.vpser.net/manage/centos-rhel-linux-third-party-source-epel.html

  • 相关阅读:
    python module introduce
    python代码基
    20100911部署更新
    汉王ocr
    wsgi
    css布局模板
    Making a simple web server in Python.
    20100910更新部署
    tw.forms usage
    python web shell
  • 原文地址:https://www.cnblogs.com/jiangxianseng/p/15498840.html
Copyright © 2011-2022 走看看