Wednesday, November 18, 2015

Creating a Debian repository

I wanted to automate setting up my custom application on multiple Raspberry PI's. It was time to learn how to set up a Debian repository.

On my personal web server, the steps to create the repository:

cd /var/www
mkdir debian
cp /path/to/my-package_0.0-1_armhf.deb debian/
dpkg-scanpackages debian /dev/null | gzip -9c >debian/Packages.gz

On each Raspberry:

sudo sh -c "echo 'deb debian/' > /etc/apt/sources.list.d/myserver.list"
aptitude update
aptitude install my-package

Helpful, almost complete instructions I found at and