# Install cgal with Homebrew, apk, apt, dnf, Nix, pacman, zypper

Computational Geometry Algorithms Library. Version 6.2 via Homebrew; verified 2026-06-11.

## Install

```sh
sudo av install brew:cgal
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cgal
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cgal
```

  Evidence: Alpine Linux edge package indexes: cgal from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libcgal-demo
```

  Evidence: Debian stable package indexes: libcgal-demo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install CGAL-demos-source
```

  Evidence: Fedora Rawhide package metadata: CGAL-demos-source from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#cgal
```

  Evidence: nixpkgs package indexes: pkgs/by-name/cg/cgal/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cgal
```

  Evidence: Arch Linux sync databases: cgal from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install cgal-demo-examples-devel
```

  Evidence: openSUSE Tumbleweed package metadata: cgal-demo-examples-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:cgal
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cgal>
- **Version:** 6.2
- **Source summary:** Computational Geometry Algorithms Library
- **Homepage:** <https://www.cgal.org/>
- **Repository:** <https://github.com/CGAL/cgal>
- **Upstream docs:** <https://doc.cgal.org/latest/Manual/index.html>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/CGAL/cgal/releases/download/v6.2/CGAL-6.2.tar.xz>
- **Last updated:** 2026-06-11T14:15:32Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cgal_create_CMakeLists (cli)
- cgal_create_cmake_script (cli)
- cgal_create_CMakeLists (alias)
- cgal_create_cmake_script (alias)

## Dependencies

- boost
- eigen
- gmp
- mpfr

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 6.2
- Package-manager updated: 2026-06-11
- Local data: ok
- Upstream repository: https://github.com/CGAL/cgal
- info: No cached GitHub release or tag data was available.
## Project history and usage

CGAL, the Computational Geometry Algorithms Library, is a C++ library for reliable and efficient computational geometry algorithms.

### Project history

The CGAL project started in 1996 as a consortium of seven sites in Europe and Israel, building on earlier internal geometry software such as PlaGeo, SpaGeo, the geometry part of LEDA, and INRIA Sophia-Antipolis's C++GAL.

### Adoption history

The project moved from an academic-use license model to an open source license in November 2003 and published open source project rules and procedures in October 2005. The official repository notes that source tarballs, released twice a year, are the primary distribution vector.

### How it is used

CGAL is used as a library rather than a single end-user CLI. Its packages cover kernels, convex hulls, triangulations, Voronoi diagrams, mesh generation, geometry processing, spatial searching, interpolation, and visualization support.

### Why package nerds care

For package maintainers, CGAL matters because it is a large, template-heavy C++ geometry stack whose build and dependency behavior changed notably when version 5.0 became header-only.

### Timeline

- 1996: CGAL started as a consortium project.
- 2003: CGAL adopted an open source license.
- 2005: CGAL published open source project rules and procedures.
- 5.0: CGAL became header-only according to the official repository README.

### Related projects

- The official history cites PlaGeo, SpaGeo, LEDA, and C++GAL as predecessor or contributing internal projects.

### Sources

- <https://api.github.com/repos/CGAL/cgal>
- <https://github.com/CGAL/cgal>
- <https://www.cgal.org/>
- <https://doc.cgal.org/latest/Manual/index.html>
- <https://www.cgal.org/documentation.html>
- <https://formulae.brew.sh/api/formula/cgal.json>
- <https://github.com/CGAL/cgal/blob/master/README.md>
- <https://www.cgal.org/partners.html>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cgal
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libcgal-demo - 6.0.1-1: normalized package name match | Debian stable package indexes: libcgal-demo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ library for computational geometry (demos) | https://www.cgal.org/
- Debian apt - libcgal-dev - 6.0.1-1: normalized package name match | Debian stable package indexes: libcgal-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ library for computational geometry (development files) | https://www.cgal.org/
- Debian apt - libcgal-ipelets - 6.0.1-1: normalized package name match | Debian stable package indexes: libcgal-ipelets from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ library for computational geometry (ipelets) | https://www.cgal.org/
- Debian apt - libcgal-qt6-dev - 6.0.1-1: normalized package name match | Debian stable package indexes: libcgal-qt6-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ library for computational geometry (development files, support for Qt6) | https://www.cgal.org/
- Nix - cgal: normalized package name match | nixpkgs package indexes: pkgs/by-name/cg/cgal/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcgal-demo - 5.6-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libcgal-demo from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ library for computational geometry (demos) | https://www.cgal.org/
- Ubuntu apt - libcgal-dev - 5.6-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libcgal-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ library for computational geometry (development files) | https://www.cgal.org/
- Ubuntu apt - libcgal-ipelets - 5.6-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libcgal-ipelets from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ library for computational geometry (ipelets) | https://www.cgal.org/
- Ubuntu apt - libcgal-qt5-dev - 5.6-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libcgal-qt5-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ library for computational geometry (development files, support for Qt5) | https://www.cgal.org/
- apk - cgal - 6.0.1-r0: normalized package name match | Alpine Linux edge package indexes: cgal from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Efficient and reliable geometric algorithms as C++ library | https://www.cgal.org/
- apk - cgal-dev - 6.0.1-r0: normalized package name match | Alpine Linux edge package indexes: cgal-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Efficient and reliable geometric algorithms as C++ library (development files) | https://www.cgal.org/
- apk - cgal-doc - 6.0.1-r0: normalized package name match | Alpine Linux edge package indexes: cgal-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Efficient and reliable geometric algorithms as C++ library (documentation) | https://www.cgal.org/
- dnf - CGAL-demos-source - 6.2-0.1.beta1.fc45: normalized package name match | Fedora Rawhide package metadata: CGAL-demos-source from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Examples and demos of CGAL algorithms | http://www.cgal.org/
- dnf - CGAL-devel - 6.2-0.1.beta1.fc45: normalized package name match | Fedora Rawhide package metadata: CGAL-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files and tools for CGAL applications | http://www.cgal.org/
- dnf - CGAL-qt6-devel - 6.2-0.1.beta1.fc45: normalized package name match | Fedora Rawhide package metadata: CGAL-qt6-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files and tools for CGAL applications using CGAL_qt6 | http://www.cgal.org/
- pacman - cgal - 6.1.1-1: normalized package name match | Arch Linux sync databases: cgal from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Computational Geometry Algorithms Library | https://www.cgal.org


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [colmap](https://www.automicvault.com/pkg/brew/colmap/) - Popular package that depends on this formula.
- [graph-tool](https://www.automicvault.com/pkg/brew/graph-tool/) - Popular package that depends on this formula.
- [sfcgal](https://www.automicvault.com/pkg/brew/sfcgal/) - Popular package that depends on this formula.
- [ada-url](https://www.automicvault.com/pkg/brew/ada-url/) - Shares av.db curated category or tags: cli, cpp, developer-tools, libraries, library.
- [curlpp](https://www.automicvault.com/pkg/brew/curlpp/) - Shares av.db curated category or tags: cli, cpp, developer-tools, libraries, library.
- [activemq-cpp](https://www.automicvault.com/pkg/brew/activemq-cpp/) - Shares av.db curated category or tags: cli, cpp, developer-tools, libraries.
- [ctemplate](https://www.automicvault.com/pkg/brew/ctemplate/) - Shares av.db curated category or tags: cli, developer-tools, libraries, library.
- [etl](https://www.automicvault.com/pkg/brew/etl/) - Shares av.db curated category or tags: cli, cpp, developer-tools, libraries.
- [flickcurl](https://www.automicvault.com/pkg/brew/flickcurl/) - Shares av.db curated category or tags: cli, developer-tools, libraries, library.
- [fonttools](https://www.automicvault.com/pkg/brew/fonttools/) - Shares av.db curated category or tags: cli, developer-tools, libraries, library.
- [glib](https://www.automicvault.com/pkg/brew/glib/) - Shares av.db curated category or tags: cli, developer-tools, libraries, library.

## Combined YAML source

View the package source record on GitHub. [combined/cgal.yml](https://github.com/automic-vault/db/blob/main/combined/cgal.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
