pkg-config相关的常用指令

pkg-config用途: 查询系统已安装库的基础信息(元信息)

1、查看所有的pkg-config库

   pkg-config --list-all

        --list-all      列出pkg-config路径下所有的模块
              List all modules found in the pkg-config path.

       --print-provides  列出给定包提供的所有模块
              List all modules the given packages provides.

       --print-requires   列出给定包所依赖的所有模块
              List all modules the given packages requires.

2、查询桌面linux中mate桌面的详细版本号

  pkg-config --modversion mate-desktop-2.0

       结果如下:

[root@localhost src]# pkg-config --modversion mate-desktop-2.0 
1.8.1

 

3、其他可通过通过man pkg-config查询所需要的指令使用方法

posted @ 2016-08-02 22:00  无边身尊者  阅读(933)  评论(0编辑  收藏  举报