How to make your custom debian packages apt-gettable | ||
---|---|---|
Prev |
You don't need apt-ftparchive (1) (which is not available on a potato system) to make your custom package apt-gettable.
apt-get (8) needs package overview files Packages.gz (for binary packages) and Sources.gz (for source package). To create them, use dpkg-scanpackages (8) (for Packages.gz) and dpkg-scansources (8) (for Sources.gz).
You need the following files to create them:
the binary packages (.deb)
the source packages (.orig.tar.gz, .diff.gz and .dsc)
the override file (optional), which is described below
dpkg-scanpackages needs the override file. It is a text file for overriding the Priority: and Section: fields of the control file. It has the following format (one line for one package):
<package> <priority> <section> [<maintainerinfo>] |
If you don't care the Priority: and Section: fields, you can use /dev/null as the override file. Run dpkg-scanpackages in this way:
$ dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz |
For source packages, use dpkg-scansources instead.
$ dpkg-scansources . /dev/null | gzip -9c > Sources.gz |
Upload the packages, the files Packages.gz and Sources.gz in the same directory of your web server, say, http://your.web.server/debian-custom/ .
In the above example, the "apt lines" (the lines for /etc/apt/sources.list) are:
deb http://your.web.server/debian-custom/ ./ deb-src http://your.web.server/debian-custom/ ./ |