问题描述
我的问题非常基础,我现在的知识也是如此.
My question is very basic, as is my knowledge right now.
我是 Linux 的长期用户,但最近才对编程产生了浓厚的兴趣.我看到 Ubuntu 存储库中的许多流行应用程序都有 -dev 包(例如,除了 pidgin 之外,还有 pidgin-dev).我的问题是:
I'm a long-time Linux user, but have only recently taken a major interest in programming. I see that many popular applications in the Ubuntu repositories have -dev packages (e.g. pidgin-dev in addition to pidgin). My question is this:
这些包裹里有什么?下载 pidgin-dev 如何帮助开发 Pidgin?是否像对为给定应用程序创建插件所需的工具进行依赖性检查一样简单?
What is in these packages? How does downloading pidgin-dev help one to develop for Pidgin? Is it as simple as a dependency check for the tools necessary to create the plugins for the given application?
我希望 -dev 包中有大量文档,但如果有,我不知道如何访问它.我正在考虑类似手册页的内容,但对编辑代码很有用.
I was hoping there would be a substantial amount of documentation in the -dev packages, but if there is, I can't figure out how to access it. I'm thinking of something like a man-page, but useful for editing code.
非常欢迎任何和所有建议!
Any and all advice more than welcome!
推荐答案
*-dev
包通常包含与库接口相关的头文件.接下来最常见的是描述构建选项和静态链接库的包配置文件 (*.pc
).
The *-dev
packages most often contain the headers related to a library's interface. Next most common are package-config files (*.pc
) describing build options and staticly linked libraries.
一般来说,如果您想知道已安装的软件包的内容,dpkg -L pkgname
会为您提供.apt-file
程序可以为存储库中的任何包告诉您相同的信息.
In general, if you want to know the contents of a package you have installed, dpkg -L pkgname
will get you that. The apt-file
program can tell you the same for any package in the repositories.
另外请注意,William Pursell 和 caf 的回答包含有用的附加细节.如果您觉得他们的意见有帮助,请点赞.
Note, also, that the answers by William Pursell and caf contain useful additional details. If you find their input helpful, do upvote it.
这篇关于Linux 包存储库中的 *-dev 包实际上包含什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!