yum replace domestic source/download rpm package source package installation

1. Replace domestic source with yum #cd
yum replace domestic source/download rpm package source package installation
/etc/yum.repos.d/
#rm -f CentOS-Base.repo
#curl -O http://mirrors.163.com/.help/CentOS-Base-163.repo
#yum list
2. yum downloads the rpm package
yum replace domestic source/download rpm package source package installation
#yum install -y epel-release
#yum list |grep epel
yum replace domestic source/download rpm package source package installation
#yum install package name --downloadonly //only download but not install
#rpm -q package name //check if the package has been Install
#ls /var/cache/yum/x86_64/7/updates/packages //The default rpm package is downloaded to this path
#yum install zsh --downloadonly --downloaddir=/tmp/ //Specify the download of the rpm package of zsh The path is /tmp/
#yum reinstall vim-enhanced --downloadonly --downloaddir=/tmp/ //Reinstall the vim-enhanced package

3. Source package installation
yum replace domestic source/download rpm package source package installation
#cd /usr/local/src //The default path of the source package is placed in this directory
#wget http://mirrors.cnnic.cn/apache/httpd/httpd-2.2.32.tar.gz / /Download the Apache package
#tar zxvf httpd-2.2.32.tar.gz //Unzip the tar package #cd
httpd-2.2.32
#./configure --prefix=/usr/local/apache2 //Specify the installation path
#echo $ ? //The output result is non-zero, indicating that there is an error in the execution of the previous command. If there is an error, the installation prompts the missing package
#make
#make install
Uninstall is to delete the installed folder
Note: Download the source package must go to the official website or a trusted site Go to download to prevent Trojans or backdoors

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326381213&siteId=291194637