「APT」- 获取构建 deb 包的编译选项(configure) @20210128

问题描述

我们需要插件软件包的编译选项,以排查某些问题。

该笔记将记录:如何查看某些软件包的编译选项。

解决方案

系统环境:Kali GNU/Linux Rolling

1)配置deb的源码源,添加 deb-src 到 source.list 中:

deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

2)更新缓存,执行如下命令:

apt-get update

3)下载源码包,并查看配置:

apt-get download asterisk

# 查看下载的源码目录下的debian/rules文件,该文件包含了源码构建的configure参数。

参考文献

WikiNotes/获取构建 deb 包的编译选项(configure)
Where can I find the configure options used to build a package?


posted @ 2021-01-28 22:19  研究林纳斯写的  阅读(120)  评论(0编辑  收藏  举报