Questions tagged [deb]

deb is the extension of the Debian binary package format. Software packaged for Debian or Debian derivatives such as Ubuntu is distributed in this format.

Description

.deb is the extension of the Debian binary package format. Software packaged for Debian or Debian derivatives such as Ubuntu is distributed in this format. Packages of this type are often referred to as "debs".

A related format known as "source debs" usually consists of multiple files: a .dsc file listing each of the other files in the source with cryptographic hashes, a tarball of some sort (.tar.gz, .tar.bz2, etc.), and sometimes additional files such as diffs.

Debs are typically manipulated using the dpkg family of tools. dpkg-deb, in particular, is responsible for creating, unpacking, and querying .deb files. The dpkg package management tool is used to install, uninstall, and configure deb-packaged software onto Debian-based systems. Source reps are packed and unpacked using dpkg-source. Numerous front-end tools with additional capabilities in the Apt family (apt-get, Aptitude, Synaptic, etc) offer additional facilities, including repository management and dependency resolution.

Software packaged in debs is generally firmly expected to conform to Debian Policy, or the policy of the appropriate Debian derivative. Authoring well-behaved packages which meet all of these requirements can be tricky, so several tools exist to make deb creation easier or verify compliance with policies. debhelper (or "dh") and cdbs are probably the most commonly used.

The [deb] tag should be applied to discussions about authoring or working with debs, not for general questions related to Debian.

Related Tags

  1. rpm

References

  1. http://man7.org/linux/man-pages/man5/deb.5.html
603 questions
5
votes
1 answer

Build a Debian package without tarball

I am trying to build a Debian package for a project I maintain. For this reason, the source tree (which resides in a Git repo) has a subdir called debian, with the Debian-related files in it. However, when I run debuild -us -uc, I get the…
user149408
  • 5,385
  • 4
  • 33
  • 69
5
votes
1 answer

Creating Multiple Debian Packages with cmake

I have a cmake project consisting of a set of executable files, independent of each other with two shared libraries. I want to pack each executable file into a deb package. As a result, I get one deb package with all programs and libs. part of the…
Zeta
  • 141
  • 7
5
votes
2 answers

What does $$FOO do in bash (in a deb package built with epm)?

On the command line, I get this: $ FOO=foo $ echo $FOO foo $ echo $$FOO 11971FOO Here, $$ resolves to the PID of the shell as expected and "FOO" is printed verbatim. Now, trying to understand and debug some scripts, I find the…
Jan
  • 723
  • 1
  • 11
  • 24
5
votes
3 answers

Accessing environment variable inside the postinst script of the debian package

I have made a debian package for automating the oozie installation. The postinst script, which is basically a shell script, runs after the package is installed. I want to access the environment variable inside this script. Where should I set the…
Narayan Periwal
  • 89
  • 1
  • 10
5
votes
3 answers

Distributing a jar

I'm distributing a jar file, with associated libraries, media, documentation, etc. I would like to create a simple deb/rpm package for linux users, and I would also like to distribute this for windows. What is the best way to go about setting up the…
EricR
  • 1,487
  • 2
  • 21
  • 42
5
votes
1 answer

Set a custom install directory when making a deb package with fpm

I'm using fpm to create a deb package, but when I install that deb package, it is installed into the wrong location, my fpm command is: fpm -f -s "dir" -t "deb" -a "all" -n "my_project" -v 1 -C "/tmp/tmpjWTuVp" /tmp/tmpjWTuVp/my_project The folder…
farridav
  • 933
  • 8
  • 18
5
votes
1 answer

Debconf dialog during .deb installation

I was successfully able to create a .deb installation file for Ubuntu, but I need user input to complete the configuration for the post install script. These questions are dynamic and based on the interfaces a user has on their computer. Is there a…
AndrewD
  • 258
  • 4
  • 17
5
votes
1 answer

packaging debian files: debian/copyright file format?

I am back porting a bunch of code to run on older kernels. (gcc 4.9 dependencies, x11, vlc etc.) as *.deb files. In this process, ( I am new to packaging) I need to create a copyright file. I can have a blank one, I know, but I would like to know,…
j0h
  • 1,675
  • 6
  • 27
  • 50
5
votes
3 answers

Creating a 64bit Debian package on a 32bit machine

I'm trying to create an amd64 package using: sudo dpkg-buildpackage -us -uc -aamd64 on an i386 machine. The error I get is: Can't exec "x86_64-linux-gnu-strip": no such file or directory at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 215 Any…
Andy Thomas
  • 1,219
  • 3
  • 19
  • 33
5
votes
2 answers

python script to .deb ubuntu package to install a daemon

I have a python script which runs a daemon-like service, now I created the python package. I created a .deb package from there but I want the script to be run with upstart, but I can't mange to write the files in the /etc/init ubuntu folder…
Anze
  • 707
  • 9
  • 15
5
votes
1 answer

pip install to deb binary

So I got to install a large number of requirements from pip for production servers. Most of those requirements require python-dev and build-essential to compile. Now the way I look at it - python-dev and build-essential comes with some overhead, and…
Katafalkas
  • 973
  • 3
  • 12
  • 21
5
votes
1 answer

How to build and deploy package with different versions of one dependency?

For example I maintain an application that uses libmemcached. I can compile it using libmemcached5 or libmemcached6, also build .deb package pointing to libmemcached5, libmemcached6 or even libmemcached5|libmemcached6 as dependency, but actually my…
5
votes
4 answers

How to should I setup my CI (jenkins) for deb packages?

I have a CI setup with Jenkins and Artifactory for Java. I would like also to build and deploy deb packages. For building deb packages, I might use a Maven plugin (called from Gradle), e.g., http://mojo.codehaus.org/deb-maven-plugin/. I am now…
Skarab
  • 6,981
  • 13
  • 48
  • 86
5
votes
2 answers

Creating .deb to install bash script program

I was wondering if the following is possible. I have a BASH script that I want to make available for some people but I wanted them to only have to "install" the program and not messing around with terminal, so I thought a .deb would be cool. So…
Sidner
  • 383
  • 4
  • 16
4
votes
1 answer

Create a Debian package from a Ruby gem

I'm attempting to create a Debian package for a simple utility I wrote with fpm and bundler but am having difficulties. Here's how I generate my .deb (I assume you've checked out sns and are in it's root): $ bundle install $ rake install $ fpm -s…
troutwine
  • 3,721
  • 3
  • 28
  • 62