Fedora – find: command not found.
Got the above error on my Fedora 31 server while searching a directory. Find command is provided by findutils package. Do the below steps to install find command on Fedora server.
1. Log into Fedora server as ‘root’ user
2. Install findutils package using dnf command.
Command:
# dnf install findutils
OR
# sudo dnf install findutils
Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
findutils x86_64 1:4.6.0-25.fc31 updates 517 k
Transaction Summary
===================================================================================================
Install 1 Package
Total download size: 517 k
Installed size: 1.7 M
Is this ok [y/N]: y
Downloading Packages:
findutils-4.6.0-25.fc31.x86_64.rpm 43 kB/s | 517 kB 00:12
—————————————————————————————————
Total 37 kB/s | 517 kB 00:13
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : findutils-1:4.6.0-25.fc31.x86_64 1/1
Running scriptlet: findutils-1:4.6.0-25.fc31.x86_64 1/1
Verifying : findutils-1:4.6.0-25.fc31.x86_64 1/1
Installed:
findutils-1:4.6.0-25.fc31.x86_64
Complete!
Alternate method: Download and install findutils rpm
1. Log into Fedora server as ‘root’ user
2. Below dependency is needed findutils package, so make sure it is installed
Required dependency: glibc
3. You can download findutils package from fedoraproject.org website using wget command
wget https://download-ib01.fedoraproject.org/pub/fedora/linux/updates/31/Everything/x86_64/Packages/f/findutils-4.6.0-25.fc31.x86_64.rpm
3. Install findutils package using rpm command
# rpm -ivh findutils-4.6.0-25.fc31.x86_64.rpm