Shell
    Bash
    Bash Config
    zsh
    Bracket
    Data Analysis
    Productivity
    Know Your Environment

dpkg

Updated: 2021-11-24

check where the command is coming from

$ dpkg -S /bin/ls

$ dpkg -S $(which ls)

$ dpkg -S /usr/bin/ssh
openssh-client: /usr/bin/ssh

$ dpkg -S /bin/grep
grep: /bin/grep

Note that

  • -S for search
  • -s for status

Get details about the package:

$ dpkg -s coreutils
coreutils: /bin/ls