Creating custom packages and adding to apt-cacher

To create a custom package:
1. mkdir ~/debian; mkdir ~/debian/DEBIAN
2. vi ~/debian/DEBIAN/control
Add some info to this file:
Package: hello
Priority: optional
Section: devel
Maintainer: My Name
Architecture: i386
Version: 0.5
Description: Test package
3. pretend that ~/debian is the root, and put your files inside any subdirectories as appropriate
eg, if you have a script called that you want to put in /usr/bin, you want ~/debian/usr/bin/
4. cd ~
5. dpkg-deb –build debian
6. rename the debian.deb file to your packagename-versionnumber.etc.deb

To get this into apt-cacher, you should put your custom packages into a directory, then run this:
/usr/share/apt-cacher/ -r /your/directory/path

Leave a Reply

Your email address will not be published. Required fields are marked *