Linux installation software prompts for missing or missing files, you do not know the software name or package name, then what to do? Let me tell you right now:
Use the Yum command, provided the Yum source is set up.
Fixed command format:
Yum whatprovides filename #<====filename is the file name. Just write the package or file you want to check.
Example:
[email protected] ~]# Yum whatprovides fuser
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.cn99.com
- Updates:mirrors.cn99.com
base/7/x86_64/filelists_db | 6.9 MB 00:00:02
epel/x86_64/filelists | Ten MB 00:00:03
extras/7/x86_64/filelists_db | 588 KB 00:00:01
updates/7/x86_64/filelists_db | 2.3 MB 00:00:02
Psmisc-22.20-15.el7.x86_64:utilities for managing processes on your system
Repo:base
Matched from:
Filename:/usr/sbin/fuser
[Email protected] ~]# Fuser
-bash:fuser:command not found
[email protected] ~]# Yum install psmisc-y
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
- Base:mirrors.aliyun.com
- Epel:mirrors.aliyun.com
- Extras:mirrors.cn99.com
- Updates:mirrors.cn99.com
Resolving Dependencies
--Running Transaction check
---> Package psmisc.x86_64 0:22.20-15.el7 'll be installed
--Finished Dependency Resolution
Dependencies resolved
=============================================================================================================== ==========================
Package Arch Version Repository Size
Installing:
Psmisc x86_64 22.20-15.EL7 Base 141 K
Transaction Summary
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!
What should I do when the Linux installation software is missing packets or missing files?