I wanted to set up a local repository for DEB packages I create to be installed among a number of cluster nodes.
After building the deb package I added it to my home folder as follows and created the Packages.gz file:
apt-get install dpkg-dev
mkdir -p /home/jonnymcc/ubuntu_repo
cp slurm-14.03.3_14.03.3-1_armhf.deb /home/jonnymcc/ubuntu_repo
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
I can now add a new line to my apt sources.list file as follows:
deb file:/home/jonnymcc/ubuntu_repo ./
And install with:
apt-get install slurm
Next step is to make it available more widely over http.