Linux Format

How to roll your own Linux packages

Credit: https://antumdeluge.github.io/debreate-web

The open source ecosystem provides us with such a bounty of great software. And while modern distributions have come a long way in collecting everything a typical user might want, you may still find something that’s “not in the repos.” And while you can just compile it and plonk it down on your system, in this article we’ll explore a couple of ways to make it fit in nicely with the rest of your software.

Distribution publishers also do a great job of collecting the best of open source software in their repos. Fedora contains an estimated 15,000 packages in its main repo alone, while Ubuntu boasts over 60,000. So why not use the ones they provide? There might be a couple of very good reasons you’d want to have software packaging in your pocket.

The most obvious reason to roll your Linux packages is for your own software. This needn’t be anything fancy… it could just be a useful script you created that you’d like to install to the system proper instead of just your ~/bin directory. Of course, you may also want to distribute it to a wider audience.

Furthermore, your distro’s repositories may not include the program you want. And while you could install it in the “old school” fashion (see boxout, right), installing a package gives you a clean way to manage it.

Finally, your distro may include the program in question, but at something less than the current version (especially if you’re running a Long Term Support version). You can always grab the most recent version of the binary and package it up to take advantage of the most recent features.

With these reasons in mind, we’ll look at a variety of easy-to-use-tools targeting major formats.

Anatomy of a package

There are a variety of package formats

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format9 min read
The Epochalypse
On 2nd November 2000, a man calling himself John Titor began posting on Art Bell’s BSS forums, claiming to be from the O future year of 2036. Titor painted a grim version of the 21st century, a cross between Pat Frank’s 1959 post-apocalyptic epic Ala
Linux Format1 min read
Ultimate Desktop Upgrade!
LXF316 will be on sale Tuesday 28th May 2024 Word processors that can help craft that novel you’ve always been talking about and organise large projects. Revive the old roleplaying system for a digital age as we recreate our own play-by-mail gaming
Linux Format3 min read
Kernel Watch
Linus Torvalds announced the fourth RC (Release Candidate) for what will become Linux 6.9 in another few weeks. In his announcement, he noted that there was “Nothing particularly unusual going on this week – some new hardware mitigations may stand o

Related Books & Audiobooks