Operation method of Linux online installation software gcc online installation

  • 2021-06-28 14:51:00
  • OfStack

Linux Online Installation related commands:

yum install: All Installed
yum install < Packages > : Install the specified package
yum groupinsall < Program Group > : Setup group
yum-y update: Upgrade all packages, change software settings and system settings, upgrade system version and kernel
yum-y upgrade: Upgrade all packages, do not change software and system settings, upgrade system version, do not upgrade kernel
yum update < Packages > : Update the specified package
yum check-update: Check for updatable programs
yum upgrade < Packages > : Upgrade the specified package
yum info < Packages > : Display package information
yum list: Shows all installed and installable packages
yum list < Packages > : Displays the specified package installation
yum groupinfo < Program Group > : Display information about program groups
yum search < Keyword > : Find packages based on keywords
yum remove/erase < Packages > : Delete packages
yum groupremove < Program Group > : Delete program groups
yum deplist < Packages > : View package dependencies
yum clean < Packages > : Clear packages from the cache directory
yum clean headers: Clear the rpm header file in the cache directory

------------------------- Test the network

[root@bogon bin]# ping www.baidu.com
PING www.a.shifen.com (163.177.151.110) 56(84) bytes of data.
64 bytes from 163.177.151.110: icmp_seq=1 ttl=128 time=8.34 ms
64 bytes from 163.177.151.110: icmp_seq=2 ttl=128 time=9.35 ms
64 bytes from 163.177.151.110: icmp_seq=3 ttl=128 time=9.18 ms
64 bytes from 163.177.151.110: icmp_seq=4 ttl=128 time=8.55 ms
64 bytes from 163.177.151.110: icmp_seq=5 ttl=128 time=8.74 ms
64 bytes from 163.177.151.110: icmp_seq=6 ttl=128 time=10.0 ms
64 bytes from 163.177.151.110: icmp_seq=7 ttl=128 time=9.00 ms
64 bytes from 163.177.151.110: icmp_seq=8 ttl=128 time=10.7 ms
64 bytes from 163.177.151.110: icmp_seq=9 ttl=128 time=12.3 ms
64 bytes from 163.177.151.110: icmp_seq=10 ttl=128 time=9.10 ms
64 bytes from 163.177.151.110: icmp_seq=11 ttl=128 time=59.8 ms
64 bytes from 163.177.151.110: icmp_seq=12 ttl=128 time=10.7 ms
64 bytes from 163.177.151.110: icmp_seq=13 ttl=128 time=10.7 ms

------------------ Search for gcc


[root@bogon ~]# yum search gcc
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
===================================== N/S Matched: gcc ======================================
gcc-c++.x86_64 : C++ support for GCC
gcc-gnat.x86_64 : Ada 95 support for GCC
gcc-java.x86_64 : Java support for GCC
gcc-objc.x86_64 : Objective-C support for GCC
gcc-objc++.x86_64 : Objective-C++ support for GCC
libgcc.x86_64 : GCC version 4.4 shared support library
libgcc.i686 : GCC version 4.4 shared support library
compat-gcc-34.x86_64 : Compatibility GNU Compiler Collection
compat-gcc-34-c++.x86_64 : C++ support for compatibility compiler
compat-gcc-34-g77.x86_64 : Fortran 77 support for compatibility compiler
gcc.x86_64 : Various compilers (C, C++, Objective-C, Java, ...)
gcc-gfortran.x86_64 : Fortran support
libgcj.i686 : Java runtime library for gcc
libgcj.x86_64 : Java runtime library for gcc
libgcj-devel.i686 : Libraries for Java development using GCC
libgcj-devel.x86_64 : Libraries for Java development using GCC
libgcj-src.x86_64 : Java library sources from GCC4 preview
libgomp.x86_64 : GCC OpenMP v3.0 shared support library
libgomp.i686 : GCC OpenMP v3.0 shared support library
libmudflap.i686 : GCC mudflap shared support library
libmudflap.x86_64 : GCC mudflap shared support library
libmudflap-devel.i686 : GCC mudflap support
libmudflap-devel.x86_64 : GCC mudflap support
libquadmath.x86_64 : GCC __float128 shared support library
Name and summary matches only, use "search all" for everything.
[root@bogon ~]#

-------------------------------gcc installation

[root@bogon ~]# yum -y install gcc
...
Complete!

---------------------------------------- View the gcc installation

[root@bogon ~]# yum list gcc
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Installed Packages
gcc.x86_64 4.4.7-18.el6 @base
[root@bogon ~]#


Related articles: