Linux 软件包存储库中的 *​​-dev 软件包实际上包含什么? [英] What do the *-dev packages in the Linux package repositories actually contain?

查看:17
本文介绍了Linux 软件包存储库中的 *​​-dev 软件包实际上包含什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题很基础,我现在的知识也是如此.

My question is very basic, as is my knowledge right now.

我是 Linux 的老用户,但最近才对编程产生了浓厚的兴趣.我看到 Ubuntu 存储库中的许多流行应用程序都有 -dev 包(例如 pidgin-devpidgin).我的问题是这样的:

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 软件包实际上包含什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆