Questions tagged [packaging]

refers to the creation and maintenance of Debian or snap packages. Whether you are looking to update a package for your personal use or wondering how to get your software into the hands of Ubuntu users, this tag is for you.

Useful Links

Packaged Documentation

  • packaging-tutorialInstall packaging-tutorial
    • Installs to /usr/share/doc/packaging-tutorial/packaging-tutorial.pdf
  • ubuntu-packaging-guide
    • sudo add-apt-repository ppa:ubuntu-packaging-guide-team/ppa && sudo apt-get update && sudo apt-get install ubuntu-packaging-guide
    • Installs to /usr/share/doc/ubuntu-packaging-guide/html/index.html
706 questions
18
votes
2 answers

How and why to create -dbg, -dev, -doc packages?

I'm writing an Ubuntu package for a package which essentially provides a number of libraries and headers which then be used to build other software. The package also breaks up in smaller subpackages which are interdependent; in this sense the…
16
votes
2 answers

Dch non-interactive mode

I'm trying to find a way to run dch in non-interactive mode, in order to incorporate the debian/changelog file creation and manipulation within a shell script. It seems that only when running it with the argument -r "" it works (as specified here).…
10
votes
1 answer

Providing a customized config file for another package

We use Ubuntu at work and I will need to make the same configuration changes to many systems so I am packaging these. One of the configuration changes I need to make is setting lightdm to autologin. For me to package this change it seems I will need…
8
votes
2 answers

Is dh-make the standard way to build debian packages?

I've started creating a .deb package for my software a while back and the method I've stumbled upon then (I knew nothing about the domain) basically is like this: create a directory structure like this -- pkg-dir -- DEBIAN --…
8
votes
3 answers

How do I turn my source code into an Ubuntu package and how do I get it in the repositories?

I have written a program in C and I wish to create an Ubuntu .deb package. How do I do this? How do I get it included in the Ubuntu official repositories?
Zach
8
votes
2 answers

DEBIAN or debian in .deb package?

I am experimenting with creating a .deb package and am unsure about the file structure of a package. Is the directory that contains control, changelog, rules, etc supposed to be named DEBIAN or debian? I am using dpkg-deb to package it, and it seems…
7
votes
2 answers

Packaging: /usr/lib vs. /usr/lib/*-linux-gnu

I was building a new version of Spice within an LXC container, mostly for experimentation. However, one strange thing that I encountered was that make install installed libspice-server.so.1.9.0 into /usr/lib. The result was a nasty segfault when…
Chuck R
  • 4,918
6
votes
1 answer

How do I get debuild to put the binary in /usr/bin?

I have been recently trying to package a small Python utility to put on my PPA and I've almost got it to work, but I'm having problems in making the package install the binary (a chmod +x Python script) under /usr/bin. Instead it installs under /. I…
SammySP
  • 173
5
votes
1 answer

Creating a deb package that can be used by Lucid, Natty and newer versions of Ubuntu

I don't even know if it's possible. If I need to create separated packages, please explain why.
5
votes
3 answers

How do I make/extract/modify source of a package and repack it?

I have a package which has bug, and i need to modify it, and repack it, So thats how i am doing. Is there any other quick methods? List/View only (drivers files or applications) ar tv DesktopVideo-8.0.1-amd64.deb rw-r--r-- 0/0 4 Sep 25 07:35…
user25165
5
votes
1 answer

Building a Debian package with two buildsystem

I have a package that needs to be build with both a regular makefile and a setup.py. The thing is that the Debian packaging magic that is invoked via debuild would recognize a makefile and do the right make make install DESTDIR=??? thing and get it…
5
votes
1 answer

"dh_install: hamsterdb-dev missing files (usr/lib/pkgconfig/*), aborting" building a package

I'm author of a small open-source database library and want to supply .deb packages through my ppa. I have a couple of problems. I followed the documentation and several tutorials and created a debian/ directory, but when I run 'dpkg-buildpackage…
cruppstahl
  • 153
  • 1
  • 6
5
votes
1 answer

Is it possible to use 'dch -r' but NOT end up in an interactive editor?

I'm trying use dch -r to update the DEBFULLNAME, DEBEMAIL, and TIMESTAMP in a debian/changelog for automated building of a package. Normally, I'd use dch with -r to do this. But this drops me into an interactive editor. Is it possible to suppress…
4
votes
1 answer

dh_install fails with missing files

I am attempting to build a deb from an existing autotools based library. I am following the tutorial here. When I do a spkg-buildpackage -us -uc the command fails with an error stating that files are missing. I am at a loss, because the original…
Yaur
  • 143
3
votes
0 answers

What is the proper way to package path unit files?

I have a lot of application packages that I help maintain. Many of the applications run as systemd services. To install a package as a service it is very easy to place a service file in the debian directory of the package source. When the package is…
SunSparc
  • 137
  • 6
1
2 3 4