People who code: we want your input. Take the Survey

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.

Filter by
Sorted by
Tagged with
12
votes
3answers
31k views

How do I install a package with aptitude?

I've looked at an aptitude tutorial and read the man page, but I just don't get it. After you launch aptitude, how do you say "install package foo"? Or search for all packages with "foo" in their ...
7
votes
1answer
531 views

What are Launchpad packaging recipes and how can I use them?

As I understand it, packaging recipes are a way to automate packaging into a PPA from a bzr branch. What I'm not sure of is how to go about setting one up. I have read the documentation but for some ...
41
votes
3answers
8k views

How can different packages have identical source code?

I recently learned how easy it is to get the source code for any given package using apt-get source so that I can get the source code, make changes and install my own modified version of any package. ...
19
votes
2answers
11k views

What is the difference between dependencies and pre-depends?

What is meant by "depends" and "pre-depends", and the difference between those 2 types of package requirements when I am installing something in Ubuntu?
14
votes
2answers
10k views

how do you create a “signed” deb package

I want to create a number of deb packages, but I don't know how "signing" packages works. So I was wondering how to create a signed deb package.
8
votes
1answer
338 views

Where exactly is all the source code on Launchpad browseable?

I have always found the source code browser of Launchpad extremely useful when I need to link to packaging code in an answer. The URL pattern is simple enough (https://code.launchpad.net/ubuntu/+...
6
votes
1answer
2k views

Building multiple packages for deployment on different Ubuntu versions

I need to build debs for Ubuntus Lucid on. I know I can set up VMs/chroots, etc to make a distribution per build, but is there a mechanism from my Oneiric machine to do something like: ubuntu-dpkg-...
15
votes
2answers
21k views

How to package a systemd service?

I'm trying to package a mono application to run as a systemd service. I've followed the instructions here: https://wiki.debian.org/Teams/pkg-systemd/Packaging I've added dh-systemd (>= 1.5) to my ...
12
votes
1answer
2k views

What happens during a package upgrade?

I recently started building Ubuntu packages for my software on Launchpad. They are pretty simple; most of them just contain some files and scripts that are trigged through the .install .preinst ....
10
votes
3answers
7k views

How do I add a binary file to my existing PPA package

Adding modified or new text files to my PPA package is simple enough: Step 1: apt-get source [foo-package] cd [foo-package] Step 2: add or modify new text files containing the changes Step 3 - ...
8
votes
3answers
11k views

How can I create a simple debian package from binary?

I have been researching debian packaging, but I can't seem to figure out how to package a C# mono application made up of a single executable and a few resource files. Can anyone help me figure out? ...
7
votes
2answers
2k views

What is the correct way to create your own packages for local installation?

I am running an Ubuntu 12.04 LTS server. I currently have an issue where one of my used packages has an annoying bug. Instead of removing it and just building it from source, I want to integrate it ...
7
votes
2answers
4k views

how to do a pbuilder-dist build with dependencies in a ppa?

I'm trying to build a package for my ppa that uses packages from two other ppas. I want to do a test build using pbuilder-dist. I have done this before and I know that I need a combination of: ...
6
votes
1answer
124 views

Contributing to the package or the upstream branch?

While learning about Ubuntu development & packaging, there's one part that's not quite clear to me. So, let's say we're in the middle of active development (e.g. Raring) before feature freeze and ...
5
votes
2answers
2k views

How do I package my application for the Ubuntu Software Centre?

I'm an old hand at software development, but not so experienced with packaging. I've built one dpkg before, but it wasn't a source package. I'm working on getting an application submitted to the ...
4
votes
2answers
4k views

How to create a Debian source package with Qt Creator?

What do I need to do to get a package that I can submit to the Ubuntu Software Center?
2
votes
1answer
948 views

dh_install -O--buildsystem=cmake dh_install: missing files: usr/lib/*/lib*.so

I am trying to publish my cmake project to ppa at launchpad. The project is a library named "base". bzr builddeb -- -us -uc -sd fails with following error while trying to fake install dev version of ...
1
vote
1answer
1k views

Changing one build option in a package

I want to use the graphviz package on an Ubuntu system, but according to the build log it is configured using --without-gts, whereas I want GTS support to be included (I don't know if there's a reason ...
9
votes
6answers
1k views

What is the proper way to patch Wine for a custom PPA?

I've been manually applying patches to Wine for use on my own machine, but I want to put it in a PPA for my friends and relations. Currently I follow this procedure: Get the latest source from an ...
8
votes
2answers
2k views

Building a .deb file, install dependencies too

I am part of a small team that develop an intranet web app. We want to a method of easy installation, so we were thinking about how apt-get works, especially with installing dependencies. Our app has ...
6
votes
7answers
1k views

How do I create stand alone packages from ubuntu repository

Is it possible to create a stand alone deb packages by merging dependancies without manual repacking.?? I've looked at this question but it doesn't really answer what I'm trying to achieve above. if ...
5
votes
3answers
5k views

How can I convert the Nvidia driver installer into a deb?

Every so often there's a beta version of the Nvidia driver that I want to try out. This has happened today: there's been a big performance issue with version 295.40 and I want to try the shiny new ...
3
votes
2answers
996 views

How to build source package with `pbuilder` for PPA upload?

I am trying to use pbuilder to upload to PPA. Package builds ok with the command: sudo pbuilder build <package>_<version>.dsc But upload fails with error: Source/binary (i.e. mixed) ...
1
vote
1answer
6k views

debian/rules error “No rule to make target”

i'm having some problems creating a .deb file with debuild before reading some tutorials i managed to make the file but i always get this error: make: *** No rule to make target «build». Stop. ...
0
votes
2answers
3k views

Automatically sign package files from debuild and upload with dput

I've created a source package for I library I'm working on. I use debuild to build it and then I can successfully upload it with dput. Now I want to set it up so that I can do this automatically ...
8
votes
1answer
355 views

How do I investigate/confirm the identity of a PPA maintainer (e.g., Chromium Team)?

The Chromium Stable PPA (as found here: ppa:chromium-daily/stable) is maintained by Chromium Team (https://launchpad.net/~chromium-team). I assume this is "Google's" Chromium developers? If so, I ...
5
votes
1answer
2k views

Change environment variables in debian/rules according to debian/control targets

I have this package mypackage which is already bundled for Ubuntu. For setting the compiler, debian/rules contains DEB_CONFIGURE_SCRIPT_ENV += CC=gcc I would now like to extend the package in that I ...
5
votes
1answer
212 views

Why ubuntu sources are different to the originals?

When I do: wget ftp://ftp.openbsd.com/pub/OpenBSD/OpenSSH/portable/openssh-5.8p1.tar.gz wget ftp://ftp.openbsd.com/pub/OpenBSD/OpenSSH/portable/openssh-5.8p1.tar.gz.asc gpg openssh-5.8p1.tar.gz.asc ...
5
votes
1answer
6k views

How can I build i386 and amd64 packages on my amd64 laptop using debuild

I would like to be able to build multiple versions (i386 and amd64) of my package that has non trivial dependencies (gtk, etc). My build script uses cmake. At the moment, the command debuild -i -us -...
4
votes
2answers
862 views

How to make a .deb installer for PySide (Qt) project

I have made a small software using PySide, a GUI library for python using Qt. I have successfully built it into an executable for Ubuntu. http://download.ueseo.org/sitemap-creator/SitemapCreator2.1-...
4
votes
2answers
1k views

How do i create my own php 5.3.3 package/ppa?

I really would like to create a package for php 5.3.3 and then make a ppa for it (I would like the php-fpm support but inside the newest release), however this question goes further than this. I ...
4
votes
1answer
4k views

how to package installed packages?

Is there anyway to package the installed software on the system? I mean without going to/var/cache/apt.. and without downloading anything else, can i use a dpkg command to make a packages from all ...
3
votes
1answer
5k views

Error when creating debain source package with dpkg

When entering this dpkg-source -b <packagename> into the terminal to create a debian source package, I get the following error: dpkg-source: error: syntax error in ResolutionX_1.0-0/debian/...
3
votes
1answer
134 views

How to create a .deb file just for copying certain icons and one javascript file to particular locations?

Okay,So I have wasted my whole day and still unable to figure out how to do that the easy way.I have been to the debian land and ubuntu packaging land.I have read about equivs and various other ways ...
3
votes
1answer
2k views

dh_auto_configure with buildsystem=cmake failing

I am trying to publish my cmake built project to my launchpad ppa. While I am doing fake build below is the error being thrown. gowtham@ubuntu:~/Packages/build-area$ pbuilder-dist xenial build ...
3
votes
2answers
610 views

can a snap package depend on a .deb package provided by the distro?

Can a snap be built in a way such as, when the user tries to install it, the snap also installs another package? For example, wget. Thanks.
2
votes
0answers
2k views

How to build a newer version of a package than is available for my stable release?

I want to use a newer package version with my stable Ubuntu release. Asking for backport takes too long without visible result, so I thought that maybe I can build newer version myself. Can anybody ...
1
vote
1answer
4k views

How do I create a deb package for a precompiled files?

I know how to package rpm for RHEL, but have little experience of deb packaging. I'd like to package other OS's library and headers for making cross-compiler, so there won't need any compilation ...
1
vote
1answer
239 views

How to easily bump a package for a PPA?

What's the easiest way to bump the version number for a package that shall be uploaded to a Launchpad PPA? For instance, what I do now is that on each new release I unpack the previous *.debian.tar....
0
votes
1answer
154 views

Quickly gives warnings on packaging, not recognizing setup.py~

I have been trying to make an application and package it and so on, but I have run into a lot of errors, so I'm trying to get back to basics: After the command quickly create ubuntu-application dj1 ...
8
votes
2answers
1k views

How come the override_dh_build-indep sequence isn't run by debuild?

I'm having a bad time trying to generate some documentation for a shared library within debian/rules. I asked a question earlier about which target to use for generating the documentation. My problem ...
5
votes
1answer
616 views

How to create deb packages for fonts

How do I create a package of fonts? I am not going to be uploading them to the Archive as they are for my own use. Can anyone point me to a tutorial or a document on creating font packages? I have ...
5
votes
1answer
949 views

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 ...
4
votes
2answers
205 views

Are Click packages obsoleted by Snappy packages?

Are Click packages obsoleted by Snappy packages? Should I focus on learning how to make snappy packages, and ignore the click documentation?
4
votes
2answers
3k views

Getting set up with git-buildpackage, pbuilder, etc, for software packaging

I'm packaging software at work and the scope has increased to have Lucid-based as well as Karmic-based versions. Right now I just build inside a Karmic VM using git-buildpackage calling debuild, but I'...
4
votes
1answer
3k views

Which target in debian/rules do I need to use for generating documentation?

I have run into some problems creating Debian packaging for a shared library. The application contains a Doxyfile which is used to generate documentation for the library. I would like to create a ...
4
votes
1answer
584 views

How does Click/Snappy solve dependency issues?

There is a bit of confusion surrounding click and snappy. For one, I understand that there are certain packages that are not allowed to be shared due to app-armor. For example, if I write a Qt ...
4
votes
4answers
300 views

How can i avoid downloading packages every-time I install my Ubuntu? [duplicate]

Every time i install Ubuntu on a computer I have to download the applications/packages with total size of 1.5~2GB and it took lots of my network bandwidth & time!! How can I avoid downloading the ...
3
votes
1answer
1k views

How to setup PYTHONPATH for a snap package?

I'm trying to snap package a non-pure python project. I used python plugin with custom build/install scripts. This project contains 2 python packages that are required for desktop app: alfanous (API)...
3
votes
1answer
831 views

Can I use a Debian package build environment to build Ubuntu packages?

I have a Debian wheezy server that I use to build packages using pbuilder and git-buildpackage. I can currently build packages for Debian sid, wheezy, and squeeze. I would like to use this same ...