Change Wine downgrading instructions for Mint

Grabbing the codename from the repo entry will always result in the
correct one.
This commit is contained in:
Robbert van der Helm
2021-06-19 15:15:04 +02:00
parent 4a7591b193
commit b81871e4bf
+1 -3
View File
@@ -203,12 +203,10 @@ Wine. This can be done as follows:
repositories linked above. This command is a bit complicated because on these repositories linked above. This command is a bit complicated because on these
distros the Wine package is split up into multiple smaller packages, and the distros the Wine package is split up into multiple smaller packages, and the
package versions include the distros codename (e.g. `focal`, or `buster`). package versions include the distros codename (e.g. `focal`, or `buster`).
Since Linux Mint uses the Ubuntu repositories here, you'd have to manually set
`codename` to either `focal` for Linux Mint 20, or `bionic` for Linux Mint 19.
```shell ```shell
version=6.4 version=6.4
codename=$(awk -F= '/VERSION_CODENAME/ { print $2 }' /etc/os-release) codename=$(awk '/^deb https:\/\/dl\.winehq\.org/ { print $3 }' /etc/apt/sources.list)
sudo apt install --install-recommends {winehq-staging,wine-staging,wine-staging-amd64,wine-staging-i386}=$version~$codename-1 sudo apt install --install-recommends {winehq-staging,wine-staging,wine-staging-amd64,wine-staging-i386}=$version~$codename-1
``` ```