redhat7.6安装配置

查看redhat版本

cat   /etc/redhat-release 

redhat使用yum需要付费或先换源,
yum查看库情况

yum repolist all

离线安装

rpm  -ivh   ./*.rpm

下载

yumdownloader  libpng-devel # 下包,需要装yumdownloader, yum -y install yum-utils
yum install --downloadonly --downloaddir=./ libpng-devel # 包+依赖

rpm查找安装的包版本号码

rpm -qa | grep libpng

安装开发组件

yum groupinstall "Development Tools"

编译安装某包

./configure --prefix=/usr/local/
make
make install

你可能感兴趣的:(环境配置)