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
4
votes
1 answer

Why doesn't asserting CPACK_DEBIAN_DEBUGINFO_PACKAGE result in a .ddeb file?

I'm attempting to use cpack to create .ddeb files (containing debug symbol info) for my cmake based project using set(CPACK_DEBIAN_DEBUGINFO_PACKAGE ON) and can't tell why I'm not getting a .ddeb file being produced alongside the .deb file that is…
user8819
  • 53
  • 6
4
votes
1 answer

Compiling from source vs. deb package

I'm compiling several C/C++ packages from source on Ubuntu. I compare the results from my build to running with the debian install, and find that my executables are slower. I used readelf -a to compare the two executables. Things like the relocation…
ajwood
  • 18,227
  • 15
  • 61
  • 104
4
votes
1 answer

Make .deb for JDK8 with JavaPackage

I'm trying to install JDK8 on Debian Stretch. The recommended way is to use JavaPackage. I have successfully packaged JDK6 and JDK7 using this method: Download the JDK archive from Oracle fakeroot make-jpkg jdk-7u55-linux-x64.tar.gz dpkg -i…
Matt
  • 3,677
  • 1
  • 14
  • 24
4
votes
1 answer

How I can add a changelog in deb with CMAKE?

I am building a debian package with CMAKE and CPACK. Everything is smooth with the build except that I can't find how to add a changelog file in the deb package. Is there any way to do it?
Jibrilat
  • 347
  • 1
  • 3
  • 14
4
votes
0 answers

cmake/cpack doesn't recognize inter-component dependencies

I am trying to convince cmake/cpack to build a shared library package (component lib) and a development package (component dev). The lib component should only contain the shared library, and should have no dependencies. The dev component should only…
spierepf
  • 2,774
  • 2
  • 30
  • 52
4
votes
1 answer

Disable CDBS licensecheck step for local builds with "dpkg-buildpackage -b"

I'm doing several huge package builds with dpkg-buildpackage -b in Ubuntu 17.04 (Debian-like "stretch/sid"). Packages has very high number of files and in build process there is step Scanning upstream source for new/changed copyright notices... with…
osgx
  • 90,338
  • 53
  • 357
  • 513
4
votes
1 answer

How can I package a symlink with cpack?

I've seen many linux applications packaged with their binaries in some path like /opt/mypkg/myexecutable and a symlink to it in /usr/bin. I've seen these symlinks in the packaged files. I want to do the same while packaging my software with cpack,…
unR
  • 1,298
  • 14
  • 21
4
votes
1 answer

apt-get install quiet and --assume-yes but checking if package is signed

everyone! I have debian device and I want it to upgrarde automatically from my repository. To do that I just call apt-get from cron: apt-get --assume-yes --force-yes install mypackage But in this case it will install the package event if it can't…
maslovw
  • 99
  • 6
4
votes
1 answer

debian packaging: what's the difference between dh build and dh binary

I encountered an issue when building debian package. As for the document of the rules file: https://www.debian.org/doc/manuals/maint-guide/dreq.en.html#rules debian/rules build runs dh build; which in turn runs the…
chenzhiwei
  • 441
  • 6
  • 14
4
votes
1 answer

blank line in value of field 'Description' while creating deb package

I want to create a debian package, when i try below command it is giving me error dpkg-deb --build installer_1.0-1 dpkg-deb: error: parsing file 'installer_1.0-1/DEBIAN/control' near line 8 package 'installer': blank line in value of field…
anikhan
  • 1,147
  • 3
  • 18
  • 44
4
votes
2 answers

deb package creation using fpm with build dependencies

I'm trying to create a deb package using fpm, which contains some shell script files.But the deb package should create with a dependency called vim(vim editor in Linux). Means when installing deb package it should install vim first and then script…
user3350476
  • 61
  • 2
  • 5
4
votes
1 answer

How to require Oracle Java (JRE) when building a .deb (debian package)?

I wrote a small BTRFS GUI in Oracle Java that uses JavaFX. So in orded for the program to work Oracle Java (JRE) must be installed (not Openjdk-jre!). How can I require that when building the .deb package under the control file?
Dan
  • 274
  • 6
  • 14
4
votes
1 answer

Adding /etc/ to the classpath in sbt-native-packager for debian:package-bin

So I'm using the packageArchetype.java_server and setup my mappings so the files from "src/main/resources" go into my "/etc/" folder in the debian package. I'm using "sbt debian:package-bin" to create the package The trouble is when I use "sbt run"…
djsumdog
  • 2,560
  • 1
  • 29
  • 55
4
votes
1 answer

daemonUser for upstart not working in sbt-native-packager

I'm using the sbt-native-packager to create a .deb package including all libraries. The generated upstart-script is using the root user which I obviously want to avoid. I found a hint in the code that there is a daemonUser sbt-setting defined but i…
magegu
  • 530
  • 4
  • 18
4
votes
2 answers

Over-riding Debian/Ubuntu's lintian profile

I have written a proprietary application that needs to install some .pyo files. When I create a .deb from the app, lintian complains that package-installs-python-bytecode. I tried adding an override, but apparently this tag is marked as…
Chinmay Kanchi
  • 62,729
  • 22
  • 87
  • 114