How To Install SFCGAL on Fedora 36

In this tutorial we learn how to install SFCGAL in Fedora 36. SFCGAL is C++ wrapper library around CGAL for PostGIS

lastmod: “2022-08-17” title: “How To Install SFCGAL on Fedora 36” #image: /images/fedora/36/SFCGAL-featured.png linkTitle: “SFCGAL”

type: “docs”

Introduction

description: “In this tutorial we learn how to install SFCGAL in Fedora 36. SFCGAL is C++ wrapper library around CGAL for PostGIS” In this tutorial we learn how to install SFCGAL on Fedora 36. date: “2022-08-17”

lastmod: “2022-08-17”

What is SFCGAL

#image: /images/fedora/36/SFCGAL-featured.png

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.


Introduction

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

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

Install SFCGAL on Fedora 36 Using dnf

What is SFCGAL

Update yum database with dnf using the following command.

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.

sudo dnf makecache --refresh

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

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

Install SFCGAL on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.
sudo dnf -y install SFCGAL

sudo dnf makecache --refresh

Install SFCGAL on Fedora 36 Using yum

Update yum database with yum using the following command. After updating yum database, We can install SFCGAL using dnf by running the following command:

```bash
sudo dnf -y install SFCGAL
sudo yum makecache --refresh


## Install SFCGAL on Fedora 36 Using yum
After updating yum database, We can install `SFCGAL` using `yum` by running the following command:


Update yum database with `yum` using the following command.
```bash

sudo yum -y install SFCGAL
```bash

sudo yum makecache –refresh

How To Uninstall SFCGAL on Fedora 36



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

After updating yum database, We can install `SFCGAL` using `yum` by running the following command:
```bash

sudo dnf remove SFCGAL
```bash

sudo yum -y install SFCGAL

SFCGAL Package Contents on Fedora 36


## How To Uninstall SFCGAL on Fedora 36
```bash

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

```bash
sudo dnf remove SFCGAL

SFCGAL Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/46
/usr/lib/.build-id/46/208dce8ac7372db692f8a7fde42e8dc5ca048d
/usr/lib64/libSFCGAL.so.1
/usr/lib64/libSFCGAL.so.1.4.0
/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 36 using yum and [dnf]((/fedora/36/dnf/).

/usr/lib/.build-id /usr/lib/.build-id/e4 /usr/lib/.build-id/e4/1f1fc3f9f5a920136bff246427cc3773019ef7 /usr/lib/libSFCGAL.so.1 /usr/lib/libSFCGAL.so.1.4.0 /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

* [SFCGAL website](https://gitlab.com/Oslandia/SFCGAL/)

## Summary

In this tutorial we learn how to install `SFCGAL` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).