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查询所需要的指令使用方法

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
猜你喜欢
  • 2022-02-25
  • 2022-12-23
  • 2021-05-26
  • 2022-01-09
  • 2022-12-23
  • 2021-05-16
相关资源
相似解决方案