如果我在 Debian 上寻找包含特定头文件的包,我可以运行apt-file search filename
来查找该包。这是一个例子:
$ apt-file search X11/Xlib.h
critcl: /usr/share/tcltk/critcl3.1.18/critcl_c/tcl8.4/X11/Xlib.h
emscripten: /usr/share/emscripten/system/include/X11/Xlib.h
ivtools-dev: /usr/include/IV-X11/Xlib.h
libghc-x11-dev: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.8.4/X11-1.9.1-HPfJisIvZwQBMLUniy0WBQ/Graphics/X11/Xlib.hi
libhugs-x11-bundled: /usr/lib/hugs/packages/X11/Graphics/X11/Xlib.hs
libnx-x11-dev: /usr/include/x86_64-linux-gnu/nx-X11/Xlib.h
libx11-dev: /usr/include/X11/Xlib.h
python-pycparser: /usr/share/python-pycparser/fake_libc_include/X11/Xlib.h
python3-pycparser: /usr/share/python3-pycparser/fake_libc_include/X11/Xlib.h
有什么等价的pacman
吗?
答案是
pacman -Fx filename
,如: