# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 libqalculate

查看 libqalculate 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libqalculate
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libqalculate
```

  证据: 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
```

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

- dnf (92%):

```sh
sudo dnf install libqalculate
```

  证据: Fedora Rawhide package metadata: libqalculate from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libqalculate
```

  证据: 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
```

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

- Debian apt (92%):

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

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

- zypper (92%):

```sh
sudo zypper install libqalculate23
```

  证据: openSUSE Tumbleweed package metadata: libqalculate23 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:libqalculate
- **软件包管理器:** Homebrew
- **版本:** 5.12.0
- **来源摘要:** Library for Qalculate! program
- **主页:** <https://qalculate.github.io/>
- **仓库:** <https://github.com/Qalculate/libqalculate>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- qalc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.12.0
## 项目历史与用法

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

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- 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
## 其他软件包管理器记录

- 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/


## Combined YAML source

View the package source record on GitHub. [combined/libqalculate.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libqalculate.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
