Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find another way of hosting DEB/RPM repos instead of JFrog #613

Closed
variar opened this issue Jun 25, 2023 · 8 comments
Closed

Find another way of hosting DEB/RPM repos instead of JFrog #613

variar opened this issue Jun 25, 2023 · 8 comments

Comments

@variar
Copy link
Owner

variar commented Jun 25, 2023

JFrog announced closing of their free tier. They do have progamm to support open source projects, but it is impossible to use because of some export regulations
image

Looks like klogg has to move to Ubuntu PPA / OpenSuse OBS.

@variar variar added this to the 2023.next milestone Jun 25, 2023
@variar variar self-assigned this Jun 25, 2023
@jeffjensen
Copy link

jeffjensen commented Jun 26, 2023 via email

@variar
Copy link
Owner Author

variar commented Jun 26, 2023

Thanks! That could be an option for APT packages.

@akwala
Copy link

akwala commented Jul 13, 2023

Relevant thread on Reddit had these suggestions, and this is the info I found about the hosted ones that offer both DEB and RPM:

I've also come across Packagecloud, which has a free plan with 2GB storage and 10GB bandwidth.

I've not used any of these, so don't know enough to recommend any.

@variar
Copy link
Owner Author

variar commented Jul 14, 2023

Thank you! Gitea option is interesting. It should be easy to self-host.

@variar
Copy link
Owner Author

variar commented Jul 15, 2023

Turns out that github pages can be used to host rpm/deb repositories. Could someone try if that works?

For DEB (replace <ubuntu_release> with one of bionic, focal, jammy):

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

For RPM (replace <oracle_release> with one of 7, 8):

/etc/yum.repos.d/klogg-rpm.repo
[Klogg]
name=Klogg
baseurl=https://klogg.filimonov.dev/rpm/oracle/<oracle_release>/amd64
gpgkey=https://klogg.filimonov.dev/klogg.gpg.key
enabled=1

@variar variar added the status: ready for testing resolved but needs testing label Jul 15, 2023
@akwala
Copy link

akwala commented Jul 15, 2023

For DEB (replace <ubuntu_release> with one of bionic, focal, jammy):

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

There needs to be a leading slash in the signed-by value: signed-by=/etc/apt/trusted.gpg.d/klogg.gpg.

However, that location "is completely and unconditionally trusted by apt." I put the key in /usr/share/keyrings which already had other keys – the post suggests /usr/local/share/keyrings. And I replaced /etc/apt/sources.list.d/klogg.list, instead of appending to /etc/apt/sources.list.

The following worked for me:

curl -sS https://klogg.filimonov.dev/klogg.gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/klogg.gpg
echo "deb [signed-by=/usr/share/keyrings/klogg.gpg] https://klogg.filimonov.dev/deb/jammy jammy utils" | sudo tee /etc/apt/sources.list.d/klogg.list

For other supported Ubuntu releases, substitute "jammy" with the appropriate release name.

@ofernandofilo
Copy link

ofernandofilo commented Jul 16, 2023

using KDE neon... I did as recommended by akwala, then,

sudo mousepad /etc/apt/sources.list

and removed this line:

deb [trusted=yes] https://favpackage.jfrog.io/artifactory/klogg_deb/ jammy utils

it is working, I guess...

apt search klogg

# result
Sorting... Done
Full Text Search... Done
klogg/unknown,now 22.06.0.1289 amd64 [installed]
  klogg log viewer

thx _o/

@variar
Copy link
Owner Author

variar commented Jul 16, 2023

Thank you! I've updated installation guide in README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants