Creating .deb packages from prebuilt binaries?

I would like to create a Debian / Ubuntu.deb package from a set of prebuilt binaries. I do not have access to the source code. The only tutorials I found when creating deb require access to the source code, and they also make all the convenient and simple tools for creating Debian packages.

So how can I create deb from a binary folder?

+6
ubuntu debian packaging
source share
5 answers

1) you need to know where to put these binaries: in / usr / bin?

2) Then you need to create yourself a temporary directory for packaging, for example. / TMP / package

3) You need to write DEBIAN control files, for example. control, postrm, preinst etc.

4) You put these DEBIAN control files in / tmp / package / DEBIAN

5) You run 'dpkg-deb'

This is just an overview; some steps are missing. See how I do this with my makefiles here under / trunk / project.

That should make you start anyway. Hope this helps.

+5
source share

I found fpm , which is very useful for creating binary .deb packages.

+3
source share

you should look here (parts 4 and 6 for basic materials)

+1
source share

See the man dpkg-deb ( --build ) --build and man deb-control .

.deb creating a file with DEBIAN , not DEBIAN , one is really simple.

+1
source share

As a remark, here is an example of a DEBIAN / control file

 Package: <put package name here> Version: 1.0 Section: base Priority: optional Architecture: amd64 Depends: <put dependency packages here> Maintainer: Somebody Somename < s.somename@someaddress.com > Description: Short description Long description, mind the spaces in front of this line 
0
source share

All Articles