====== Host an apt repo ====== Big thanks to https://earthly.dev/blog/creating-and-hosting-your-own-deb-packages-and-apt-repo/ Live system at pkg.julian-lemmerich.de/deb ==== Setup ==== sudo apt-get install -y dpkg-dev gpg Start at [[https://earthly.dev/blog/creating-and-hosting-your-own-deb-packages-and-apt-repo/#step-2-creating-an-apt-repository|Step 2]], i already have built .deb packages ==== Adding a new package: ==== ''~'' is root of webserver, like pkg.julian-lemmerich.de This Folder (''~/deb/pool/main/'') contains all the packages. Create subfolder for the packages for easier management. Like ''./i/ical-relay/'' Add a new debian file to the ''~/deb/pool/main//'' and then Run the script from https://github.com/jm-lemmi/apt-repo. ''apt-repo.sh '' The filename here is not a relative path, but just the filename. ==== Install repo ==== echo "deb [arch=amd64] http://pkg.julian-lemmerich.de/deb stable main" | tee /etc/apt/sources.list.d/jm-lemmi.list curl http://pkg.julian-lemmerich.de/deb/gpg.key | apt-key add - apt update apt install ical-relay ==== Watch out ==== The paths in ''Packages'' are relative paths! ==== See also ==== * [[documentation:systems:pkg-builder|pkg-builder.stu]]