docs: Fix Fedora Repository, Icinga DB, SELinux#10479
Merged
julianbrost merged 1 commit intomasterfrom Jun 17, 2025
Merged
Conversation
oxzi
added a commit
to oxzi/icinga-package-installation-docs
that referenced
this pull request
Jun 17, 2025
With Fedora 41, DNF was upgraded to version 5, breaking the command line API of "dnf config-manager"[^0]. Unfortunately, DNF 5's addrepo does not work with a simple URL anymore, but requires to construct a .repo file. Furthermore, no information about trusting the Icinga signing key was available, resulting in one being unable to install packages. This was already the case for Fedora 40, still using DNF 4. This change is identical to another one in the Icinga 2 repo[^1]. [^0]: https://docs.fedoraproject.org/en-US/quick-docs/adding-or-removing-software-repositories-in-fedora/#_adding_repositories [^1]: Icinga/icinga2#10479
This was referenced Jun 17, 2025
oxzi
added a commit
to oxzi/icinga-package-installation-docs
that referenced
this pull request
Jun 17, 2025
With Fedora 41, DNF was upgraded to version 5, breaking the command line API of "dnf config-manager"[^0]. Unfortunately, DNF 5's addrepo does not work with a simple URL anymore, but requires to construct a .repo file. Furthermore, no information about trusting the Icinga signing key was available, resulting in one being unable to install packages. This was already the case for Fedora 40, still using DNF 4. This change is identical to another one in the Icinga 2 repo[^1]. [^0]: https://docs.fedoraproject.org/en-US/quick-docs/adding-or-removing-software-repositories-in-fedora/#_adding_repositories [^1]: Icinga/icinga2#10479
julianbrost
reviewed
Jun 17, 2025
doc/02-installation.md
Outdated
Comment on lines
108
to
122
| #### Fedora 40 or earlier | ||
|
|
||
| ```bash | ||
| dnf install -y 'dnf-command(config-manager)' | ||
| dnf config-manager --add-repo https://packages.icinga.com/fedora/$(. /etc/os-release; echo "$VERSION_ID")/release | ||
| rpm --import https://packages.icinga.com/icinga.key | ||
| ``` | ||
|
|
||
| #### Fedora 41 or later | ||
|
|
||
| ```bash | ||
| dnf install -y 'dnf-command(config-manager)' | ||
| dnf config-manager addrepo --id=packages.icinga.com --set=name=Icinga --set=baseurl="https://packages.icinga.com/fedora/$(. /etc/os-release; echo "$VERSION_ID")/release" | ||
| rpm --import https://packages.icinga.com/icinga.key | ||
| ``` |
Member
There was a problem hiding this comment.
but requires to construct a .repo file
We actually already provide that file on packages.icinga.com. For reference, in our container images, we do the following which works across all Fedora versions:
rpm --import https://packages.icinga.com/icinga.key
curl -o /etc/yum.repos.d/ICINGA-release.repo https://packages.icinga.com/fedora/ICINGA-release.repoSo I'd suggest using that instead as it's a simpler command and needs no version distinction.
Member
Author
There was a problem hiding this comment.
Good catch, thanks! I have changed the PR accordingly to get rid of the version-dependent cases.
oxzi
added a commit
to oxzi/icinga-package-installation-docs
that referenced
this pull request
Jun 17, 2025
With Fedora 41, DNF was upgraded to version 5, breaking the command line API of "dnf config-manager"[^0]. Unfortunately, DNF 5's addrepo does not work with a simple URL anymore, but requires to construct a .repo file. Furthermore, no information about trusting the Icinga signing key was available, resulting in one being unable to install packages. This was already the case for Fedora 40, still using DNF 4. This change is identical to another one in the Icinga 2 repo[^1]. [^0]: https://docs.fedoraproject.org/en-US/quick-docs/adding-or-removing-software-repositories-in-fedora/#_adding_repositories [^1]: Icinga/icinga2#10479
5ae5660 to
b0b0331
Compare
b0b0331 to
cd1ec69
Compare
With Fedora 41, DNF was upgraded to version 5, breaking the command line API of "dnf config-manager"[^0]. Unfortunately, DNF 5's addrepo does not work with a simple URL anymore, but requires to construct a .repo file. Furthermore, no information about trusting the Icinga signing key was available, resulting in one being unable to install packages. This was already the case for Fedora 40, still using DNF 4. Since we are building Icinga DB for Fedora, I have included Icinga DB documentation for Fedora. Otherwise, this section was empty. Finally, the icingadb-redis-selinux package was mentioned for distributions were we started to build SELinux packages for[^1]. [^0]: https://docs.fedoraproject.org/en-US/quick-docs/adding-or-removing-software-repositories-in-fedora/#_adding_repositories [^1]: Icinga/icingadb#580
cd1ec69 to
881e1cc
Compare
julianbrost
approved these changes
Jun 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With Fedora 41, DNF was upgraded to version 5, breaking the command line API of "dnf config-manager"1. Unfortunately, DNF 5's addrepo does not work with a simple URL anymore, but requires to construct a .repo file.
Furthermore, no information about trusting the Icinga signing key was available, resulting in one being unable to install packages. This was already the case for Fedora 40, still using DNF 4.
Since we are building Icinga DB for Fedora, I have included Icinga DB documentation for Fedora. Otherwise, this section was empty.
Finally, the icingadb-redis-selinux package was mentioned for distributions were we started to build SELinux packages for2.
Footnotes
https://docs.fedoraproject.org/en-US/quick-docs/adding-or-removing-software-repositories-in-fedora/#_adding_repositories ↩
SELinux package (like the Icinga 2 one) icingadb#580 ↩