编写 Debian/Ubuntu deb 包的资源? [英] Resources on writing a Debian/Ubuntu deb package?
问题描述
我开始准备将软件包安装到 Ubuntu 服务器上的安装脚本.我想编写一个脚本作为 .deb 包,它知道必须事先安装的依赖项(数据库、Web 服务器等).
I'm getting started preparing an installation script for a software package onto an Ubuntu server. I would like to write a script as a .deb package that is aware of dependencies that must be installed beforehand (a database, web server, etc.).
您能否推荐任何教程/资源来帮助新手开发人员开始编写 deb 包?
Can you recommend any tutorials/resources to help a newbie developer get started writing deb packages?
更新:Canonical 有一个详尽的打包指南,它很好地解释了这个过程.
Update: Canonical has a thorough Packaging Guide which explains the process very well.
推荐答案
如果你对构建 Debian 包完全陌生,我建议你看看 Debian 新维护者指南 并使用 Debian 开发者参考资料 作为参考.作为起点,dh_make
(来自 dh-make
包)应该为您提供一个很好的模板.
If you are entirely new to building Debian packages, I suggest that you look at the Debian New Maintainers' Guide and use the Debian Developer's Reference as reference. As a starting point, dh_make
(from the dh-make
package) should give you a good template to work with.
这篇关于编写 Debian/Ubuntu deb 包的资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!