Fedora WinHQ packages repository configuration suggestion

Post issues, bugs, and feature requests about the various WineHQ websites to this forum.
Locked
msmafra
Newbie
Newbie
Posts: 2
Joined: Sun Feb 14, 2021 8:18 am

Fedora WinHQ packages repository configuration suggestion

Post by msmafra »

Hello there!

Just have two suggestion for the Fedora winehq repo config and the .repo files themselves.

Instead of using the specific version

Code: Select all

dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/33/winehq.repo
use some form of automatically get the current Fedora version:

Code: Select all

sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/$(awk -F"=" '/VERSION_ID/ {print $2}' /etc/os-release)/winehq.repo
or RPMFusion like

Code: Select all

sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/$(rpm -E %fedora)/winehq.repo
or

Code: Select all

sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/$(awk '{print $3}' /etc/system-release)/winehq.repo
And the repository configuration file can be in one place and use the $releasever variable used in the .repo files:

Code: Select all

[WineHQ]
name=WineHQ packages
type=rpm-md
baseurl=https://dl.winehq.org/wine-builds/fedora/$releasever
gpgcheck=1
gpgkey=https://dl.winehq.org/wine-builds/winehq.key
enabled=1
User avatar
dimesio
Moderator
Moderator
Posts: 13200
Joined: Tue Mar 25, 2008 10:30 pm

Re: Fedora WinHQ packages repository configuration suggestion

Post by dimesio »

That might work well for advanced users, but for inexperienced users seems overly long and complicated.
msmafra
Newbie
Newbie
Posts: 2
Joined: Sun Feb 14, 2021 8:18 am

Re: Fedora WinHQ packages repository configuration suggestion

Post by msmafra »

Yes, it's complicated, but I think like me, people will copy and paste the line to avoid miss typing something.
Locked