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

RPM to DEB conversion using alien. Setting DEB specific metadata

I have an RPM package which I converted to Debian package using alien. When I try to install it on ubuntu using ubuntu software center it cribs and throws warnings like maintainer name/address malformed(it gets installed w/o any errors warnings when…
Sachin Khot
  • 1,412
  • 2
  • 14
  • 18
4
votes
1 answer

Ubuntu DEB installer makes all Java applications have the same icon

I've created a DEB installer of my Java application for Debian-based systems. In my DEB package I use a *.desktop file like this: [Desktop Entry] Encoding=UTF-8 Version=${version} Type=Application Terminal=false Exec=java -jar…
afrish
  • 3,167
  • 4
  • 30
  • 38
4
votes
1 answer

Is there a .deb install file equivalent of .rpm first time install argument

In an .rpm file, there is an option to check whether the current install is the first version to be installed on the current system i.e. %pre and %post scripts will be passed an argument equal to 1* also when the last version is erased %preun and…
Ross Drew
  • 8,163
  • 2
  • 41
  • 53
4
votes
1 answer

How do I enable submodule cloning in git-buildpackage

We've been using git-buildpackage to build Debian packages with great success, but we've recently hit a wall since introducing git submodules into the mix. We normally run git-buildpackage -b -us -uc --git-export-dir="latest" to build the…
user1180316
  • 448
  • 4
  • 12
4
votes
4 answers

find whether a library is installed using shell script

I'm complete noobs in shell script what i want is shell script that determine a list of library/package currently installed if not install them without user permission What I want is to determine the library/package is currently installed or not in…
Viren
  • 5,812
  • 6
  • 45
  • 98
3
votes
5 answers

How to package a game for Linux?

I have a game that currently runs under Windows and Mac OS X and I'd like to make it available under Linux. The porting should be fairly easy since it's a Java based game and uses portable libraries that are available on all 3 platforms. The hard…
Tomas Andrle
  • 13,132
  • 15
  • 75
  • 92
3
votes
1 answer

How to create desktop icons for a deb package created with CPack?

I am using CMake/CPack for my project. On Windows, I use CPack with NSIS, and it's all good. But for Linux, I use the DEB generator for CPack, and I have run into a few issues. Namely, I cannot find a proper way to add an icon in the menu of…
Amy
  • 1,814
  • 2
  • 23
  • 38
3
votes
1 answer

The repository 'http://apt.postgresql.org/pub/repos/apt stretch-pgdg Release' does not have a Release file?

I have an error when I am building my Docker containers. It seems that there are problems with Postgres Stretch for Debian. I saw that Debian strech was removed and no longer supported. I found similar problem here: The repository…
bubamara
  • 31
  • 3
3
votes
1 answer

What is the best way of creating several rpm's (deb's) packages in one CMake project?

I need to create several different rpm's (deb's) (with different list of files) from one CMake project. What is the best way for this? Can some one suggest some project (CMakeList.txt) with such options?
3
votes
1 answer

What's a good method to trigger apache restart after .deb installation?

I have several custom .debs that I've built. They all depend on apache and after upgrade of any package apache needs to be restarted. Restarting apache naively from the postinst I get a restart for each package I upgrade, which is really slow. …
Fasaxc
  • 756
  • 4
  • 17
3
votes
1 answer

Convert rpm to deb without alien?

How to convert rpm to deb without using alien? I am not able to install alien in my ubuntu 19? It gives an error on packages not able to find?
supernatural
  • 1,107
  • 11
  • 34
3
votes
1 answer

How to build a ruby .deb package?

I've been searching google and I found another question on stackoverflow with no answer and some people saying they had success with checkinstall. I'm following this: sudo apt-get install uuid-dev libsystemd-dev libssl-dev checkinstall sudo apt-get…
Roman Gaufman
  • 1,104
  • 1
  • 13
  • 17
3
votes
1 answer

fpm v.1.11.0 vs inclusion of /usr/lib/.build-id files

New to using fpm I’m trying to package some config files and a few binaries (from source: dir), eg. no building from sources. When I get a package it seems to include symlinks from under /usr/lib/.build-id pointing to the binaries in the…
3
votes
1 answer

Linux deb repo seems broken

Linux deb repo seems to contain some error: This is what I get from apt update: Get:14 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages [156 kB] Err:14 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages …
3
votes
2 answers

How to access the original tarball when packaging for Debian?

I am packaging a piece of Python software that uses DistUtilsExtra. When running python setup.py install in my debian/rules, DistUtilsExtra automatically recompiles the translation template .pot file and updates it directly in the source repository.…
Emilien
  • 2,971
  • 2
  • 22
  • 32