在CentOS上面安装一些常用的包

从Debian转过来还是有点不怎么习惯······开篇文章记下来那些常用的包怎么安装才行。

常用的软件包

Python-pip

rpm -iUvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm #添加EPEL(Extra Packages for Enterprise Linux)源
yum update
yum install python-pip
pip install --upgrade pip #自更新pip,因为EPEL里面的pip版本还是挺旧的

参考自How to Install Pip on CentOS 7

PHP7+Apache2 Httpd

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php70w php70w-cli php70w-opcache php70w-common

参考自PHP 7 on CentOS/RHEL 6.7 and 7.2 via Yum