很多时候我们在一个机器上使用的某个命令,到另外一个机器上没有,那想安装在另外一个机器,需要知道它是属于哪个rpm的,比如redhat下有一个setup的命令,可以图形化的管理很多系统设置:
我们在另外一个可以的机器做个查询 rpm -qf 某个命令:
回到原先的机器:
如此就可以了!
参考阅读:http://hi.baidu.com/addcn/blog/item/6a18356c654066f3421694df.html
原创内容如转载请注明:来自 阿权的书房
[root@localhost www.aslibra.com]# setup
-bash: setup: command not found
[root@localhost www.aslibra.com]# yum -y install setup
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
addons | 951 B 00:00
base | 2.1 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Setting up Install Process
Package setup-2.5.58-7.el5.noarch already installed and latest version
Nothing to do
-bash: setup: command not found
[root@localhost www.aslibra.com]# yum -y install setup
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
addons | 951 B 00:00
base | 2.1 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Setting up Install Process
Package setup-2.5.58-7.el5.noarch already installed and latest version
Nothing to do
我们在另外一个可以的机器做个查询 rpm -qf 某个命令:
[root@gx www.aslibra.com]# which setup
/usr/sbin/setup
[root@gx www.aslibra.com]# rpm -qf /usr/bin/setup
setuptool-1.19.2-1.el5.centos
/usr/sbin/setup
[root@gx www.aslibra.com]# rpm -qf /usr/bin/setup
setuptool-1.19.2-1.el5.centos
回到原先的机器:
[root@localhost www.aslibra.com]# yum -y install setuptool
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package setuptool.x86_64 0:1.19.2-1.el5.centos set to be updated
--> Finished Dependency Resolution
//忽略部分文字
Installed:
setuptool.x86_64 0:1.19.2-1.el5.centos
Complete!
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package setuptool.x86_64 0:1.19.2-1.el5.centos set to be updated
--> Finished Dependency Resolution
//忽略部分文字
Installed:
setuptool.x86_64 0:1.19.2-1.el5.centos
Complete!
如此就可以了!
参考阅读:http://hi.baidu.com/addcn/blog/item/6a18356c654066f3421694df.html
原创内容如转载请注明:来自 阿权的书房
收藏本文到网摘
便捷方式用yum安装cacti
关于LD_DEBUG
