在centos中想运行setup命令来配置或查看某些参数,但遇到如下错误提示:
[root@loft4669 ~]# setup
-bash: setup: command not found
通常情况下,这是因为你安装的linux是minimal版,就是说最小安装,不包含某些工具包。
解决方法:yum
[root@loft4669 ~]# yum install setuptool
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package setuptool.i386 0:1.19.2-1.el5.centos set to be updated
–> Finished Dependency Resolution
Dependencies Resolved
====================================================
Package                          Arch                        Version                                       Repository                   Size
====================================================
Installing:
setuptool                        i386                        1.19.2-1.el5.centos                           base                         51 k
Transaction Summary
====================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 51 k
Is this ok [y/N]: y
Downloading Packages:
setuptool-1.19.2-1.el5.centos.i386.rpm                                                                                 |  51 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : setuptool                                                                                                              1/1
Installed:
setuptool.i386 0:1.19.2-1.el5.centos
Complete!