# Install libqalculate with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Library for Qalculate! program. Version 5.11.0 via Homebrew; verified 2026-06-21.

## Install

```sh
sudo av install brew:libqalculate
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libqalculate
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libqalculate
```

  Evidence: MacPorts ports tree: math/libqalculate/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libqalculate
```

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

- Debian apt (92%):

```sh
sudo apt install libqalculate-data
```

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

- dnf (92%):

```sh
sudo dnf install libqalculate
```

  Evidence: Fedora Rawhide package metadata: libqalculate 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#libqalculate
```

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

- pacman (92%):

```sh
sudo pacman -S libqalculate
```

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

- zypper (92%):

```sh
sudo zypper install libqalculate23
```

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

## Package facts

- **Package key:** brew:libqalculate
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libqalculate>
- **Version:** 5.11.0
- **Source summary:** Library for Qalculate! program
- **Homepage:** <https://qalculate.github.io/>
- **Repository:** <https://github.com/Qalculate/libqalculate>
- **Upstream docs:** <https://qalculate.github.io/manual/index.html>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://github.com/Qalculate/libqalculate/releases/download/v5.11.0/libqalculate-5.11.0.tar.gz>
- **Last updated:** 2026-06-21T09:01:25-04:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- qalc (cli)
- qalc (alias)

## Dependencies

- gettext
- gmp
- gnuplot
- mpfr
- readline

## Build dependencies

- gettext
- pkgconf

## Uses from macOS

- curl
- libxml2

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

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

libqalculate is the calculation engine behind Qalculate!, a desktop and command-line calculator focused on units, symbolic manipulation, arbitrary precision, and practical scientific conversion.

### Project history

Qalculate! began as a free software calculator with a GTK interface and split its reusable engine into libqalculate. The 2004 0.7.0 release made libqalculate a shared library and introduced the qalc command-line interface, which gave the project a package-manager identity beyond the GUI application.

The project saw long quiet stretches followed by renewed development. The official news archive records 0.9.7 in 2010 after a long pause, then a 2016 revival leading to 0.9.8. In 2017, version 1.0 marked increased stability and efficiency, version 2.0 replaced CLN with GMP and MPFR, removed the Glib dependency from the library, and brought a feature-complete Windows build.

By the 5.x series, the manual and homepage describe a broad calculator environment: customizable functions, unit conversion, physical constants, symbolic calculations, arbitrary precision, uncertainty propagation, interval arithmetic, plotting, GTK and Qt interfaces, and qalc.

### Adoption history

libqalculate became package-worthy because it packages a full calculator brain separately from the interfaces. That lets distributions ship qalc for terminal users, GUI packages for desktop users, and a library for programs that need the same unit and expression engine.

### How it is used

Homebrew users normally meet libqalculate through qalc, using it for unit conversions, exact arithmetic, physical constants, date and time calculations, symbolic algebra, and quick terminal math. Desktop Qalculate! users depend on the same library through the GTK and Qt front ends.

### Why package nerds care

libqalculate is beloved package-manager material because it is a calculator that behaves like a small computer algebra and unit-conversion system but installs as a normal Unix CLI/library package. Its dependency changes in 2017 are also a good example of a mature scientific desktop project reducing legacy library drag.

### Timeline

- 2004: Version 0.7.0 installed libqalculate as a shared library and added the qalc text interface.
- 2010: Version 0.9.7 was released after a long period without updates.
- 2016: Version 0.9.8 revived development after nearly a decade of little activity.
- 2017: Version 1.0 was released, followed by 2.0 with GMP, MPFR, reduced Glib dependency, libcurl exchange-rate retrieval, and a Windows installer.
- 2019: Version 3.0 implemented support for the 2019 SI base-unit redefinition.
- 2026: Version 5.11 was documented on the project homepage and manual.

### Related projects

- Qalculate! is organized around libqalculate plus qalc, qalculate-gtk, and qalculate-qt. It also intersects with GMP, MPFR, libcurl, and gnuplot in the package graph.

### Sources

- <https://formulae.brew.sh/formula/libqalculate>
- <https://github.com/Qalculate/libqalculate>
- <https://github.com/Qalculate/libqalculate/tags>
- <https://qalculate.github.io/>
- <https://qalculate.github.io/manual/index.html>
- <https://qalculate.github.io/news.html>


## Security Notes

library-like package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $XDG_CONFIG_HOME/qalculate/qalc.cfg, ~/.config/qalculate/qalc.cfg
- Windows: %LOCALAPPDATA%\Qalculate\qalc.cfg
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libqalculate
- **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 - libqalculate-data - 5.5.2-1: normalized package name match | Debian stable package indexes: libqalculate-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Powerful and easy to use desktop calculator - data | https://qalculate.github.io/
- Debian apt - libqalculate-dev - 5.5.2-1+b1: normalized package name match | Debian stable package indexes: libqalculate-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Powerful and easy to use desktop calculator - development | https://qalculate.github.io/
- Debian apt - libqalculate-doc - 5.5.2-1: normalized package name match | Debian stable package indexes: libqalculate-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Powerful and easy to use desktop calculator - documentation | https://qalculate.github.io/
- Debian apt - libqalculate20-data - 5.5.2-1: normalized package name match | Debian stable package indexes: libqalculate20-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Dummy transitional package for transition to new name | https://qalculate.github.io/
- Debian apt - libqalculate23 - 5.5.2-1+b1: normalized package name match | Debian stable package indexes: libqalculate23 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Powerful and easy to use desktop calculator - library | https://qalculate.github.io/
- Debian apt - qalc - 5.5.2-1+b1: normalized package name match | Debian stable package indexes: qalc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Powerful and easy to use command line calculator | https://qalculate.github.io/
- Nix - libqalculate: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libqalculate/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libqalculate-data - 4.9.0-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libqalculate-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Powerful and easy to use desktop calculator - data | https://qalculate.github.io/
- Ubuntu apt - libqalculate-dev - 4.9.0-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libqalculate-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Powerful and easy to use desktop calculator - development | https://qalculate.github.io/
- Ubuntu apt - libqalculate-doc - 4.9.0-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libqalculate-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Powerful and easy to use desktop calculator - documentation | https://qalculate.github.io/
- Ubuntu apt - libqalculate20-data - 4.9.0-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libqalculate20-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Dummy transitional package for transition to new name | https://qalculate.github.io/
- Ubuntu apt - libqalculate22t64 - 4.9.0-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libqalculate22t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Powerful and easy to use desktop calculator - library | https://qalculate.github.io/
- Ubuntu apt - qalc - 4.9.0-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: qalc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Powerful and easy to use command line calculator | https://qalculate.github.io/
- apk - libqalculate - 5.11.0-r0: normalized package name match | Alpine Linux edge package indexes: libqalculate from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library implementing a multi-purpose desktop calculator | https://qalculate.github.io/
- apk - libqalculate-dev - 5.11.0-r0: normalized package name match | Alpine Linux edge package indexes: libqalculate-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library implementing a multi-purpose desktop calculator (development files) | https://qalculate.github.io/
- apk - libqalculate-lang - 5.11.0-r0: normalized package name match | Alpine Linux edge package indexes: libqalculate-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Languages for package libqalculate | https://qalculate.github.io/


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [gnuplot](https://www.automicvault.com/pkg/brew/gnuplot/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [qalculate-gtk](https://www.automicvault.com/pkg/brew/qalculate-gtk/) - Popular package that depends on this formula.
- [qalculate-qt](https://www.automicvault.com/pkg/brew/qalculate-qt/) - Popular package that depends on this formula.
- [spigot](https://www.automicvault.com/pkg/brew/spigot/) - Shares av.db curated category or tags: calculator, cli, math, science.
- [aamath](https://www.automicvault.com/pkg/brew/aamath/) - Shares av.db curated category or tags: cli, math, science.
- [ginac](https://www.automicvault.com/pkg/brew/ginac/) - Shares av.db curated category or tags: cli, math, science.
- [rink](https://www.automicvault.com/pkg/brew/rink/) - Shares av.db curated category or tags: calculator, cli, science.
- [fftw](https://www.automicvault.com/pkg/brew/fftw/) - Shares av.db curated category or tags: cli, math, science.
- [numbat](https://www.automicvault.com/pkg/brew/numbat/) - Shares av.db curated category or tags: calculator, cli, science, units.
- [asciitex](https://www.automicvault.com/pkg/brew/asciitex/) - Shares av.db curated category or tags: cli, math, science.
- [calc](https://www.automicvault.com/pkg/brew/calc/) - Shares av.db curated category or tags: calculator, cli, science.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
