Closed foopsss closed 2 years ago
Shouldn't there be a better way of doing this? Seems a bit hacky but I've never used Silverblue
Shouldn't there be a better way of doing this? Seems a bit hacky but I've never used Silverblue
Yeah, it's a bit hacky but that's how it is, since the yum.repos.d
folder can be written by the user. The only other way to do this works pretty much the same, but uses the sudo ostree remote add <nameofrepo> <repo file URL>
command, now that I see, which might look fancier for some people.
I've seen both the wget
approach and the ostree remote add
one be recommended to Silverblue users without much difference, and there's an article on Fedora Magazine that recommends both, but I can change the pull request if it makes it better.
Sources:
I'll look at this tomorrow, sorry for the delay
The ostree remote add
version looks a lot better and less "intimidating" so I'd go with that one
Done. The instructions now use ostree remote add
.
The command ostree remote add
is intended specifically for adding OSTree remotes, which is a different concept altogether.
The aforementioned command won't work for the use case of adding DNF repositories, as you've described.
Instead, I recommend using the following command:
sudo curl -sL -o /etc/yum.repos.d/erikreider-sway.repo https://copr.fedorainfracloud.org/coprs/erikreider/SwayNotificationCenter/repo/fedora-$(rpm -E %fedora)/erikreider-SwayNotificationCenter-fedora-$(rpm -E %fedora).repo && \
rpm-ostree install SwayNotificationCenter
Regarding the information from the Fedora discussion posts, it appears to be inaccurate. The author himself admitted that he never actually attempted the process, suggesting that his answer is primarily based on speculation rather than first-hand experience or concrete knowledge.
Looking into it further you seem to be correct. I'll update the README, thanks! :)
Fixed in 9824048
Inmutable Fedora systems cannot add COPR repos like the normal Workstation edition as they don't use DNF outside of containers. This pull request addresses this and adds the required instructions for those who may not know.
I'm not exactly sure if repo files for older Fedora versions are taken out once they go EOL, so I just chose to go with the Rawhide repo file since it's exactly the same as the other ones and probably will stay there forever. During the installation, the package corresponding to your Fedora version will be chosen so there should be no problems.