您好,登錄后才能下訂單哦!
這篇文章將為大家詳細講解有關Linux如何在線安裝軟件,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。
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如何在線安裝軟件”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,使各位可以學到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。