How To Install SFCGAL on Fedora 34

SFCGAL is C++ wrapper library around CGAL for PostGIS C++ wrapper library around CGAL for PostGIS

Introduction

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

What is SFCGAL

SFCGAL is a C++ wrapper library around CGAL with the aim of supporting ISO 19107 SFCGAL provides standard compliant geometry types and operations, that can be accessed from its C or C++ APIs. PostGIS uses the C API, to expose some SFCGAL’s functions in spatial databases (cf. PostGIS manual). Geometry coordinates have an exact rational number representation and can be either 2D or 3D. SFCGAL 1.3.10 4.fc34 x86_64 1.7 M SFCGAL-1.3.10-4.fc34.src.rpm updates C++ wrapper library around CGAL for PostGIS https LGPLv2 SFCGAL is a C++ wrapper library around CGAL with the aim of supporting ISO 19107 SFCGAL provides standard compliant geometry types and operations, that can be accessed from its C or C++ APIs. PostGIS uses the C API, to expose some SFCGAL’s functions in spatial databases (cf. PostGIS manual). Geometry coordinates have an exact rational number representation and can be either 2D or 3D.

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

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

sudo dnf -y install SFCGAL

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

sudo yum -y install SFCGAL

How To Uninstall SFCGAL on Fedora 34

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

sudo dnf remove SFCGAL

SFCGAL Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/8bc09ee6dc128e2fb0626550f7e90f87f5eea3
/usr/lib64/libSFCGAL.so.1
/usr/lib64/libSFCGAL.so.1.3.10
/usr/share/doc/SFCGAL
/usr/share/doc/SFCGAL/AUTHORS
/usr/share/doc/SFCGAL/NEWS
/usr/share/doc/SFCGAL/README.md
/usr/share/licenses/SFCGAL
/usr/share/licenses/SFCGAL/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/db
/usr/lib/.build-id/db/ab6583dd2f2d75e26a0dd59cea61f199ffb5e2
/usr/lib/libSFCGAL.so.1
/usr/lib/libSFCGAL.so.1.3.10
/usr/share/doc/SFCGAL
/usr/share/doc/SFCGAL/AUTHORS
/usr/share/doc/SFCGAL/NEWS
/usr/share/doc/SFCGAL/README.md
/usr/share/licenses/SFCGAL
/usr/share/licenses/SFCGAL/LICENSE

References

Summary

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