Debian packages may seem simple to generate using the many bundling tools out there, but it is much more involved than that. There are policies and procedures in place before stuff can get into Debian, including how the package is made, what it must include, and more. This article aims to cover the stuff prospective contributors to Debian should know that other resources miss.
When I started, I didn't know a lot of this and had to learn a lot along the way. Hopefully what I've put together here will make it easier for the next person that comes along.
Find the right thing to work on
Packages are the bread and butter of Debian, so it may be the first place you look at. There are two ways to go: adopting or helping out with an existing package, or introducing a new package.
Outside of packaging, contributing to Debian's infrastructure is also very much welcomed and appreciated, especially as a lot of it is decades old. Some examples include Lintian (Debian package linter), DAK (archive software), and distro-tracker (package info tracker), and there are many, many other projects in need of help.
If you are a native speaker of any non-English languages, you may want to also consider helping translate stuff. Everything from the installer to mentors.debian.net to package descriptions needs volunteers to translate.
This article mainly focuses on the packaging side of things.
Working on an existing package
wnpp.debian.net lists packages that need help with maintenance.
The most useful thing you can do as someone interested in packaging is to help with an existing package. You can either:
Help other maintainers on an existing package. Maintainers will publish Request for Help (RFH) bugs asking for assistance to maintain a package. Some packages are so unruly that help is welcome even when not asked (e.g. Docker).
Adopt an orphaned package. An orphaned package is one where the previous maintainer could not continue maintaining it for whatever reason, and so it needs a new maintainer (or deletion). These are indicated by Orphaned (O) bugs. Request for Adoption (RFA) bugs are similar, as they mean the maintainer is about to orphan the package.
Some orphaned packages are effectively abandoned, being both unmaintained upstream and having no users in Debian, but many maintainers will choose to orphan these packages rather than remove them. Keep this in mind when looking through the list.
By the way, this is how I started contributing to Debian! With the help of a Debian Developer, I adopted kitty, and to this day I continue to maintain it.
Introducing a new package
Many people opt to start their Debian contribution journey through producing a new package for the Debian archive. Unfortunately, many people do not do this properly or try to use Debian as a dumping ground for their own software, so here is a general checklist to see if something belongs in Debian:
Repology shows an overview of a package across Linux distributions.
How established is the software, and is it still maintained? The longer a project has been around while continuing to be actively maintained, the more likely it is to continue to be maintained in the long-term.
How many people use the software? Hundreds? Thousands? How many people will benefit from the software being packaged and included in the Debian archive?
The point of packaging something for Debian is to make it easier for the existing userbase to install the software. For instance, as a user you generally expect notable software like Firefox and Vim to be available with a single
apt install, and it would be weird if you had to hunt down binary tarballs or build these from source.Do any other Linux distributions package the software? If yes, that's a good indicator it belongs in Debian as well. You can check this on https://repology.org.
Does the software introduce new or unique functionality not found in any other software currently present in the archive? It's okay if it doesn't, but there would be a much stronger case for a new package if the answer is yes.
Does the software have generally stable releases and proper versioning? If it doesn't, it's going to be a whole lot harder to create and maintain a package for it, considering Debian is a distribution that releases snapshots of software every 1-2 years with nothing but security updates for stable.
You also need to keep in mind that you should be prepared to maintain the software throughout the lifetime of the next Debian stable. Debian is not a rolling release distro. You cannot upload new versions of software to stable. The only thing you can upload to stable are fixes that meet the stable release team's criteria, and security fixes via the security archive, which you sometimes have to cherry-pick and backport if upstream does not provide them. And Debian packaging is not a one-off task; you should be ready to look after the package long-term, which consists mostly of updating the package in unstable for new upstream releases and fixing bugs.
Many people miss the memo. They bring their "revolutionary" app that they threw together (often vibe-coded) in a weekend and try to get it added to Debian. Project members mostly won't upload such packages; as a result, more useful packages may be drowned out. At the time of writing, I estimate around half of the open Request for Sponsorship (RFS) bugs is this kind of toy software with little to no real users.
If you've made something, great! Feel free to package it, but distribute it in your own external repo. Not everything belongs in Debian, and no Debian Developer has an obligation to sponsor and upload your package. Services like GitLab, and Forgejo (Codeberg) also have built-in repository features that let you easily create an external apt repository.
When looking at software that could potentially be packaged, also consider the amount of effort you may have to spend investigating licensing status and compiling copyright information. This is covered a bit later in this article.
Become familiar with Debian packaging
Now, you probably don't need read the Debian Policy and Debian Developer's Reference from cover to cover, but you should familiarise yourself with Debian packaging and the key infrastructure involved. Look at the important bits in the Policy and Developer's Reference.
Check out this list of packaging manuals and this introduction to packaging on mentors.debian.net for some additional material. There are also some great manual pages like deb-control(5), deb-src-control(5) (from dpkg-dev), debian-watch(5) (from devscripts), and dh(1) (from debhelper) describing some of the packaging files in detail. You can read these with the man program or at https://manpages.debian.org.
Look at other similar packages and pay attention to how they were made. Ask questions when you're unsure, people are always willing to answer on the debian-mentors mailing list and IRC channel.
Once you get a rough idea of how a Debian package works, it will feel natural working through packaging files.
By the way, you can read a lot of these documents offline: manpages can obviously be installed and read on your own machine, but the debian-policy and developers-reference packages (from unstable) will allow you to read the policy and reference offline as HTML in their respective directories under /usr/share/doc/.
Git-based packaging
People have many opinions on how to create a package, but by far the most popular is the GBP format for packaging in a git repo.
GBP stands for git-buildpackage, the tool behind this workflow, based[2] loosely on the DEP-14 proposal. Here, the upstream code is placed in an "upstream" branch (this is what goes in the .orig.tar.xz tarball), and the Debian-specific packaging work is placed in a "debian" branch (this is what goes in the .debian.tar.xz tarball).
Many people have different ideas of what these branches should be called: upstream vs upstream/latest, debian/latest vs debian/unstable vs debian/sid. It generally doesn't matter though as the end result will be the same either way.
Using a git repo for your packaging rather than just a DSC makes it easy to see and review the changes you've made, and allows others to easily get the package source with full history and contribute (when located in a permissive group on Salsa like debian/ or one of the many teams).
It goes without saying that you should maintain proper commit hygiene by separating changes into multiple commits, having meaningful commit messages, and avoiding force pushing whenever you can.
Commit messages do not need to have explanations like other projects may expect, but feel free to add one if you think it will help whoever is looking at your changes understand what's going on.
Keep in mind that you can and should use the gbp-dch-style meta tags, which are Gbp-Dch, Thanks, and Closes, documented in the gbp-dch(1) manpage:
Gbp-Dch: ignorewill not include your commit in the generated debian/changelog whengbp dchis executed.Gbp-Dch: fullwill include the extended description of your commit as well in the generated debian/changelog whengbp dchis executed.Thanks: John Doewill add a thankyou to the person named in the generated debian/changelog whengbp dchis executed. Useful when a commit is related to a bug report, patch or other useful contribution from someone else.Closes: #123456will add the relevant(Closes: #123456)in the generated debian/changelog whengbp dchis executed, to close one or more (comma-separated) bugs in the Debian Bug Tracker when the package is uploaded.This is the most important one, and should always be used even when not using GBP in an alternative workflow. Most groups on Salsa, including
debian/, have webhooks that will send an email to bug reports and tag them aspendingif a commit using this meta tag is pushed, which is great for notifying people that a fix is ready and about to be uploaded.Note: Don't bother trying to add
Closes:to your "Initial packaging" commit description; there is no need and debian/changelog should already close it in your initial packaging work.
Team maintenance
More and more packages are being moved into "team" maintenance with weak package ownership, over the traditional single-maintainer model with strong ownership. This allows everyone to help maintain a package through team uploads, rather than relying on the same people to remain active.
When it makes sense, you should try to maintain your package in a team, especially as it will have other contributors familiar with the topic or language that may be able to spot issues in your package others may miss.
Most packaging teams fit into two categories:
Language teams - these are teams that package software exclusively written in a specific programming language, and usually also maintain the toolchain for that language as well. Examples include the Go team, Python team, and Rust team. Many of these teams also have their own tooling to make packaging easier for these languages, like
dh-make-golanganddebcargo.Topic teams - these are teams that package software related to a certain topic or project, usually by contributors very interested in that topic. Examples include the Med Team, the Electronics Packaging Team, and the Debian Vim Maintainers.
Language-specific libraries like golang-*-dev packages should almost always be maintained in a language team, and packages centered around a project like Vim or Treesitter should be put in the related team if it exists. For all other cases, it is completely up to you. It usually does not matter which team you put it in, as long as you put it in a team, as you get the same benefits. Keep in mind, many teams have certain policies and guidelines for how packages within them should be maintained, so make sure to check that.
If you're maintaining stuff outside of a team, you should consider adding yourself to the LowThresholdNmu list to indicate that you are happy for people to follow a relaxed non-maintainer upload process when it comes to these packages.
Compiling copyright information
Upstream sometimes adds files taken from other projects, which must be documented in debian/copyright.
Every Debian package must include copyright information. In the packaging source, this is in debian/copyright, and this ends up being installed under /usr/share/doc/<package>/copyright on Debian systems.
This is important for a variety of reasons, some of which are:
- It establishes that the software is compliant with the Debian Free Software Guidelines (when in
main). - In the case of packages in the
contribandnon-freearchive areas, it helps people running mirrors or creating installation media (like install USBs) determine which software they are allowed to redistribute. - It helps people working in enterprise settings produce a Software Bill of Materials (SBOM).
- It provides a consistent source of licensing information for software installed on your system so that you, as the end user, don't have to hunt down this information yourself.
All new packages should follow the machine-readable debian/copyright specification to produce a consistent, complete copyright file that covers every file in the source package.
As a result, this can mean a lot of work hunting down copyright and license information, especially for large software projects. In fact, you will often spend more time on the debian/copyright file than the rest of the package combined when working on Debian packaging.
There are a range of copyright review tools to make your life easier when doing this work. Some of the highlights are:
- licensecheck - tool to try to detect the license of files passed to it
- licenserecon - uses licensecheck to compare detected licenses against those in debian/copyright and shows you the differences
- scan-copyrights - generate a preliminary copyright file using licensecheck, useful for finding stuff that got missed
When the licensing status of a file is unclear, you may have to ask the upstream author to clarify. Note that if something has no license (e.g. upstream does not specify a license at all for their project), it is considered "all rights reserved" and cannot be distributed in Debian.
Some projects will have vendored copies of some or all of their dependencies. When this is the case, you need to remove as much as possible and make the package use the libraries provided in Debian instead, as this is a Debian policy requirement (more info on this wiki page on embedded copies). Additionally, you may need to remove non-DFSG-compliant parts of upstream's source to ensure the package is DFSG-free. Both of these are done via repacking, which involves:
- Specifying the Files-Excluded field in debian/copyright, preferrably with a Comment as well on why it is being repacked.
- Modifying the tarball retrieved from upstream to remove these files. Some people do this by hand, but it is better to use either
mk-origtargz(from devscripts) to do this when you already have a tarball, where it will read and use Files-Excluded (refer to it's manpage), oruscan, which will download a new tarball using your debian/watch file and then runmk-origtargzon it. - Adding a
+dfsg(repackaged for DFSG reasons) or+ds(repackaged to remove vendored copies or other reason) suffix to the upstream version. This will appear in the name of the repackaged tarball (e.g.foo_1.2.3+ds.orig.tar.xz), and in the upstream part of the Debian version (e.g.1.2.3+ds-1, where1.2.3+dsis the upstream part). If you end up repacking the same version multiple times, you can add a numeric suffix (e.g.+ds2) to indicate this.
Also make sure to check if your package source contains binary files like images and PDFs, and to figure out if they have separate copyright and licensing status. Some of these files have their copyright information embedded within them. Of course, you can ignore build artifacts, as long as they are cleaned and rebuilt during package build.
Build and check your package
You should build your package in a clean unstable environment to ensure that your Build-Depends pull in all the required packages from the unstable repos. The best tool to do this is sbuild, which builds your package in an isolated unshare-based environment and allows easily running lintian and autopkgtest as well; this is the same tool used by the Debian build daemons (buildd) once your package is uploaded.
There is a great sbuild page on the wiki containing setup instructions and many useful tips.
There are many quality-checking tools available to catch common and not-so-common issues with your packaging. Using the sbuild configuration that the wiki page suggests, after each build it will automatically run:
- Lintian: static Debian package checker that analyses the outputted files (.deb, .dsc, .changes)
- Autopkgtest: tests your package as installed on a testbed system if your package defines them
- Piuparts: checks your package cleanly installs, upgrades and removes (useful for checking custom installation and removal scripts)
You should always check the output of these tools and ensure they pass. Debian Developers use these same tools when reviewing your packaging.
If you are able to and when it makes sense, you should also install the package onto your own system and check everything works correctly. Even if a package builds successfully, it may not actually work when installed.
Unless your package only produces Architecture: all packages, you may want to also check that it cross-compiles correctly. You are probably either reading this on an amd64 or arm64 device, so you can easily cross-compile to the other architecture using the --host option with sbuild. Ability to cross-compile is not a policy requirement, but it will be raised as a bug against your package if it fails to do so.
Adding on to that, if your package is not straightforward and it produces packages on multiple architectures (usually Architecture: any), you may want to also check that it compiles on all of Debian's release architectures (aka. official ports). You can do this using virtual machines (QEMU is probably the easiest), but if you can't do this for whatever reason (like your computer being too weak to run a VM or the long package build time), also note that Debian Developers have access to porterbox machines that can be used to check your package before upload.
Find a sponsor
New contributors cannot upload to and manipulate the Debian archive directly. Rather, they need a Debian Developer to do so on their behalf after reviewing all their work; this person is called the "sponsor".
If you are planning to maintain your package within a team, check if they have their own guidelines or policy for finding a sponsor, as this will likely be quicker than the traditional RFS process outlined below. For instance, in the Go team, sending an email to the mailing list is much better, especially since usually multiple packages need to be uploaded at once.
Outside teams, the usual method is to upload your package to mentors.debian.net, and then file a Request For Sponsorship (RFS) bug to ask for a sponsor. The mentors website has an overview and very clear instructions on properly filing an RFS and finding a sponsor.
Properly formatted RFS bugs go a long way.
When filing the RFS bug, make sure you follow the template exactly. Deviating from it or sending a misformatted email is one of the quickest ways for your RFS to be both ignored by humans and missed by automated tools, so double check that it actually has everything needed. Ensure each of these fields is filled correctly:
- Package name: This is the name of the source package set in debian/control.
- Version: The version of the package you want the sponsor to upload, usually the latest version in debian/changelog.
- Upstream contact: The contact info you put in the
Upstream-Contactfield in debian/copyright. This can be a name & email or a URL (e.g. to upstream's issues tracker). - URL: The homepage of upstream's website, usually from the
Homepagefield in debian/control. - License: List all the licenses present in debian/copyright, comma-separated.
- Vcs: The URL to your Git repo containing your packaging, which should be on salsa.debian.org and be set up accordingly in the Git-buildpackage format.
- Section: The value of
Sectionin debian/control for the source package.
Adding notes or comments to the end of the RFS message is fine, but make sure the rest of it follow the right format.
Things to keep in mind include:
- Do not file multiple RFS bugs, for any reason. If you have reuploaded your package or made a change, you can send a follow-up to the same bug.
- If you want to change the name of your RFS (e.g. following a change in the name of the package), modify the tags or anything else, you can send commands via email to the Bug Tracking System (BTS).
- Your RFS bug will only be closed if the package is uploaded or someone decides your package should not be uploaded.
- Do not change the
Package:field at the top of the email fromsponsorship-requests, this tells the BTS that your bug report should be filed againstsponsorship-requestsand not some package in the archive. - The
Severity:field at the top of the email should be "wishlist" for new packages, "important" for updates fixing Release-Critical (RC) bugs, and "normal" for everything else. - Skipping the bug and sending an email directly to the debian-mentors mailing list is a great way for your RFS to be ignored, especially since automated tools will not be able to pick it up.
- Format the bug's title correctly. It needs to be
RFS: name/version [ITP/ITA/RC/NMU] -- short description. Again, this is helpful for automated tools when they try to figure out what your RFS means. Examples include:RFS: qiv/3.0.4-1 [ITA] -- Quick image viewerRFS: wattsi/0.0~git20251112.d8caa36+dfsg-1 [ITP] -- Preprocessor for the HTML Standard
Now, when filed properly, an interested sponsor may come along and review your package, then either upload your package or send you feedback to iterate on before that. Ensure you watch for responses to your RFS and respond promptly.
Note there is no obligation for anyone to upload your package, and that anyone can review your package but only Debian Developers can upload it for you.
The Lintian output given by the Mentors website was usually right, but at the time of writing the website is using an outdated version of Lintian, so many of the hints it gives are incorrect. For the most up-to-date output, it's best to run Lintian from unstable on your own machine (which sbuild does for you).
Next steps
If your package is new to Debian, it will head to the NEW queue for manual review. Here, the DFSG team primarily checks that the package is compliant with the Debian Free Software Guidelines and is suitable for "main", but also check for mistakes in debian/copyright and obvious/major packaging issues.
Once your package is uploaded, whether new or existing, and you are named maintainer, you are in charge of looking after it, including new upstream version uploads to unstable, bug fixes, and security fixes. This mostly involves updating and cherry-picking fixes from upstream, but occasionally it gets interesting and you need to dive into the packaging to figure out what's going on and fix the issue.
You should try to work towards becoming a Debian Maintainer at the very least in order to easily maintain packages long-term. As a DM, you can be granted upload permissions on a per-package basis for your existing packages so that you don't have to rely on sponsors forever. Having this goal can also appeal to sponsors.
Have fun packaging!
(Opinion) What I look for in an RFS
This is not definitive, but I usually scan for these indicators:
- Upstream and the packager being the same person is usually a red flag for a low-quality package. Exceptions can be made when it makes sense and this would actually be a benefit, but this is rare.
- Properly formatted BTS bug, which shows ability to follow a simple guide.
- The software existing in other Linux distros is a good sign.
- Packaging VCS should be up-to-date, located on Debian Salsa, and follow Git-buildpackage / DEP-14 format. Deviations should only occur for a good reason. Only experienced packagers should really be experimenting with alternative Git styles like dgit-maint-merge etc.
- I can understand what it does just from the package's full description, without having to go to upstream, since this helps me gauge whether I am interested in sponsoring the package. This is not always the case, since packages sometimes come through of a technical nature (usually kernel-related or maths/science packages) where I wouldn't be able to understand no matter how hard I try.
- Updates to existing packages and adoptions (ITAs) are easier to sponsor than new packages since it doesn't have to go through the NEW queue and does not need to justify its addition to the archive.
Common misconceptions about Debian
Debian Developers and Debian Maintainers speak for themselves, not for the project. They are just people who happen to have some permissions in the project.
The only official way to put forward the position of the Debian Project as a whole on a particular issue is through a General Resolution as per Debian's constitution. Other official sources include those maintained by the Publicity Team delegates, such as Debian News and Bits from Debian.
Also note that delegates for a certain team can speak on behalf of that team. In this case, they usually get consensus within that team before making such statements.
The only formal, official "teams" in Debian are those delegated by the project leader, listed at https://www.debian.org/intro/organization.
Debian does not have a "legal team", the debian-legal mailing list is for discussion about licensing.
There is no "Debian Team", it's just a bunch of contributors working together to deliver a quality collection of packages. Packaging teams are informal, as they are not delegated; rather, they are people working on a certain category of packages under one roof.
Keep in mind contributors are all volunteers, with most not getting paid to work on Debian. Debian is owned by a non-profit and relies on donations, rather than a company like Ubuntu and Canonical. The Debian constitution explicitly states that no contributor is obligated to do anything.



























![[Several months later] Actually, it looks like what it hit a few months ago was just the START of the crystal sphere zone. New data confirms Voyager 1 has now struck the ACTUAL crystal sphere. [Several months later] Actually, it looks like what it hit a few months ago was just the START of the crystal sphere zone. New data confirms Voyager 1 has now struck the ACTUAL crystal sphere.](https://imgs.xkcd.com/comics/voyager_crash.png)









Time flies so fast. It's November.
Busiest time of the year?


















out' position" alt="The whole CR box assembled, with the fan in the 'in -> out' position">
