Contents
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.
Then we will see that it can be usefull to install some packages.
first empty package
aptitude show
control that the name of the package is not already used by some other package
# aptitude show package-minimal
E: Unable to locate package package-minimal
equivs-control
equivs-control generate a file which is close to debian/control in a debian source package.
$ equivs-control package-minimal
$ ls
package-minimal
You have to edit the file to modify and uncomment some lines.
$ 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
$ equivs-build package-minimal
$ ls
package-minimal package-minimal_1.0_all.deb
you can control that it is lintian clean !
$ lintian package-minimal_1.0_all.deb
$
installing the package
You have to be root to use dpkg -i
# dpkg -i p*.deb
But everyone can use with aptitude show
$ aptitude show package-minimal
Package: package-minimal
New: yes
State: installed
Automatically installed: no
Version: 1.0
removing the package
remove the package
# aptitude remove package-minimal
control that the package was removed
# aptitude show package-minimal
E: Unable to locate package package-minimal
install some packages
You have to create a local repository to use aptitude.
Choose a name for the package that is not already used (aptitude show).
$ more package-depends
Package: package-depends
Version: 1.0
Maintainer: a a <a@a.a>
Depends: lintian, packaging-tutorial
You have install the package with aptitude.
# aptitude install package-depends
If you remove the package then the dependencies will also be removed !
What next
You can package some files
documentation
equivs-build(1) - make a Debian package to register local software
equivs-control(1) - create a configuration file for equivs-build
