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
12
votes
4 answers

How to implement auto-update electron app on Linux?

I use electron to create cross-platform application. For Windows and Mac it could be done by electron tools, like autoUpdate, Squirrel, so on. The problem is only with Linux. I have built a .deb package for Ubuntu. But I can't find any…
Gleb
  • 1,312
  • 3
  • 18
  • 36
12
votes
1 answer

Creating deb or rpm with setuptools – data_files

I have a Python 3 project. MKC ├── latex │ ├── macros.tex │ └── main.tex ├── mkc │ ├── cache.py │ ├── __init__.py │ └── __main__.py ├── README.md ├── setup.py └── stdeb.cfg On install, I would like to move my latex files to known…
pacholik
  • 8,607
  • 9
  • 43
  • 55
11
votes
3 answers

Reprepro adding same deb package

I got a problem in my debian repo. I removed a wrong package with: reprepro -Vb . remove package This was ok, but when I tried to add again the same package with next command: reprepro -Vb . includedeb squeeze package I got the next…
ki0
  • 367
  • 2
  • 5
  • 15
10
votes
1 answer

SaltStack state to install .deb package file and dependencies

I have a salt formula. On server I am using wkhtmltopdf tools. Ubuntu repo has this tool but it has an older version. I want to use the latest version. I am doing the following to get it installed on minions manually. $ wget…
bitkot
  • 4,466
  • 2
  • 28
  • 39
10
votes
1 answer

Dockerfile manual install of multiple deb files

Working with Docker and I notice almost everywhere the "RUN" command starts with an apt-get upgrade && apt-get install etc. What if you don't have internet access and simply want to do a "dpkg -i ./deb-directory/*.deb" instead? Well, I tried that…
user3614014
  • 653
  • 1
  • 6
  • 22
10
votes
3 answers

How do you prevent a dpkg installation task to notify a changed state when it runs for the second time?

There isn't a module for installing .deb packages directly. When you have to run dpkg as a command, it always mark the installation task as one that has changed. I'd some trouble configuring it correctly, so I'm posting here as a public…
neves
  • 33,186
  • 27
  • 159
  • 192
9
votes
3 answers

checkinstall creates useless deb?

I have a trivially simple command-line program that literally consists of a python script and some helper shell scripts. I'd like to learn about packaging this program, though it is trivial. From what I gathered, I went the configure/make/install…
cemulate
  • 2,305
  • 1
  • 34
  • 48
9
votes
1 answer

How to add files to debian package with CPack?

I am using Cmake with Cpack to create debian package. I would like to use Cpack to generate a package that will install that files to specific location. (ex. /usr/lib /usr/include/aaa) each library and header files are specified in a install…
pius lee
  • 1,164
  • 1
  • 12
  • 28
9
votes
2 answers

How do I force-reinstall a package with Ansible?

I'm using Ansible to deploy .deb packages from a custom repository. Sometimes a developer can forget to change the package number, so the repository will have the new package with the old version. This is unnecessary, so I would like to always…
Nick Volynkin
  • 14,023
  • 6
  • 43
  • 67
9
votes
2 answers

how to create manual entry for deb package

Where do I write a manual entry when creating a deb package? Is there any formatting rule/best practice to respect? I'm very new to deb package creation. Following some tutorials, I just created a package that installs/executes nicely, so now I'd…
aherve
  • 3,795
  • 6
  • 28
  • 41
9
votes
4 answers

Dpkg Python module?

I'm trying to do some package manipulation (a la dpkg) and while I can just popen or subprocess.call I'd rather do things the python way if possible. Unfortunately I've been unable to find a python module to do the trick. I've seen reference to…
Catskul
  • 17,916
  • 15
  • 84
  • 113
9
votes
1 answer

Will it be practical to implement deb preinst, postint, etc. scripts in Python, not in sh

I'm interested in what pitfalls can be (except Python is not installed in target system) when using Python for deb package flow control scripts (preinst, postinst, etc.). Will it be practical to implement those scripts in Python, not in sh? As I…
Rostyslav Dzinko
  • 39,424
  • 5
  • 49
  • 62
9
votes
4 answers

how to install R packages "RNetCDF" and "ncdf" on Ubuntu?

I would like to use the R packages RNetCDF and ncdf in Ubuntu. When I try install.packages('RNetCDF') or install.packages('ncdf'), I get similar errors: ... ncdf.c:3:20: fatal error: netcdf.h: No such file or directory compilation terminated. make:…
Abe
  • 12,956
  • 12
  • 51
  • 72
8
votes
2 answers

Deploying Python modules in an Ubuntu system with distutils and deb

I am working on packaging some libraries up in a deb with distutils. Presumably, I need to have setup.py configured correctly, as well as the appropriate /debian files for the deb. Right now, the repository looks something like this: library_name/ …
Paul Nathan
  • 39,638
  • 28
  • 112
  • 212
8
votes
3 answers

How to bundle an application for Linux

I am writing a (closed-source) application and will provide binaries for all three major platforms (MacOS X, Linux and Windows). It uses Qt under the LGPL license so I am required to dynamically link with the Qt libraries. I understand how to…
trojanfoe
  • 120,358
  • 21
  • 212
  • 242
1
2
3
40 41