[root@centos01 centos01]# gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28) Copyright © 2015 Free Software Foundation, Inc. 本程序是自由軟件;請參看源代碼的版權聲明。本軟件沒有任何擔保; 包括沒有適銷性和某一專用目的下的適用性擔保。 [root@centos01 centos01]# [root@centos01 centos01]# which gcc /usr/bin/gcc [root@centos01 centos01]#
在安裝redis的過程中,安裝和升級gcc
[root@centos01 redis]# yum install gcc 已加載插件:fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 mysql-connectors-community | 2.5 kB 00:00:00 mysql-tools-community | 2.5 kB 00:00:00 mysql80-community | 2.5 kB 00:00:00 updates | 3.4 kB 00:00:00 正在解決依賴關系 --> 正在檢查事務 ---> 軟件包 gcc.x86_64.0.4.8.5-28.el7 將被 升級 --> 正在處理依賴關系 gcc = 4.8.5-28.el7,它被軟件包 gcc-c++-4.8.5-28.el7.x86_64 需要 --> 正在處理依賴關系 gcc = 4.8.5-28.el7,它被軟件包 libquadmath-devel-4.8.5-28.el7.x86_64 需要 --> 正在處理依賴關系 gcc = 4.8.5-28.el7,它被軟件包 gcc-gfortran-4.8.5-28.el7.x86_64 需要 ---> 軟件包 gcc.x86_64.0.4.8.5-28.el7_5.1 將被 更新 --> 正在處理依賴關系 libgomp = 4.8.5-28.el7_5.1,它被軟件包 gcc-4.8.5-28.el7_5.1.x86_64 需要 --> 正在處理依賴關系 cpp = 4.8.5-28.el7_5.1,它被軟件包 gcc-4.8.5-28.el7_5.1.x86_64 需要 --> 正在處理依賴關系 libgcc >= 4.8.5-28.el7_5.1,它被軟件包 gcc-4.8.5-28.el7_5.1.x86_64 需要 --> 正在檢查事務 ---> 軟件包 cpp.x86_64.0.4.8.5-28.el7 將被 升級 ---> 軟件包 cpp.x86_64.0.4.8.5-28.el7_5.1 將被 更新 ---> 軟件包 gcc-c++.x86_64.0.4.8.5-28.el7 將被 升級 ---> 軟件包 gcc-c++.x86_64.0.4.8.5-28.el7_5.1 將被 更新 --> 正在處理依賴關系 libstdc++-devel = 4.8.5-28.el7_5.1,它被軟件包 gcc-c++-4.8.5-28.el7_5.1.x86_64 需要 --> 正在處理依賴關系 libstdc++ = 4.8.5-28.el7_5.1,它被軟件包 gcc-c++-4.8.5-28.el7_5.1.x86_64 需要 ---> 軟件包 gcc-gfortran.x86_64.0.4.8.5-28.el7 將被 升級 ---> 軟件包 gcc-gfortran.x86_64.0.4.8.5-28.el7_5.1 將被 更新 --> 正在處理依賴關系 libquadmath = 4.8.5-28.el7_5.1,它被軟件包 gcc-gfortran-4.8.5-28.el7_5.1.x86_64 需要 --> 正在處理依賴關系 libgfortran = 4.8.5-28.el7_5.1,它被軟件包 gcc-gfortran-4.8.5-28.el7_5.1.x86_64 需要 ---> 軟件包 libgcc.x86_64.0.4.8.5-28.el7 將被 升級 ---> 軟件包 libgcc.x86_64.0.4.8.5-28.el7_5.1 將被 更新 ---> 軟件包 libgomp.x86_64.0.4.8.5-28.el7 將被 升級 ---> 軟件包 libgomp.x86_64.0.4.8.5-28.el7_5.1 將被 更新 ---> 軟件包 libquadmath-devel.x86_64.0.4.8.5-28.el7 將被 升級 ---> 軟件包 libquadmath-devel.x86_64.0.4.8.5-28.el7_5.1 將被 更新 --> 正在檢查事務 ---> 軟件包 libgfortran.x86_64.0.4.8.5-28.el7 將被 升級 ---> 軟件包 libgfortran.x86_64.0.4.8.5-28.el7_5.1 將被 更新 ---> 軟件包 libquadmath.x86_64.0.4.8.5-28.el7 將被 升級 ---> 軟件包 libquadmath.x86_64.0.4.8.5-28.el7_5.1 將被 更新 ---> 軟件包 libstdc++.x86_64.0.4.8.5-28.el7 將被 升級 ---> 軟件包 libstdc++.x86_64.0.4.8.5-28.el7_5.1 將被 更新 ---> 軟件包 libstdc++-devel.x86_64.0.4.8.5-28.el7 將被 升級 ---> 軟件包 libstdc++-devel.x86_64.0.4.8.5-28.el7_5.1 將被 更新 --> 解決依賴關系完成 依賴關系解決 ========================================================================================================== Package 架構 版本 源 大小 ========================================================================================================== 正在更新: gcc x86_64 4.8.5-28.el7_5.1 updates 16 M 為依賴而更新: cpp x86_64 4.8.5-28.el7_5.1 updates 5.9 M gcc-c++ x86_64 4.8.5-28.el7_5.1 updates 7.2 M gcc-gfortran x86_64 4.8.5-28.el7_5.1 updates 6.7 M libgcc x86_64 4.8.5-28.el7_5.1 updates 101 k libgfortran x86_64 4.8.5-28.el7_5.1 updates 299 k libgomp x86_64 4.8.5-28.el7_5.1 updates 156 k libquadmath x86_64 4.8.5-28.el7_5.1 updates 188 k libquadmath-devel x86_64 4.8.5-28.el7_5.1 updates 51 k libstdc++ x86_64 4.8.5-28.el7_5.1 updates 303 k libstdc++-devel x86_64 4.8.5-28.el7_5.1 updates 1.5 M 事務概要 ============================================================================================================ 升級 1 軟件包 (+10 依賴軟件包) 總計:39 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction 正在更新 : libquadmath-4.8.5-28.el7_5.1.x86_64 1/22 正在更新 : libgcc-4.8.5-28.el7_5.1.x86_64 2/22 正在更新 : libstdc++-4.8.5-28.el7_5.1.x86_64 3/22 正在更新 : libstdc++-devel-4.8.5-28.el7_5.1.x86_64 4/22 正在更新 : libgfortran-4.8.5-28.el7_5.1.x86_64 5/22 正在更新 : cpp-4.8.5-28.el7_5.1.x86_64 6/22 正在更新 : libgomp-4.8.5-28.el7_5.1.x86_64 7/22 正在更新 : gcc-4.8.5-28.el7_5.1.x86_64 8/22 正在更新 : libquadmath-devel-4.8.5-28.el7_5.1.x86_64 9/22 正在更新 : gcc-gfortran-4.8.5-28.el7_5.1.x86_64 10/22 正在更新 : gcc-c++-4.8.5-28.el7_5.1.x86_64 11/22 清理 : gcc-c++-4.8.5-28.el7.x86_64 12/22 清理 : gcc-gfortran-4.8.5-28.el7.x86_64 13/22 清理 : libquadmath-devel-4.8.5-28.el7.x86_64 14/22 清理 : libstdc++-devel-4.8.5-28.el7.x86_64 15/22 清理 : gcc-4.8.5-28.el7.x86_64 16/22 清理 : libgfortran-4.8.5-28.el7.x86_64 17/22 清理 : libstdc++-4.8.5-28.el7.x86_64 18/22 清理 : libgcc-4.8.5-28.el7.x86_64 19/22 清理 : libquadmath-4.8.5-28.el7.x86_64 20/22 清理 : cpp-4.8.5-28.el7.x86_64 21/22 清理 : libgomp-4.8.5-28.el7.x86_64 22/22 驗證中 : libgomp-4.8.5-28.el7_5.1.x86_64 1/22 驗證中 : libstdc++-devel-4.8.5-28.el7_5.1.x86_64 2/22 驗證中 : gcc-4.8.5-28.el7_5.1.x86_64 3/22 驗證中 : libgfortran-4.8.5-28.el7_5.1.x86_64 4/22 驗證中 : gcc-gfortran-4.8.5-28.el7_5.1.x86_64 5/22 驗證中 : libgcc-4.8.5-28.el7_5.1.x86_64 6/22 驗證中 : cpp-4.8.5-28.el7_5.1.x86_64 7/22 驗證中 : libquadmath-4.8.5-28.el7_5.1.x86_64 8/22 驗證中 : gcc-c++-4.8.5-28.el7_5.1.x86_64 9/22 驗證中 : libquadmath-devel-4.8.5-28.el7_5.1.x86_64 10/22 驗證中 : libstdc++-4.8.5-28.el7_5.1.x86_64 11/22 驗證中 : gcc-gfortran-4.8.5-28.el7.x86_64 12/22 驗證中 : libgomp-4.8.5-28.el7.x86_64 13/22 驗證中 : libstdc++-4.8.5-28.el7.x86_64 14/22 驗證中 : libstdc++-devel-4.8.5-28.el7.x86_64 15/22 驗證中 : libgcc-4.8.5-28.el7.x86_64 16/22 驗證中 : gcc-4.8.5-28.el7.x86_64 17/22 驗證中 : libgfortran-4.8.5-28.el7.x86_64 18/22 驗證中 : libquadmath-4.8.5-28.el7.x86_64 19/22 驗證中 : libquadmath-devel-4.8.5-28.el7.x86_64 20/22 驗證中 : cpp-4.8.5-28.el7.x86_64 21/22 驗證中 : gcc-c++-4.8.5-28.el7.x86_64 22/22 更新完畢: gcc.x86_64 0:4.8.5-28.el7_5.1 作為依賴被升級: cpp.x86_64 0:4.8.5-28.el7_5.1 gcc-c++.x86_64 0:4.8.5-28.el7_5.1
gcc-gfortran.x86_64 0:4.8.5-28.el7_5.1 libgcc.x86_64 0:4.8.5-28.el7_5.1 libgfortran.x86_64 0:4.8.5-28.el7_5.1 libgomp.x86_64 0:4.8.5-28.el7_5.1
libquadmath.x86_64 0:4.8.5-28.el7_5.1 libquadmath-devel.x86_64 0:4.8.5-28.el7_5.1 libstdc++.x86_64 0:4.8.5-28.el7_5.1 libstdc++-devel.x86_64 0:4.8.5-28.el7_5.1 完畢! [root@centos01 redis]#
