CentOS7配置阿里yum源
sudo cp -R /etc/yum.repos.d /etc/yum.repos.d.origin
sudo curl http://mirrors.aliyun.com/repo/Centos-7.repo -o /etc/yum.repos.d/CentOS-Base.repo
sudo yum clean all && sudo yum makecache
sudo yum -y update
C开发环境搭建
安装 Development Tools 包含 GCC 编译器
sudo yum -y upgrade && yum -y group install "Development Tools"
gcc --version
安装man手册
sudo yum -y upgrade && yum -y install man-pages
VIM安装及简单配置
sudo yum -y upgrade && yum -y install vim*
touch ~/.vimrc
source ~/.vimrc
普通用户添加到sudo用户组
su - root
cd /etc/sudoers.d
vim test
xxx ALL=(ALL:ALL) NOPASSWD:ALL # xxx为你的用户名
标签:upgrade,repos,sudo,CentOS7,etc,开发,yum,&&,搭建
From: https://blog.51cto.com/u_15789322/5745421