Linux在线安装相关命令:
yum install:全部安装
yum install <程序包>:安装指定的程序包
yum groupinsall <程序组>:安装程序组
yum -y update:升级所有包,改变软件设置和系统设置,系统版本、内核都升级
yum -y upgrade:升级所有包,不改变软件设置和系统设置,系统版本升级,内核不升级
yum update <程序包>:更新指定的程序包
yum check-update:检查可更新的程序
yum upgrade <程序包>:升级指定的程序包
yum info <程序包>:显示程序包的信息
yum list:显示所有已经安装和可以安装的程序包
yum list <程序包>:显示指定程序包安装情况
yum groupinfo <程序组>:显示程序组的信息
yum search <关键字>:根据关键字查找程序包
yum remove/erase <程序包>:删除程序包
yum groupremove <程序组>:删除程序组
yum deplist <程序包>:查看程序包依赖情况
yum clean <程序包>:清除缓存目录中的程序包
yum clean headers:清除缓存目录下的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/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安装
[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在线安装的操作方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
更新日志
- 群星.2023-非凡医者影视原声带【华纳】【FLAC分轨】
- 《寻找弗兰基》全成就一览
- 《传说法师2》EA评测:不是亲生的不心疼
- 《射戮骑士》评测:“幸存者!去杀穿硬核地狱!”
- 群星《名声(黑胶CD)》[WAV+CUE]
- 梅艳芳《女人花》SACD[原抓WAV+CUE]
- 孙露《因为想念》【WAV+CUE】
- 罗艺恒《What Could've Been》[FLAC/分轨][130.04MB]
- 罗熙楷《笼中鸟Caged Bird》[320K/MP3][72.27MB]
- 罗熙楷《笼中鸟Caged Bird》[FLAC/分轨][191.82MB]
- 英雄联盟s14晋级四强队伍是哪些 S14全球总决赛四强战队介绍
- 魔兽世界怀旧服专家模式什么时候开 怀旧服专家模式开启时间介绍
- 魔兽世界永久60级哪个职业最强 魔兽世界永久60级职业推荐
- 上海Major赛事专属版显示器首次亮相PNL高校决赛
- 寻找中国“龙” 感受乐元素的“科普力”