Skip to content

Instantly share code, notes, and snippets.

@jayendra13
Last active October 16, 2018 13:48
Show Gist options
  • Save jayendra13/313d5629ca8ebecff8e01ffd96e647e0 to your computer and use it in GitHub Desktop.
Save jayendra13/313d5629ca8ebecff8e01ffd96e647e0 to your computer and use it in GitHub Desktop.
# To query which package contains my file if installed
dpkg-query -S ASTConsumer.h
libclang-6.0-dev: /usr/lib/llvm-6.0/include/clang/AST/ASTConsumer.h
# if not installed search here
https://packages.ubuntu.com/
# More general case
# https://www.ostechnix.com/find-package-provides-specific-file-linux/
# Arch Linux, Antergos, Manjaro Linux
sudo pacman -S pkgfile
sudo pkgfile -u
pkgfile alisp.h
pkgfile -l alsa-lib # to list all packages by alsa-lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment