How To Install Whereis On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Whereis On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

whereis

Locate the binary, source, and manual page files for a command.

Maintainer: LaMont Jones


Section: utils

Install whereis

  • Debian apt-get install util-linux Click to copy
  • Ubuntu apt-get install util-linux Click to copy
  • Alpine OS apk add util-linux Click to copy
  • Arch Linux pacman -S util-linux Click to copy
  • Kali Linux apt-get install util-linux Click to copy
  • CentOS yum install util-linux Click to copy
  • Fedora dnf install util-linux Click to copy
  • Raspbian apt-get install util-linux Click to copy
  • macOS brew install util-linux Click to copy

Locate the binary, source, and manual page files for a command.

How to use whereis?

Below are few example commands for whereis that you can use in the terminal.

Locate binary, source and man pages for ssh:
whereis sshClick to copy
Locate binary and man pages for ls:
whereis -bm lsClick to copy
Locate source of gcc and man pages for git:
whereis -s gcc -m gitClick to copy
Locate binaries for gcc in /usr/bin/ only:
whereis -b -B /usr/bin/ -f gccClick to copy
To install the latest version of whereis in your favorite operating system just copy the whereis installation command from above and paste it into terminal. It will download and install the latest version of whereis 2026 package in your OS.