Tag Archives: packages

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 myemail@domain.com
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 myscript.sh that you want to put in /usr/bin, you want ~/debian/usr/bin/myscript.sh
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/apt-cacher-import.pl -r /your/directory/path