Jonathan Prior
Jonathan Prior

Reputation: 6284

Creating .deb packages from prebuilt binaries?

I would like to create a Debian/Ubuntu .deb package from a set of prebuilt binaries. I don't have any access to the source code. The only tutorials I've found on creating debs require source code access, and so do all the convenient and easy tools for creating Debian packages.

So how can I create a deb from a folder of binaries?

Upvotes: 5

Views: 11203

Answers (5)

fransschreuder
fransschreuder

Reputation: 26

Just as a remark, here is an example 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 <[email protected]>
Description: Short description
  Long description, mind the spaces in front of this line

Upvotes: 0

ashkulz
ashkulz

Reputation: 792

I've found fpm to be very useful for creating binary .deb packages.

Upvotes: 3

Vanni Totaro
Vanni Totaro

Reputation: 5471

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

.deb file creation with DEBIAN directory instead of debian one is really simple.

Upvotes: 1

chub
chub

Reputation: 787

you should have a look here (part 4 and 6 for basic stuffs)

Upvotes: 1

jldupont
jldupont

Reputation: 96716

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

2) Then, you need you create yourself a temp directory for packaging e.g. /tmp/package

3) You need to write yourself DEBIAN control files e.g. control, postrm, preinst etc.

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

5) You run 'dpkg-deb'

This is just a quick overview; some steps are missing. Have a look at how I do this with my makefiles here under /trunk/project.

This should get you started anyhow. Hope this helps.

Upvotes: 6

Related Questions