标签:inux upd rpm yum命令 you node nod RoCE bash
linux安装软件时提示缺包或缺文件,自己用不知软件名或包名,这时该怎么办?下面马上告诉你:用yum命令,前提是搭建好YUM源。
固定命令格式:
yum whatprovides filename #<====filename是文件名。就写上你要查的包或文件即可。
例子:
[root@linux-node1 ~]# yum whatprovides fuser
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
[root@linux-node1 ~]# fuser
-bash: fuser: command not found
[root@linux-node1 ~]# yum install psmisc -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Dependencies Resolved
Installing:
psmisc x86_64 22.20-15.el7 base 141 k
Install 1 Package
Total download size: 141 k
Installed size: 475 k
Downloading packages:
psmisc-22.20-15.el7.x86_64.rpm | 141 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : psmisc-22.20-15.el7.x86_64 1/1
Verifying : psmisc-22.20-15.el7.x86_64 1/1
Installed:
psmisc.x86_64 0:22.20-15.el7
Complete!
标签:inux upd rpm yum命令 you node nod RoCE bash
原文地址:http://blog.51cto.com/520527/2150641