Table Of Content
Thanks to Volker FrÃ¶hlich’s efforts, a source code RPM package (SRPM) of QGIS 2.0.1 is now available for Fedora. If you are not yet F20 user (like me), you can just take the F20 package and compile it for F19 (or even F18) since there will be no backport of QGIS 2 to F19 (it comes with QGIS 1.8). But: we do want QGIS 2 on Fedora19!
Solution: compile it yourself.
1. 1. Preparations
The best way isÂ to use “mock” which is used to recompile SRPMS in a separate local environment (“chroot”) without cluttering the system with extra packages needed for the compilation (run as “root”):
su yum install mock
2. 2. Get the source code
Next download the SRPM package from the KojiÂ server:
QGIS: Â http://koji.fedoraproject.org/koji/buildinfo?buildID=467757 (–> src – download) or check here for more recent versions.
3. 3. Compile it locally as RPM package
The general compilation command (“mock”) would be:
mock -r my_fedora_version_config --rebuild my_source_rpm.src.rpm
So, check for Fedora version config name which is suitable for your system (“my_fedora_version_config“)
In my case of a 64bit machine, it is “fedora-19-x86_64″. Hence we can compile QGIS 2.0.1 directly from the SRPM file:
mock -r fedora-19-x86_64 --rebuild qgis-2.0.1-2.fc20.src.rpm
Note: the compilation takes 40min on my tiny core i3 laptop (ASUS X202). Use the time to donate some coins to the QGIS project
4. 4. Install and enjoy
Once the compilation job is done, i.e. the binary RPM files are available for installation. To install the freshly compiled QGIS 2.0.1 RPMs, run:
cd /var/lib/mock/fedora-19-x86_64/result/ # an existing QGIS1.8 installation will be replaced: yum localinstall qgis-2.0.1-2.fc19.x86_64.rpm \ qgis-grass-2.0.1-2.fc19.x86_64.rpm qgis-python-2.0.1-2.fc19.x86_64.rpm # consider to cleanup (or keep it for the next update, it is about 1.5GB): rm -rf /var/lib/mock/fedora-19-x86_64/ # leave the "root" shell exit
Now we can happily use QGIS 2.0.1 on Fedora 19!