How To Install geos on Fedora 34

geos is GEOS is a C++ port of the Java Topology Suite GEOS is a C++ port of the Java Topology Suite

Introduction

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

What is geos

GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS). As such, it aims to contain the complete functionality of JTS in C++. This includes all the OpenGIS “Simple Features for SQL” spatial predicate functions and spatial operators, as well as specific JTS topology functions such as IsValid() geos 3.9.0 4.fc34 x86_64 686 k geos-3.9.0-4.fc34.src.rpm updates GEOS is a C++ port of the Java Topology Suite http LGPLv2 GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS). As such, it aims to contain the complete functionality of JTS in C++. This includes all the OpenGIS “Simple Features for SQL” spatial predicate functions and spatial operators, as well as specific JTS topology functions such as IsValid()

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

Install geos 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 geos using dnf by running the following command:

sudo dnf -y install geos

Install geos 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 geos using yum by running the following command:

sudo yum -y install geos

How To Uninstall geos on Fedora 34

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

sudo dnf remove geos

geos Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/8d9c06d00a833aef62228776ba47629692d024
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/a0e8548536cb1165ae8944e16a5b0f9a897201
/usr/lib/libgeos.so.3.9.0
/usr/lib/libgeos_c.so.1
/usr/lib/libgeos_c.so.1.16.2
/usr/share/doc/geos
/usr/share/doc/geos/AUTHORS
/usr/share/doc/geos/NEWS
/usr/share/doc/geos/README.md
/usr/share/licenses/geos
/usr/share/licenses/geos/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/87
/usr/lib/.build-id/87/e9a9a17932939fda0d4fa1fe3cc38571f81032
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/36f6eeb48508a1586ff095e6ced7ff03216ff9
/usr/lib/libgeos.so.3.9.0
/usr/lib/libgeos_c.so.1
/usr/lib/libgeos_c.so.1.16.2
/usr/share/doc/geos
/usr/share/doc/geos/AUTHORS
/usr/share/doc/geos/NEWS
/usr/share/doc/geos/README.md
/usr/share/licenses/geos
/usr/share/licenses/geos/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/aee37d6fabaf5ea273c67df4836709308c3da0
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/ed216cc503a978d2a5c373fafd0a37df0d02f5
/usr/lib64/libgeos.so.3.9.0
/usr/lib64/libgeos_c.so.1
/usr/lib64/libgeos_c.so.1.16.2
/usr/share/doc/geos
/usr/share/doc/geos/AUTHORS
/usr/share/doc/geos/NEWS
/usr/share/doc/geos/README.md
/usr/share/licenses/geos
/usr/share/licenses/geos/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/48795976d9a211b225d98164813ec413ca076e
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/1cce0444f0b72808ea38cf6abe72259b105c75
/usr/lib64/libgeos.so.3.9.0
/usr/lib64/libgeos_c.so.1
/usr/lib64/libgeos_c.so.1.16.2
/usr/share/doc/geos
/usr/share/doc/geos/AUTHORS
/usr/share/doc/geos/NEWS
/usr/share/doc/geos/README.md
/usr/share/licenses/geos
/usr/share/licenses/geos/COPYING

References

Summary

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