Skip to content

Commit

Permalink
build: update links to DEB/RPM repos (#613) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Jul 15, 2023
1 parent 922e04d commit 3e30ea6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Expand Up @@ -132,12 +132,13 @@ Package for Mac can be installed from Homebrew
#### Linux
It is recommended to use klogg package from distribution-specific [repositories](https://repology.org/project/klogg/versions).

Generic packages are available from klogg DEB and RPM repositories hosted at JFrog Artifactory.
They are built to run on Ubuntu 18.04/20.04/22.04 and Centos 7 (x86-64 only).
Generic packages are available from klogg DEB and RPM repositories hosted at GitHub Pages.
They are built to run on Ubuntu 18.04/20.04/22.04 and Oracle Linux 7/8 (x86-64 only).

For DEB add klogg artifactory repository (replace `<ubuntu_release>` with one of `bionic`, `focal`, `jammy`):
For DEB add klogg repository (replace `<ubuntu_release>` with one of `bionic`, `focal`, `jammy`):
```
echo deb [trusted=yes] https://favpackage.jfrog.io/artifactory/klogg_deb <ubuntu_release> utils | sudo tee -a /etc/apt/sources.list
curl -sS https://klogg.filimonov.dev/klogg.gpg.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/klogg.gpg
echo deb [signed-by=etc/apt/trusted.gpg.d/klogg.gpg] https://klogg.filimonov.dev/deb/<ubuntu_release> <ubuntu_release> utils | sudo tee -a /etc/apt/sources.list
```

Then install using apt
Expand All @@ -146,14 +147,13 @@ sudo apt-get update
sudo apt install klogg
```


For RPM create klogg repo file in `/etc/yum.repos.d/klogg-rpm.repo` with this content:
For RPM create klogg repo file in `/etc/yum.repos.d/klogg-rpm.repo` with this content (replace `<oracle_release>` with one of `7`, `8`):
```
[Klogg]
name=Klogg
baseurl=https://favpackage.jfrog.io/artifactory/klogg_rpm/
baseurl=https://klogg.filimonov.dev/rpm/oracle/<oracle_release>/amd64
gpgkey=https://klogg.filimonov.dev/klogg.gpg.key
enabled=1
gpgcheck=0
```

Then install using yum
Expand Down
8 changes: 8 additions & 0 deletions packaging/linux/deb
@@ -0,0 +1,8 @@
https://pmateusz.github.io/linux/2017/06/30/linux-secure-apt-repository.html

gpg --output private.pgp --armor --export-secret-subkey B8A34571
podman --rm --ti -v .:/klogg docker.io/ubuntu:jammy

apt install reprepro
gpg --import private.pgp
reprepro --basedir /klogg/website/public/deb/focal/ includedeb focal klogg-22.06.0.1289-Linux-amd64-focal.deb
10 changes: 10 additions & 0 deletions packaging/linux/rpm
@@ -0,0 +1,10 @@
gpg --output private.pgp --armor --export-secret-subkey B8A34571

podman run -v .:/klogg --rm -ti docker.io/oraclelinux:8
yum install createrepo rpm-sign
gpg --import private.pgp
echo "%_gpg_name FE39EDA4B8A34571" >> ~/.rpmmacros
mv ../klogg-22.06.0.1289-Linux-amd64-oracle8.rpm oracle/8/amd64/RPMS
rpm --addsign oracle/8/amd64/RPMS/klogg-22.06.0.1289-Linux-amd64-oracle8.rpm
createrepo oracle/8/amd64
gpg --pinentry-mode loopback --detach-sign --armor --default-key FE39EDA4B8A34571 oracle/8/amd64/repodata/repomd.xml

0 comments on commit 3e30ea6

Please sign in to comment.