cent os

当centos 安装好后.

查看版本: 

cat /proc/version 

cat /etc/issue

file /bin/bash

file /bin/cat


然后更新源. 注意源和系统版本的对应.

配置epel源

EPEL全称: Extra Packages for Enterprise Linux.传说中最全的yum源

【CentOS/Rhel 6.x 32-bit】

rpm -Uvh http://mirror.overthewire.com.au/pub/epel/6/i386/epel-release-6-7.noarch.rpm

【CentOS/Rhel 6.x 64-bit】

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm

【CentOS/Rhel 5.x 32-bit】

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

【CentOS/Rhel 5.x 64-bit】

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

想暂停使用EPEL,在下面的文件中设置enabled=0即可.

vim /etc/yum.repos.d/epel.repo




yum groupinstall "Development Tools" 

yum groupinstall "Development Libraries"  //这个我没试.

你可能感兴趣的:(linux)