Linux源码包安装
1.换yum仓库源
cd /etc/yum.resposl.d
rm –f dvd.repo
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
或者
curl –O http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum list
2.安装扩展源epel
Yum install –y epel-release
Yum list |grep epel
3. yum下载rpm包
yum install –y 包名 –downloadonly
ls /var/cache/yum/x86_64/7/
yum install –y 包名 –downloadonly –downloaddir=路径
yum reinstall –y 包名 –downloadonly–downloaddir=路径
4. 源码包安装
cd /usr/local/src/
wget http://mirrors.cnnic.cn/apache/httpd/httppd-2.2.32.tar.gz
tar zxvf httpd-2.2.32.tar.gz
cd httpd-2.2.32
./configure –prefix=/usr/local/apache2
make
make install
卸载就是安装的文件
转载于:https://blog.51cto.com/yaoyao1314520/1981876