ifconfig command not foundの解決
2438 ワード
1.ifconfigコマンドが提供されているパッケージを特定
2.出力サンプルからnet-toolsパッケージはifconfigコマンドを提供していることがわかるので、ifconfigコマンドを使用するためにnet-toolsパッケージのみをインストールします.
3.net-toolsパッケージをインストールし、インストールが完了したらifconfigコマンドを使用できます
yum provides ifconfig
2.出力サンプルからnet-toolsパッケージはifconfigコマンドを提供していることがわかるので、ifconfigコマンドを使用するためにnet-toolsパッケージのみをインストールします.
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/4): base/7/x86_64/group_gz | 156 kB 00:00:00
(2/4): extras/7/x86_64/primary_db | 130 kB 00:00:00
(3/4): base/7/x86_64/primary_db | 5.7 MB 00:00:04
(4/4): updates/7/x86_64/primary_db | 3.6 MB 00:00:44
Determining fastest mirrors
* base: mirrors.aliyun.com
* extras: mirrors.cn99.com
* updates: centosr4.centos.org
base/7/x86_64/filelists_db | 6.7 MB 00:00:04
extras/7/x86_64/filelists_db | 494 kB 00:00:00
updates/7/x86_64/filelists_db | 2.1 MB 00:00:03
net-tools-2.0-0.22.20131004git.el7.x86_64 : Basic networking tools
Repo : base
Matched from:
Filename : /sbin/ifconfig
3.net-toolsパッケージをインストールし、インストールが完了したらifconfigコマンドを使用できます
yum install net-tools