From cff79910d755d58ec9cb6837afb7614a7baf67f8 Mon Sep 17 00:00:00 2001 From: larsch Date: Fri, 10 May 2024 11:27:10 +0000 Subject: [PATCH] Update README.md --- README.md | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11a4a64..480f4a9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,40 @@ # registry-usage -How to use the Hoglandet linux registry \ No newline at end of file +These are instructions for how to use the Hoglandet Linux Package registry + +## Debian +```bash +# Install prerequisites +sudo apt-get update +sudo apt-get -y install gnupg2 apt-transport-https curl + +# Download and import the public key for verifying packages +sudo curl https://linux.pkg.hoglan.dev/debian/repository.key -o /etc/apt/trusted.gpg.d/hoglandet.asc + +# Add the package repository +echo "deb https://deb.pkg.hoglan.dev/debian stable main" | sudo tee /etc/apt/sources.list.d/hoglandet.list + +# Check that the repository works +sudo apt-get update + +``` + +## Alpine +```bash +# Install prerequisites +apk add --no-cache curl + +# Install the signing key +curl -JO --output-dir /etc/apk/keys https://linux.pkg.hoglan.dev/alpine/key + +# Add the repository +echo 'https://linux.pkg.hoglan.dev/alpine/stable/main' >> /etc/apk/repositories + +# Update the package list +apk update +``` + +## RPM +```bash +dnf config-manager --add-repo https://linux.pkg.hoglan.dev/linux/rpm.repo +``` \ No newline at end of file