CentOS setup命令安装


CentOS : setup: command not found

CentOS 6.0如果minimal install,也就是最小化安装,当你想运行setup命令配置IP时,你会发现报错:

-bash: setup: command not found

我直接用ifconfig和route命令添加了IP和路由,测试可以ping通外网了。

GoFace曾经向大家介绍过解决方法,新手可以了解一下。

你的第一反应是yum install setup,会提供Nothing to do。思路如下:

[root@localhost ~]# yum whatprovides /usr/sbin/setup

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.163.com

* extras: mirrors.163.com

* updates: mirrors.163.com

setuptool-1.19.9-3.el6.x86_64 : A text mode system configuration tool

Repo        : base

Matched from:

Filename    : /usr/sbin/setup

setuptool-1.19.9-3.el6.x86_64 : A text mode system configuration tool

Repo        : installed

Matched from:

Other       : Provides-match: /usr/sbin/setup

#yum install setuptool

这时测试可以使用setup命令了。

[root@localhost ~]# rpm -qf /usr/sbin/setup

setuptool-1.19.9-3.el6.x86_64

相关内容