Resources on writing a Debian/Ubuntu deb package? [closed]

梦想与她 提交于 2019-12-03 03:17:38

问题


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.).

Can you recommend any tutorials/resources to help a newbie developer get started writing deb packages?

Update: Canonical has a thorough Packaging Guide which explains the process very well.


回答1:


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.




回答2:


Earlier question at stackoverflow:
How to build a Debian/Ubuntu package from source?

  • The HOWTO,
  • another article.
  • Creating packages for personal use (not for repositories)
  • UbuntuForum discussion on creating static packages



回答3:


If you plan to install some software with their dependencies, you don't really need to make a .deb package. A Shell script should work, calling the package manager to resolve dependencies, etc.

The default Shell on Ubuntu is Bash. If you don't know how to do it, here is a basic tutorial and an advanced guide.

Hope it helps.



来源:https://stackoverflow.com/questions/1165727/resources-on-writing-a-debian-ubuntu-deb-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!