Sometimes installed Yum package, found that some have been installed, but if the installation, Yum needs to check the source, output a bunch of information, look very annoying, and then think of the first check after installation, if the Local has been installed, do not install, if not installed to install.
The Yum installation package that needs to be installed after the go-heavy is as follows:
autoconf bison bison-devel bzip2 bzip2-devel ca-certificates cairo-devel c-ares c-ares-devel cmake crontabs curl curl-devel diffutilse2fsprogs e2fsprogs-devel expat-devel file flex freetype freetype-devel gcc gcc-c++ gcc-g77 gd gd-devel gettext gettext-devel git-core glib2 glib2-devel glibc.i686 gmp-devel icu kernel-devel krb5 krb5-devel libaio-devel libcap libc-client-devel libcurl libcurl-devel libevent libevent-devel libicu-devel libidn libidn-devel libjpeg libjpeg-devel libpng libpng10 libpng10-devel libpng-devel libstdc++.so.6 libtool libtool-libs libwebp libwebp-devel libxml2 libxml2-dev libxml2-devel libXpm-devel libxslt libxslt* libxslt-devel lsof make ncurses ncurses-devel net-tools openssl openssl-devel patch pcre pcre-devel perl perl-Data-Dumper perl-devel psmisc pspell-devel python-devel python-imaging readline-devel tar unzip vim-minimal vixie-cron wget zip zlib zlib-devel
Shell Source
cat yumci.sh
#!/bin/bash#writen by Aikermyum () {if! rpm-qa|grep-q ' ^$1 ' then yum install-y ' check_okelse echo ' already INSTALLED.FI}CHECK_OK () {if [$?! = 0]then echo "error, check the error log." Fi}for p in autoconf Bison bison-devel bzip2 bzip2-devel ca-certificates cairo-devel c-ares c-ares-devel cmake crontabs cu RL curl-devel diffutilse2fsprogs e2fsprogs-devel expat-devel file Flex freetype freetype-devel gcc gcc-c++ gcc-g77 gd gd-d Evel GetText gettext-devel git-core glib2 glib2-devel glibc.i686 gmp-devel ICU kernel-devel krb5 krb5-devel libaio-devel L Ibcap libc-client-devel libcurl libcurl-devel libevent libevent-devel libicu-devel libidn libidn-devel libjpeg Libjpeg-devel libpng libpng10 libpng10-devel libpng-devel libstdc++.so.6 libtool libtool-libs libwebp libwebp-devel LIBXML2 libxml2-dev libxml2-devel libxpm-devel libxslt libxslt* libxslt-devel lsof make ncurses ncurses-devel net-tools op Enssl openssl-devel Patch pcre pcre-devel perl perl-data-dumper perl-devel PsmiscPspell-devel python-devel python-imaging readline-devel tar unzip vim-minimal vixie-cron wget zip zlib zlib-devel;do Myum $p;d One
The output example is as follows:
"[[Email protected] ~]# sh ci.sh
Autoconf already installed.
Bison already installed.
Bison-devel already installed.
BZIP2 already installed.
Bzip2-devel already installed.
Ca-certificates already installed.
Cairo-devel already installed.
C-ares already installed.
C-ares-devel already installed.
CMake already installed.
Crontabs already installed.
Curl already installed.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
Package libcurl-devel-7.29.0-42.el7_4.1.x86_64 already installed and latest version
Nothing to do
Diffutils already installed.
E2fsprogs already installed.
E2fsprogs-devel already installed.
Expat-devel already installed.
File already installed.
Flex already installed.
FreeType already installed.
Freetype-devel already installed.
GCC already installed.
Gcc-c++ already installed.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
No Package gcc-g77 available.
Error:nothing to do
Error, Check the error log.
GD already installed.
Gd-devel already installed.
GetText already installed.
Gettext-devel already installed.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
Package git-1.8.3.1-12.el7_4.x86_64 already installed and latest version
Nothing to do
GLIB2 already installed.
Glib2-devel already installed.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
Package glibc-2.17-196.el7_4.2.i686 already installed and latest version
Nothing to do
Gmp-devel already installed.
ICU already installed.
Kernel-devel already installed.
Krb5 already installed.
Krb5-devel already installed.
Libaio-devel already installed.
Libcap already installed.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
Package uw-imap-devel-2007f-16.el7.x86_64 already installed and latest version
Nothing to do
Libcurl already installed.
Libcurl-devel already installed.
Libevent already installed.
Libevent-devel already installed.
Libicu-devel already installed.
LIBIDN already installed.
Libidn-devel already installed.
Libjpeg already installed.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
Package libjpeg-turbo-devel-1.2.90-5.el7.x86_64 already installed and latest version
Nothing to do
Libpng already installed.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
No Package LIBPNG10 available.
Error:nothing to do
Error, Check the error log.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
No Package Libpng10-devel available.
Error:nothing to do
Error, Check the error log.
Libpng-devel already installed.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
Package libstdc++-4.8.5-16.el7_4.2.i686 already installed and latest version
Nothing to do
Libtool already installed.
aded Plugins:fastestmirror
▽oading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
Package libtool-ltdl-2.4.2-22.el7_3.x86_64 already installed and latest version
Nothing to do
LIBWEBP already installed.
Libwebp-devel already installed.
LIBXML2 already installed.
Libxml2-dev already installed.
Libxml2-devel already installed.
Libxpm-devel already installed.
Libxslt already installed.
Libxslt* already installed.
Libxslt-devel already installed.
Lsof already installed.
Make already installed.
Ncurses already installed.
Ncurses-devel already installed.
Net-tools already installed.
OpenSSL already installed.
Openssl-devel already installed.
Patch already installed.
Pcre already installed.
Pcre-devel already installed.
Perl already installed.
Perl-data-dumper already installed.
Perl-devel already installed.
Psmisc already installed.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
No Package Pspell-devel available.
Error:nothing to do
Error, Check the error log.
Python-devel already installed.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
Package python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64 already installed and latest version
Nothing to do
Readline-devel already installed.
Tar already installed.
Unzip already installed.
Vim-minimal already installed.
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.aliyun.com
- Updates:mirrors.aliyun.com
No Package Vixie-cron available.
Error:nothing to do
Error, Check the error log.
Wget already installed.
Zip already installed.
Zlib already installed.
Zlib-devel already installed.
Daily one shell (10) Yum install package for loop Check installation