零、背景
当我们要用yum安装一些软件的时候,常常会遇到由于缺少配套工具软件而产生的失败。因此,在这里做一个汇总,将常用的一些配套软件作为一个配置项都写在这里,以备后续使用
一、正文
1.1、yum源变更
#备份
cp -rf /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_20220309
#下载阿里源。这里仅以centos7为例。如果哪位需要centos6或者8,只需要将下面的7改为6或8再获取即可
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#安装centos7的repo,6或8也和上面的操作类似
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
#清理缓存
yum clean all
#重新生成缓存
yum makecache
1.2、升级yum并安装依赖
#升级yum
yum update
#安装epel源
yum install epel-release
#安装依赖
yum -y install patch make gcc gcc-c++ gcc-g77 flex* bison file
yum -y install libtool libtool-libs autoconf kernel-devel
yum -y install libjpeg libjpeg-devel libpng libpng-devel libpng10 libpng10-devel gd gd-devel
yum -y install freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel
yum -y install glib2 glib2-devel bzip2 bzip2-devel libevent libevent-devel
yum -y install ncurses ncurses-devel curl curl-devel e2fsprogs
yum -y install e2fsprogs-devel krb5 krb5-devel libidn libidn-devel
yum -y install openssl openssl-devel vim-minimal nano sendmail
yum -y install fonts-chinese gettext gettext-devel
yum -y install ncurses-devel sqlite-devel libyaml-devel
yum -y install gmp-devel pspell-devel
yum -y install unzip
yum -y install automake libmcrypt* libtool-ltdl-devel*
yum -y install readline* libxslt* pcre* net-snmp* gmp* libtidy*
yum -y install ImageMagick* svnversion*
yum install lz4-devel.x86_64
标签:epel,repo,依赖,develyum,devel,Centos7,yum,install From: https://www.cnblogs.com/wangbin/p/17145369.html