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
8
votes
3 answers

View content files of .deb archive

I want to view the content of a .deb archive but I´m not able to unpack the .deb file with any pack program like 7Zip. When I try to install the file in Linux Ubuntu with dpkg-deb the system return the message "...is not a debian format archive".…
Hans
  • 107
  • 1
  • 4
8
votes
1 answer

What does the CPack preinstall target do

I have a fairly complicated project that builds using CMake. The project uses CPack to generate .deb packages. When I just build the project with make (i.e. not building a .deb) a clean build takes roughly 2 minutes. However when I build a package…
shay
  • 755
  • 10
  • 22
8
votes
1 answer

How to use command line dpkg options to unpack conf and skip postinst script

I have a need to run dpkg install, unpack the conf files, but skip running the postinst scripts (if it's included in the deb file). I've tried to change the SHELL variable to /usr/bin/true, but that didn't work. Any other ideas would be great!
StephenG
  • 2,851
  • 1
  • 16
  • 36
8
votes
1 answer

CPack tries to build all targets

I have a CMake project composed of one root CMakeLists and multiple sub-CMakeLists (one for each project). I am trying to use CPack to generate a .deb file for one of these projects (APP_client). Yet, when I try to run CPack, it first runs a…
luigi_slz
  • 183
  • 1
  • 5
8
votes
5 answers

Why RPM is better than DEB for MeeGo?

I know there has been a lot fuzz about this subject on various forums and newsgroups concerning the merge of Moblin and Maemo. I'd like to know what stackoverflow-fellows think about this. What are the benefits of RPM packaging over DEB that make it…
user44556
  • 5,763
  • 5
  • 30
  • 27
8
votes
3 answers

How to properly set installed-size for deb package?

I'm developing debian packages and I have troubles with correctly defining 'Installed-Size' under DEBIAN/control. I have created a script that continuously checks svn repository for new revisions, and if found some changes then calculates code's…
Levi
  • 81
  • 1
  • 2
8
votes
1 answer

How to add PyPi dependencies to DEB package

I created some python app using autobahn and packaged it using baazar builddeb. In python setup.py file I added requires tag with all the required dependencies. Is it possible to tell debian package installer to install these packages? I added some…
marcinpz
  • 675
  • 7
  • 15
7
votes
2 answers

Having trouble building python deb package , complain about modified binary

I have built my packages before using debhelper, but I'm running into a very frustrating problem. This is my file tree: usr/ `-- share |-- applications | `-- create-launcher.desktop `-- create-launcher |-- bin | |--…
narnie
  • 1,742
  • 1
  • 18
  • 34
7
votes
5 answers

package.init is not getting installed

I have a project.init file in the debian directory (along with rules, control, etc), and I have dh_installinit in my rules file (in the binary-arch rule). When dpkg-buildpackage completes, the init script has been copied to…
Tony Meyer
  • 10,079
  • 6
  • 41
  • 47
7
votes
2 answers

How can I use CMake to install a script?

I have a project that builds several executables and also installs them. For the executables the relevant CMake code is: add_executable(foo "foo.cpp") add_executable(bar "bar.cpp;qux.cpp") install(TARGETS foo bar "/usr/bin") Then I create a .deb…
MatrixManAtYrService
  • 8,023
  • 1
  • 50
  • 61
7
votes
1 answer

JavaFX - Caused by: java.lang.UnsupportedOperationException: Unable to open DISPLAY?

I'm using jdeb to generate my .deb installer for debian based distros. The application is installed with no error, but when I try running service myapp startit fails with the below's exception (The application keeps running but the FX scene never…
romerorsp
  • 123
  • 2
  • 9
7
votes
3 answers

How to generate .deb from catkin workspace in ROS

I can compile and install ROS package in the catkin workspace in ROS. How can I export the package in catkin workspace to a .deb file so I can install and use it on the other machines? My ROS version is ROS Indigo and OS version is Ubuntu 14.04
Wennn
  • 119
  • 1
  • 7
7
votes
2 answers

create .deb package by python setup.py

i want create .deb package for my python program. i create setup.py and it works well, but when I want to create a debian package using setup.py and stdeb I get an error. the commands I use to create .deb: first: python3.4 setup.py…
Foad Tahmasebi
  • 1,333
  • 4
  • 16
  • 33
7
votes
2 answers

easy, straightforward way to package a python program for debian?

i'm having trouble navigating the maze of distribution tools for python and debian; cdbs, debhelper, python-support, python-central, blah blah blah .. my application is a fairly straightforward one - a single python package (directory containing…
Jeremiah Rose
  • 3,865
  • 4
  • 27
  • 31
7
votes
4 answers

How to cleanup sources to rebuild package with dpkg-buildpackage?

I'm playing with dpkg, but I got rather strange problem: Package can not be build second time after 1st package was successfully build. dpkg-buildpackage -sa .... dpkg-source: warning: newly created empty file…
George Shuklin
  • 6,952
  • 10
  • 39
  • 80
1 2
3
40 41