How To Install mapnik on Fedora 34

mapnik is Free Toolkit for developing mapping applications Free Toolkit for developing mapping applications

Introduction

In this tutorial we learn how to install mapnik on Fedora 34.

What is mapnik

Mapnik is a Free Toolkit for developing mapping applications. It’s written in C++ and there are Python bindings to facilitate fast-paced agile development. It can comfortably be used for both desktop and web development, which was something I wanted from the beginning. Mapnik is about making beautiful maps. It uses the AGG library and offers world class anti-aliasing rendering with subpixel accuracy for geographic data. It is written from scratch in modern C++ and doesn’t suffer from design decisions made a decade ago. When it comes to handling common software tasks such as memory management, filesystem access, regular expressions, parsing and so on, Mapnik doesn’t re-invent the wheel, but utilises best of breed industry standard libraries from boost.org mapnik 3.1.0 5.fc34 x86_64 2.5 M mapnik-3.1.0-5.fc34.src.rpm fedora Free Toolkit for developing mapping applications http LGPLv2+ Mapnik is a Free Toolkit for developing mapping applications. It’s written in C++ and there are Python bindings to facilitate fast-paced agile development. It can comfortably be used for both desktop and web development, which was something I wanted from the beginning. Mapnik is about making beautiful maps. It uses the AGG library and offers world class anti-aliasing rendering with subpixel accuracy for geographic data. It is written from scratch in modern C++ and doesn’t suffer from design decisions made a decade ago. When it comes to handling common software tasks such as memory management, filesystem access, regular expressions, parsing and so on, Mapnik doesn’t re-invent the wheel, but utilises best of breed industry standard libraries from boost.org

We can use yum or dnf to install mapnik on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mapnik.

Install mapnik on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install mapnik using dnf by running the following command:

sudo dnf -y install mapnik

Install mapnik on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install mapnik using yum by running the following command:

sudo yum -y install mapnik

How To Uninstall mapnik on Fedora 34

To uninstall only the mapnik package we can use the following command:

sudo dnf remove mapnik

mapnik Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/ac782f7d283d24788167acc3b8b06836af2347
/usr/lib/.build-id/39
/usr/lib/.build-id/39/83e1d3d73e694c7f134b479de5ef5c62f3b9f4
/usr/lib/.build-id/42
/usr/lib/.build-id/42/11b7093a20867498228248148df25cd9c65a4e
/usr/lib/.build-id/44
/usr/lib/.build-id/44/989c16e4301edc74a571910388bf72ff1d7e51
/usr/lib/.build-id/53
/usr/lib/.build-id/53/f2bbecd19fae46a0235316b8caaaa2ea8e1b3d
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/70b189e217d97754bd61001de3c7974db06517
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/647193965a658391b9eb1dc478113685c1cd39
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/0dbb639e4b61a680e70bc47991b8d721f64ddc
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/3d69d015cf5bfc67d3d0cf3a3da5cfd03f8861
/usr/lib/.build-id/da
/usr/lib/.build-id/da/87ec6b4a275ec1865cade47405c3eeb644cce4
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/d7a3235d88440e189b0e999a6ad89471d904ea
/usr/lib/libmapnik.so.3.1
/usr/lib/libmapnik.so.3.1.0
/usr/lib/mapnik
/usr/lib/mapnik/input
/usr/lib/mapnik/input/csv.input
/usr/lib/mapnik/input/gdal.input
/usr/lib/mapnik/input/geojson.input
/usr/lib/mapnik/input/ogr.input
/usr/lib/mapnik/input/pgraster.input
/usr/lib/mapnik/input/postgis.input
/usr/lib/mapnik/input/raster.input
/usr/lib/mapnik/input/shape.input
/usr/lib/mapnik/input/sqlite.input
/usr/lib/mapnik/input/topojson.input
/usr/share/doc/mapnik
/usr/share/doc/mapnik/AUTHORS.md
/usr/share/doc/mapnik/CHANGELOG.md
/usr/share/doc/mapnik/README.md
/usr/share/licenses/mapnik
/usr/share/licenses/mapnik/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/37
/usr/lib/.build-id/37/9829d15e505c6fa41b6ad639e1be90575dd52a
/usr/lib/.build-id/58
/usr/lib/.build-id/58/59436cb0c021ccfb720da8413b7f05f5942b74
/usr/lib/.build-id/59
/usr/lib/.build-id/59/671b39ac05272c0dade66a2e7a22814146648a
/usr/lib/.build-id/62
/usr/lib/.build-id/62/b2a627cbbfdc20f5cb0e989bee59df0ed878e3
/usr/lib/.build-id/99
/usr/lib/.build-id/99/aec5575e9e9c70f3f452dcac641b2cb20c38a4
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/e12c0fb4cf9c99ce69588b56c927f9f27f7243
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/3d4e2e2e8fee81a03652b3ad4ec622aacd4633
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/be75ff854243cbd18ca69aee40d2161feaa908
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/9151309bc9d68978cd0454842d3386c4f61647
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/90f3a02a9099a2c36975746f61863cae78046b
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/bc3660f65a2be5d3058e38fe52edb03cdd7802
/usr/lib64/libmapnik.so.3.1
/usr/lib64/libmapnik.so.3.1.0
/usr/lib64/mapnik
/usr/lib64/mapnik/input
/usr/lib64/mapnik/input/csv.input
/usr/lib64/mapnik/input/gdal.input
/usr/lib64/mapnik/input/geojson.input
/usr/lib64/mapnik/input/ogr.input
/usr/lib64/mapnik/input/pgraster.input
/usr/lib64/mapnik/input/postgis.input
/usr/lib64/mapnik/input/raster.input
/usr/lib64/mapnik/input/shape.input
/usr/lib64/mapnik/input/sqlite.input
/usr/lib64/mapnik/input/topojson.input
/usr/share/doc/mapnik
/usr/share/doc/mapnik/AUTHORS.md
/usr/share/doc/mapnik/CHANGELOG.md
/usr/share/doc/mapnik/README.md
/usr/share/licenses/mapnik
/usr/share/licenses/mapnik/COPYING

References

Summary

In this tutorial we learn how to install mapnik on Fedora 34 using yum and dnf.