I found it is difficult to build older versions of QGIS on linux due to the shifting dependencies. Or sometimes you just want to test an issue with the windows build but you don't want to use a VM etc. to test. So I went on a quick diversion and installed QGIS from Wine. In this case I wanted to test something on QGIS circa v 3.0.x:
sudo apt install wine
wget -o https://qgis.org/downloads/QGIS-OSGeo4W-3.0.1-1-Setup-x86_64.exe
wine QGIS-OSGeo4W-3.0.1-1-Setup-x86_64.exe
You can substitute the installer URL with any of the builds available at https://qgis.org/downloads/. Once you have downloaded the installer, press next to work your way through the installer steps. Now make a few small tweaks so you can launch the app.
cd ${HOME}/.wine/drive_c/Program\ Files/QGIS\ 3.0/bin
cp qgis.bat.tmpl qgis.bat
wine explorer
Now navigate to C:\Program Files\QGIS 3.0\bin
and double click on QGIS.bat
I'm in trouble with it. Could you help me?