How to package software

Contribute DEB packages
Forum rules
No support questions here please

How to package software

Postby bgroenks96 on Sun Dec 29, 2013 8:02 pm

I'm fairly confused about how to package and install software for all Linux distributions, although most importantly Ubuntu/Mint.

To be clear, I'm talking about how to create my own packages for software that I have written, whether it's in C, Python, Java, etc.

I don't know that much about make or configure files, nor do I know much about GNU's autoconf and automake. For learning purposes, I really just want to find a simple, laid-out procedure for packaging source files, specifying installation directories and dependencies, and ideally, publishing said package on a PPA.

I've found plenty of tutorials online just for compiling and building from software sources (which I already know how to do), but I haven't been able to find much on actually creating these source packages and config/make files. I just need somwhere to start. My goal is to eventually be able to contribute to the LM project once I better understand actually building Linux packages.

I would really appreciate any help you can give me on this, including links to any good tutorials I may have missed.
Level 1
Level 1
Posts: 6
Joined: Tue Nov 27, 2012 4:53 pm

Linux Mint is funded by ads and donations.

Re: How to package software

Postby xenopeek on Mon Dec 30, 2013 5:31 am

PPAs are hosted on Launchpad and Launchpad is actually a build service. You upload your source package and Launchpad will compile the software for your from the source package and build the binary packages (for all the supported architectures).

Launchpad has extensive help documentation for that: Ultimately if you follow the links this will link you to the Ubuntu Packaging Guide: See also the the there referred Debian New Maintainers' Guide:

A lot of reading and not a simple as with certain other packaging systems, but once learned how to build Debian packages it's a valuable skill.
Forum Rules | IRC Channel Rules
Arch Linux / 64-bit / Gnome Shell
User avatar
Level 21
Level 21
Posts: 13703
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Return to Packages

Who is online

Users browsing this forum: No registered users and 1 guest