How to install fd on CentOS

Even though fd home page does not show a way to install it on CentOS. It is actually possible to install it without compiling the source code.

On the release page, download musl linked binary package, e.g. fd-v7.3.0-x86_64-unknown-linux-musl.tar.gz.

Untar it, you will find the fd binary, man page and autocompletion script.

Use the following commands to install:

cp ./fd /usr/local/bin/
cp ./fd.1 /usr/local/share/man/man1/
mandb

That's it!