1,查找安裝包
[[email protected] network-scripts]# yum search ifconfig
已加載插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
============================================================= 比對:ifconfig ==============================================================
net-tools.x86_64 : Basic networking tools
2,安裝安裝包
[[email protected] network-scripts]# yum install net-tools.x86_64
已加載插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 net-tools.x86_64.0.2.0-0.17.20131004git.el7 将被 安裝
--> 解決依賴關系完成
依賴關系解決
===========================================================================================================================================
Package 架構 版本 源 大小
===========================================================================================================================================
正在安裝:
net-tools x86_64 2.0-0.17.20131004git.el7 base 304 k
事務概要
===========================================================================================================================================
安裝 1 軟體包
總下載下傳量:304 k
安裝大小:917 k
Is this ok [y/d/N]: y
Downloading packages:
net-tools-2.0-0.17.20131004git.el7.x86_64.rpm | 304 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安裝 : net-tools-2.0-0.17.20131004git.el7.x86_64 1/1
驗證中 : net-tools-2.0-0.17.20131004git.el7.x86_64 1/1
已安裝:
net-tools.x86_64 0:2.0-0.17.20131004git.el7
完畢!