Differences between revisions 1 and 15 (spanning 14 versions)
Revision 1 as of 2011-08-31 19:02:16
Size: 1715
Editor: HenriLeFoll
Comment: rewritten for equivs
Revision 15 as of 2014-05-12 00:56:36
Size: 0
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<TableOfContents()>>

= Introduction =
I assume that an empty package is the easiest package.

One easy tool for creating small packages is equivs.

Here we will see how to create easily an empty debian binary package.

= first empty package =
== equivs-control ==
equivs-control generate a file which is close to debian/control in a debian source package.

{{{#!highlight console numbers=disable
$ equivs-control package-minimal
$ ls
package-minimal
}}}

You have to edit the file to modify and uncomment some lines.

{{{#!highlight console numbers=disable
$ more package-minimal
Package: package-minimal
Version: 1.0
Maintainer: a a <a@a.a>
}}}

== equivs-build ==

You can then create an empty debian binary package

{{{#!highlight console numbers=disable
$ equivs-build package-minimal
$ ls
package-minimal package-minimal_1.0_all.deb
}}}

you can control that it is lintian clean !
{{{#!highlight console numbers=disable
$ lintian package-minimal_1.0_all.deb
$
}}}

== installing the package ==

You have to be root to use dpkg -i

{{{#!highlight console numbers=disable
# dpkg -i p*.deb
}}}

But every on can use aptitude show

{{{#!highlight console numbers=disable
$ aptitude show package-minimal
Package: package-minimal
New: yes
State: installed
Automatically installed: no
Version: 1.0
}}}

= What next =
You can package [[Packaging/Trivial|some files]]

The is also [[CreateDummyPackage]]

== documentation ==
 * [[DebianMan:1/equivs-build|equivs-build(1)]] - make a Debian package to register local software
 * [[DebianMan:1/equivs-control|equivs-control(1)]] - create a configuration file for equivs-build