For CentOS/RHEL 7/8:
sudo yum install vim-common
For Fedora:
sudo dnf install vim-common
Below are the installation instructions for Linux, macOS, Windows (via WSL or Git Bash), and *BSD systems. xxd command not found
If you can’t install packages, you can download a static binary for your architecture:
# Example for Linux x86_64
wget https://github.com/vim/vim/raw/master/src/xxd/xxd.c
gcc -o xxd xxd.c
./xxd file.bin
Compiling from source requires a C compiler (gcc or clang). For CentOS/RHEL 7/8:
sudo yum install vim-common
If using WSL (Windows Subsystem for Linux), follow the Linux instructions for your distribution.
For Git Bash / MSYS2:
# Install MSYS2, then:
pacman -S vim
The xxd command is typically bundled with the text editor Vim (Vi IMproved). It is rarely a standalone package. The error usually indicates one of the following: