Differences between revisions 1 and 107 (spanning 106 versions)
Revision 1 as of 2006-07-22 22:52:27
Size: 33
Editor: EddyPetrisor
Comment: most popular search term should be occupied
Revision 107 as of 2021-06-27 03:49:13
Size: 9070
Editor: PaulWise
Comment: fix link to debmake-doc
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#REDIRECT HowToPackageForDebian #language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[es/Packaging|Español]] - [[pt_BR/Packaging|Português (Brasil)]] - [[it/Packaging|Italiano]] - [[sv/Packaging|Svenska]] - [[ru/Packaging|Русский]]-~
<<BR>>
||<tablestyle="width: 100%; text-align: center; border: 0px hidden"> {{https://www.debian.org/logos/openlogo-nd-50.png}} {{https://www.debian.org/Pics/debian.png}}||
||<style="border: 0px hidden">~+{{attachment:Portal/IDB/logo_portal.png}} Welcome to [[Debian]] '''packaging portal'''+~||
----

{{attachment:Portal/IDB/icon-template-32x32.png}} This portal is about ''' information relevant to developers wishing to package [[Software|software]] for Debian.''' If you were looking for information on installing and removing packages from your Debian system, see the [[PackageManagement|package management]] page.

Debian [[Software|packages]] are maintained by a community of Debian Developers and volunteers.


{{{#!wiki debian
If you're just starting out with Debian packaging, please read the official documentation first:<<BR>>
[[https://www.debian.org/doc/manuals/maint-guide/index.en.html|the Debian New Maintainers' Guide]] -- tutorial for simple package<<BR>>
[[https://www.debian.org/doc/devel-manuals#packaging-tutorial|Debian Packaging Tutorial]] -- slides-based overview of Debian packaging<<BR>>
[[https://www.debian.org/doc/debian-policy/|Debian Policy]] -- guiding rules<<BR>>
[[https://www.debian.org/doc/manuals/developers-reference/|Developers Reference]] -- advanced guide etc.<<BR>>
[[https://mentors.debian.net/intro-maintainers/| Introduction for maintainers: How will my package get into Debian?]]<<BR>>
}}}

<<TableOfContents()>>


----


== Introduction to Debian Packaging ==

To get a good grounding in Debian packaging:
  * first read the excellent [[IntroDebianPackaging|introduction to Debian Packaging]] to build a package from scratch,
  * you can also look at the [[BuildingTutorial|building tutorial]] to apply changes to an existing package.
  * if you are new to debian, then [[/Pre-Requisites|setting up debian unstable system]] can help you setup a development environment.

Now that you have seen the basics, it is highly recommended that you read some real stuff:

 * [[https://www.debian.org/doc/manuals/debmake-doc/index.en.html|Guide for Debian Maintainers]] describes the building of a Debian package with many examples
 (This replaces outdated [[https://www.debian.org/doc/manuals/maint-guide/index.en.html|the Debian New Maintainers' Guide]] )
 * [[https://www.debian.org/doc/debian-policy/|the Debian Policy]] includes technical requirements that each package must satisfy.
 * More than anything, please also check the source code of existing recently updated packages of similar kinds.

Then, if you are looking for answers, you can come back here or read:
  * the interesting pdf file included in the package [[DebianPkg:packaging-tutorial|packaging-tutorial]] or you can read it [[https://www.debian.org/doc/manuals/packaging-tutorial/|here]].
  * [[https://www.debian.org/doc/manuals/developers-reference/|The Developers Reference]] provides an overview of the recommended procedures and the available resources for Debian developers.

What not to do:
  * There are no shortcuts to learning good packaging practices. Avoid [[DebianPkg:equivs]] which is only useful for building trivial metapackages and does not teach you anything about packaging.


== Packaging Procedures ==

=== Types / Formats ===

 * [[AndroidTools]] - Android tools
 * [[Fonts/PackagingPolicy]] - Fonts
 * [[https://go-team.pages.debian.net/packaging.html]] - Golang libraries and applications
 * [[Teams/DebianHaskellGroup]] - Haskell environment and libraries
 * [[Java/Packaging]] - Java libraries and applications
 * [[Javascript/Policy]] - JavaScript libraries and applications
 * [[https://salsa.debian.org/lua-team]] - Lua modules
 * [[Teams/DebianMonoGroup/NewPackage]] - Mono libraries and applications
 * [[Teams/DebianMozExtTeam]] - Mozilla extensions
 * [[Teams/OCamlTaskForce]] - OCaml libraries
 * [[Python/Packaging]] - Python modules and applications
 * [[Teams/Ruby/Packaging]] - Ruby modules and applications
 * [[Teams/RustPackaging]] - Rust crates and applications
 * [[RPM]] - repackaging RPM packages as .deb packages


=== Tools ===

 * [[UsingQuilt]] - Patch management
 * [[PackagingWithDarcs]] - Darcs version control
 * [[PackagingWithGit]] - Git version control
 * [[Packaging/sbuild]] - sbuild clean build tool
 * [[Packaging/debspawn]] - debspawn clean build tool
 * [[PbuilderTricks]] - Pbuilder clean build tool
 * [[SecurePbuilder]] - Secure Pbuilder builder tool
 * [[Packaging/ruby-team-meta-build]] - build scripts used by ruby team, helps testing reverse dependencies easily


=== Advanced Procedures ===

 * [[AdvancedBuildingTips]] - Advanced building tips
 * [[Courses2005/BuildingWithoutHelper]] - How to make a Debian package without using a helper
 * [[/HackingDependencies]] - hacking dependencies
 * [[/ComplexWebApps]] - Create debian packages for complex web applications
=== Useful Pages ===

 * [[PackagingFAQ]] - Packaging FAQ
 * [[Mentors]] - sponsors/mentors for packages in specific areas of Debian
 * [[Renaming_a_Package]] - Renaming a Package
 * [[PackageTransition]] - Package Transition
 * [[DpkgDiversions]]
 * BzrBuildpackage/DesignIdeas
 * [[PkgSplit]] - How to split a package into smaller packages
 * [[Repackage_srcrpm]] - creating a proper Debian source package while referencing the src.rpm package
 * [[DebugPackage]] - Debug Package
 * [[PackageArchitectureAlmostAny]] - Creating package without some particular architectures for easy porting
 * [[ConfigPackages]] - Config Package
 * [[DpkgConffileHandling]] - Gracefully Handling conffiles
 * [[EditingBinaryPackageMetadata]] - Editing Binary Package Metadata
 * [[SoftwarePackaging]] - Software Packaging
 * [[SponsorChecklist]] - Sponsor Checklist
 * [[HowToPackageForDebian]] - How to package for Debian
 * [[AutomaticPackagingTools]] - Automatic Packaging Tools
 * [[DEX]] - improving Debian and its derivatives through cross-community teamwork
 * [[Repacking]] - Collecting information about repacking
 * AutomakeTransition
 * [[PackageConfigUpgrade]] - propose a new way to smoothly handle configuration upgrades during package upgrades
 * DataPackages
 * [[Diagrams]] - packaging related diagrams and sketches
 * [[WNPP]] - ''Work-Needing and Prospective Packages'' list packages that have been requested for packaging, or need a new maintainer
 * [[Salsa]] - collaborative development server for Debian based on the GitLab software
 * [[CheckInstall]] - Build binary .deb packages from installation scripts (`make install`...)
 * [[SimpleBackportCreation]] - Backport a DebianUnstable package to DebianStable

== Training Sessions ==

=== From Debian Women ===

[[DebianWomen]] organise [[DebianWomen/Projects/Events/TrainingSessions|training sessions]].


== External links ==

 * https://feeding.cloud.geek.nz/posts/whats-in-a-debian-directory/ - What's in a debian/ directory
 * https://github.com/dod38fr/config-model/wiki/Managing-Debian-packages-with-cme - Managing Debian package files with cme
 * https://packaging.ubuntu.com/ - Ubuntu Packaging Guide
 * https://www.debian.org/doc/manuals/apt-howto/ - APT HOWTO (Obsolete Documentation)
 * https://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Debian-Binary-Package-Building-HOWTO.html Debian Binary Package Building HOWTO (2005)
 * [[https://about.gitlab.com/blog/2016/10/12/automated-debian-package-build-with-gitlab-ci/|How to build and deploy a Debian Package with GitLab CI]]
 * [[https://github.com/jordansissel/fpm|fpm]] can build .deb packages from various other package formats ([[https://github.com/jordansissel/fpm/wiki/ConvertingGems|rubygems]], [[https://github.com/jordansissel/fpm/wiki/ConvertingPython|pip]], pear, tar, npm, pacman...)
 * [[https://wiki.ubuntu.com/Packaging|Packaging - Ubuntu Wiki]]
 * [[https://www.eyrie.org/~eagle/notes/debian/build-tools.html|Debian build tools - Russ's Debian Notes]]
 * [[https://www.eyrie.org/~eagle/notes/debian/scripts.html|Packaging Scripts for Debian - Russ's Debian Notes]]


=== See also: ===

 * [[https://www.debian-administration.org/articles/336|Debian adminstration - Rolling your own Debian packages (part 1)]]
 * [[https://lists.debian.org/msgid-search/20061129152824.GT2560@mails.so.argh.org|Autobuilding non-free packages]]
 * [[https://www.strangeparty.com/2010/06/17/a-debian-packaging-howto/|A Debian packaging howto (2010)]]
 * [[https://raphaelhertzog.com/2010/12/17/do-not-build-a-debian-package-with-dpkg-b/|Avoid a newbie packager mistake: don’t build your Debian packages with dpkg -b]]


== Wiki pages ==

All pages related to packaging in Debian:

<<FullSearch(language:en category:CategoryPackaging)>>


----

CategoryPackaging | CategoryPortal

Translation(s): English - Español - Português (Brasil) - Italiano - Svenska - Русский

https://www.debian.org/logos/openlogo-nd-50.png https://www.debian.org/Pics/debian.png

Portal/IDB/logo_portal.png Welcome to Debian packaging portal


Portal/IDB/icon-template-32x32.png This portal is about information relevant to developers wishing to package software for Debian. If you were looking for information on installing and removing packages from your Debian system, see the package management page.

Debian packages are maintained by a community of Debian Developers and volunteers.

If you're just starting out with Debian packaging, please read the official documentation first:
the Debian New Maintainers' Guide -- tutorial for simple package
Debian Packaging Tutorial -- slides-based overview of Debian packaging
Debian Policy -- guiding rules
Developers Reference -- advanced guide etc.
Introduction for maintainers: How will my package get into Debian?


Introduction to Debian Packaging

To get a good grounding in Debian packaging:

Now that you have seen the basics, it is highly recommended that you read some real stuff:

Then, if you are looking for answers, you can come back here or read:

What not to do:

  • There are no shortcuts to learning good packaging practices. Avoid equivs which is only useful for building trivial metapackages and does not teach you anything about packaging.

Packaging Procedures

Types / Formats

Tools

Advanced Procedures

Useful Pages

Training Sessions

From Debian Women

DebianWomen organise training sessions.

See also:

Wiki pages

All pages related to packaging in Debian:

  1. AdvancedBuildingTips
  2. Alioth
  3. AndroidTools
  4. AutomakeTransition
  5. AutomaticPackagingTools
  6. BuildingFormalBackports
  7. BzrBuildpackage/DesignIdeas
  8. CheckInstall
  9. ConfigPackages
  10. Courses2005/BuildingWithoutHelper
  11. CreatePackageFromPPA
  12. DEX
  13. DataPackages
  14. DebianAstro/AstropyPackagingTutorial/Packaging
  15. DebianAstro/AstropyPackagingTutorial/Preparation
  16. DebianDevelopment
  17. DebianMentorsFaq
  18. DebianPackageManagement
  19. DebianPackaging-FAQs
  20. DebugPackage
  21. DevelopersCorner
  22. Diagrams
  23. Distcc
  24. DpkgConffileHandling
  25. DpkgDiversions
  26. EditingBinaryPackageMetadata
  27. EmacspeakTestingGuide
  28. FTBFS
  29. Fonts/PackagingPolicy
  30. Games
  31. Games/Sponsors/Queue
  32. GettingPorted
  33. GitPackaging
  34. GitPackagingSurvey
  35. GitPackagingSurvey/bare debian
  36. GitPackagingSurvey/bare debian monorepo
  37. GitPackagingSurvey/bare template
  38. GitPackagingSurvey/git-debcherry
  39. GitPackagingSurvey/git-debrebase
  40. GitPackagingSurvey/git-dpm
  41. GitPackagingSurvey/manually maintained applied
  42. GitPackagingSurvey/merging
  43. GitPackagingSurvey/modified orig plus further unapplied patches
  44. GitPackagingSurvey/rebasing
  45. GitPackagingSurvey/unapplied
  46. GitSrc
  47. HardeningWalkthrough
  48. HowToPackageForDebian
  49. Java/Packaging
  50. Javascript/Policy
  51. Maintainers
  52. MediaWiki
  53. Mentors
  54. Mingw-W64
  55. NonMaintainerUpload
  56. PackageArchitectureAlmostAny
  57. PackageConfigUpgrade
  58. PackageTransition
  59. Packaging
  60. Packaging/BinaryPackage
  61. Packaging/HackingDependencies
  62. Packaging/Intro
  63. Packaging/ruby-team-meta-build
  64. Packaging/sbuild
  65. PackagingFAQ
  66. PackagingWithDarcs
  67. PackagingWithDocker
  68. PackagingWithGit
  69. PbuilderTricks
  70. PkgExim4UserFAQ
  71. Projects/DebSrc3.0
  72. Python/DbgBuilds
  73. Python/LibraryStyleGuide
  74. Python/Policy
  75. RPM
  76. RenamingPackages
  77. Repackage_srcrpm
  78. Repacking
  79. ReproducibleBuilds
  80. Salsa
  81. SecurePbuilder
  82. SimpleBackportCreation
  83. SimplePackagingTutorial
  84. SoftwarePackaging
  85. SponsorChecklist
  86. Teams
  87. Teams/CUPS
  88. Teams/DebianHaskellGroup
  89. Teams/DebianMonoGroup/NewPackage
  90. Teams/DebianMozExtTeam
  91. Teams/Foo2zjs
  92. Teams/MySQL
  93. Teams/MySQL/MySQL-wsrep
  94. Teams/OCamlTaskForce
  95. Teams/Printing
  96. Teams/Ruby/Packaging
  97. UsingQuilt
  98. WNPP
  99. binNMU
  100. debian/patches
  101. debian/watch
  102. pt_PT/Teams


CategoryPackaging | CategoryPortal