make install
mkdir build
cd build
../configure --prefix=/one/apps/app01
make -j$(nproc)
make install
make clean
rpm
查询安装的软件包
rpm -qa
rpm -qa | grep nmap
# 按照安装时间排序
rpm -qa --last | head -n 10
安装软件包
rpm -ivh package.rpm
yum
配置国内源
# Install wget if not
yum install wget -y
# Configure aliyun repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
# Install and configure aliyun epel
yum install -y epel-release
wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
# Check repo available
yum repolist enabled
配置本地源
vim /etc/yum.repo.d/local.repo
#配置以下内容
[local]
name=local
baseurl=file:///software/yum/centos-7-x86_64
enabled=1
gpgcheck=0