目录

Centos7 常用 Yum 配置

目录

aliyun mirror

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

epel !!!

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

epel ss

wget https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo

ius.io

yum install \ https://repo.ius.io/ius-release-el7.rpm \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

nginx https证书自动部署脚本

https://certbot.eff.org/lets-encrypt/centosrhel7-nginx sudo yum install python2-certbot-nginx

linux chrome

vi /etc/yum.repos.d/chrome.repo

1
2
3
4
5
6
[google-chrome]
name=google-chrome
baseurl=https://dl.guuuu.ga/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=0
gpgkey=https://dl-ssl.guuuu.ga/linux/linux_signing_key.pub

vs code

1
2
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'

sudo yum install code

mariadb

get a repos https://downloads.mariadb.org/mariadb/repositories/#mirror=nethub&distro=CentOS&distro_release=centos7-amd64--centos7&version=10.3

vi /etc/yum.repos.d/mariadb.repo

1
2
3
4
5
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

sudo yum install MariaDB-server MariaDB-client