ubuntu 查看.h属于哪个包

如果本地有对应文件 ,如查看nss.h,

:~/rv3128/tool/xbmc/tools/android/depends/nssmdns$ dpkg-query -S /usr/include/nss.h     
libc6-dev:amd64: /usr/include/nss.h

也可以查看命令等


如果本地没有对应文件,通过apt-file查询。先安装apt-file

sudo apt-get install apt-file

apt-file update

然后查询

$ apt-file search nss.h
doc-linux-ja-html: /usr/share/doc/HOWTO/ja-html/LDAP-Implementation-HOWTO/pamnss.html
gnucash-docs: /usr/share/doc/gnucash-docs/gnucash-help-en/chapter_busnss.html
libapache2-mod-nss: /usr/share/doc/libapache2-mod-nss/mod_nss.html
libc6-dev: /usr/include/nss.h
libc6-dev-arm64-cross: /usr/aarch64-linux-gnu/include/nss.h
libc6-dev-armel-cross: /usr/arm-linux-gnueabi/include/nss.h
libc6-dev-armhf-cross: /usr/arm-linux-gnueabihf/include/nss.h
libc6-dev-hppa-cross: /usr/hppa-linux-gnu/include/nss.h
libc6-dev-m68k-cross: /usr/m68k-linux-gnu/include/nss.h
libc6-dev-mips-cross: /usr/mips-linux-gnu/include/nss.h
libc6-dev-mips64-cross: /usr/mips64-linux-gnuabi64/include/nss.h
libc6-dev-mips64el-cross: /usr/mips64el-linux-gnuabi64/include/nss.h
libc6-dev-mipsel-cross: /usr/mipsel-linux-gnu/include/nss.h
libc6-dev-powerpc-cross: /usr/powerpc-linux-gnu/include/nss.h
libc6-dev-powerpcspe-cross: /usr/powerpc-linux-gnuspe/include/nss.h
libc6-dev-ppc64-cross: /usr/powerpc64-linux-gnu/include/nss.h
libc6-dev-ppc64el-cross: /usr/powerpc64le-linux-gnu/include/nss.h
libc6-dev-s390x-cross: /usr/s390x-linux-gnu/include/nss.h
libc6-dev-sh4-cross: /usr/sh4-linux-gnu/include/nss.h
libc6-dev-sparc64-cross: /usr/sparc64-linux-gnu/include/nss.h
libc6.1-dev-alpha-cross: /usr/alpha-linux-gnu/include/nss.h
libnss3-dev: /usr/include/nss/nss.h
libp11-kit-dev: /usr/share/gtk-doc/html/p11-kit/trust-nss.html
ofono-dev: /usr/include/ofono/gnss.h
pike7.8-reference: /usr/share/doc/pike7.8-doc/html/reference/ex/predef_3A_3A/Parser/XML/NSTree/NSNode/get_defined_nss.html
pike8.0-doc: /usr/share/doc/pike8.0-doc/html/reference/ex/predef_3A_3A/Parser/XML/NSTree/NSNode/get_defined_nss.html
systemtap-doc: /usr/share/doc/systemtap-doc/tapsets/API-stap-cache-add-nss.html
thunderbird-dev: /usr/include/thunderbird/nss/nss.h


阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ssj901217/article/details/80688932
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭