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

Feature request: Make fedora repository easier to use #377

Open
ProbstDJakob opened this issue Apr 3, 2024 · 1 comment
Open

Feature request: Make fedora repository easier to use #377

ProbstDJakob opened this issue Apr 3, 2024 · 1 comment

Comments

@ProbstDJakob
Copy link

Repository configurations for fedora support using repo variables (see the docs). Those variables would make it easier to use the repo. Especially when upgrade to a newer fedora version, no manual actions must be performed. Furthermore when uploading the repo config file, the setup would be even easier. A good example would be the docker repo for fedora (repo and docs). The following example would map this to the tuxedo repo:

The content of tuxedo.repo:

[tuxedo]
name=Tuxedo - $basearch
baseurl=https://rpm.tuxedocomputers.com/fedora/$releasever/$basearch/base/
enabled=1
gpgcheck=1
gpgkey=https://rpm.tuxedocomputers.com/fedora/gpg

Note the missing skip_if_unavailable=False. Unless there is a good reason for adding this line, I would suggest removing it since otherwise one could only update to newer fedora versions as soon as you support it (BTW: you currently not support fedora 40 which is on the horizon, see the schedule - at least the tuxedo-drivers work on fedora 40, the rest I have not installed) and if your web server is down, users could not update their packages.

Furthermore I used a more readable name for the gpg key without multiple copies of the same within the version subdirectories. If there is a reason of copying the same key into the different subdirectories, one could use the line gpgkey=https://rpm.tuxedocomputers.com/fedora/$releasever/gpg.
To provide backwards compatibility the subdirectories 37, 38, and 39 should still contain the gpg key with the old name, but 40 should not.

The content of the file then should be uploaded to https://rpm.tuxedocomputers.com/fedora/tuxedo.repo. These changes would make it possible to set up the repo as simple as running the command:

$ sudo dnf config-manager --add-repo https://rpm.tuxedocomputers.com/fedora/tuxedo.repo

When installing a package from this repo, the gpg key will automatically be imported (after the user accepted the key). The fingerprint of the key should be included in your docs so that the user is able to check if everything is good (like docker does it, see).

@XSpielinbox
Copy link

Thank you for supporting Fedora Linux via a RPM Repo.

Nevertheless, I agree. I would be interested in this improvement as well. If there is anything I can help with, please let me know.

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

No branches or pull requests

2 participants