千锋扣丁学堂Linux培训之安装软件gcc操作方法

2019-07-18 16:11:11 2754浏览

今天千锋扣丁学堂Linux培训老师给大家分享一篇关于Linux在线安装软件gcc在线安装的操作方法,具有很好的参考价值,希望对大家有所帮助。



Linux在线安装相关命令:

yuminstall:全部安装

yuminstall<程序包>:安装指定的程序包

yumgroupinsall<程序组>:安装程序组

yum-yupdate:升级所有包,改变软件设置和系统设置,系统版本、内核都升级

yum-yupgrade:升级所有包,不改变软件设置和系统设置,系统版本升级,内核不升级

yumupdate<程序包>:更新指定的程序包

yumcheck-update:检查可更新的程序

yumupgrade<程序包>:升级指定的程序包

yuminfo<程序包>:显示程序包的信息

yumlist:显示所有已经安装和可以安装的程序包

yumlist<程序包>:显示指定程序包安装情况

yumgroupinfo<程序组>:显示程序组的信息

yumsearch<关键字>:根据关键字查找程序包

yumremove/erase<程序包>:删除程序包

yumgroupremove<程序组>:删除程序组

yumdeplist<程序包>:查看程序包依赖情况

yumclean<程序包>:清除缓存目录中的程序包

yumcleanheaders:清除缓存目录下的rpm头文件

-------------------测试网络

[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

-------------------收搜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/SMatched: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安装

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

------------------------查看gcc安装情况

[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 ~]# 

以上就是关于千锋扣丁学堂Linux培训之安装软件gcc操作方法的全部内容了,想要学好Linux开发小编给大家推荐口碑良好的扣丁学堂,扣丁学堂有专业老师制定的Linux学习路线图辅助学员学习,此外还有与时俱进的Linux课程体系和Linux视频教程供大家学习,想要学好Linux开发技术的小伙伴快快行动吧。扣丁学堂Linux技术交流群:422345477。


                        JavaEE/微服务/源码解析/分布式/企业级架构【VIP体验课】


     【关注微信公众号获取更多学习资料】       【扫码进入JavaEE/微服务VIP免费公开课】  




查看更多关于“Linux培训资讯”的相关文章>>

标签: Linux培训 Linux视频教程 红帽Linux视频 Linux学习视频 Linux入门视频 红帽RHCE/RHCSA考试
微信
微博
15311698296

全国免费咨询热线

邮箱:codingke@1000phone.com

官方群:148715490

北京千锋互联科技有限公司版权所有   北京市海淀区宝盛北里西区28号天丰利商场4层
京ICP备12003911号-6   Copyright © 2013 - 2019
返回顶部 返回顶部