# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, chocolatey, scoop, winget 安装 octave

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

## 安装

```sh
sudo av install brew:octave
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install octave
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install octave
```

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

### Linux

- apk (92%):

```sh
sudo apk add octave
```

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

- Debian apt (92%):

```sh
sudo apt install octave
```

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

- dnf (92%):

```sh
sudo dnf install octave
```

  证据: Fedora Rawhide package metadata: octave 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#octave
```

  证据: nixpkgs package indexes: octave from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S octave
```

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

- zypper (92%):

```sh
sudo zypper install octave
```

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

### Windows

- Chocolatey (92%):

```sh
choco install Octave
```

  证据: Chocolatey community package catalog: Octave from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','nvs'

- Scoop (92%):

```sh
scoop install main/octave
```

  证据: Scoop official bucket manifest trees: bucket/octave.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id GNU.Octave -e
```

  证据: Windows Package Manager source index: GNU.Octave from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:octave
- **软件包管理器:** Homebrew
- **版本:** 11.3.0
- **来源摘要:** High-level interpreted language for numerical computing
- **主页:** <https://octave.org/index.html>
- **最后更新:** 2026-07-06T01:46:10Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mkoctfile (别名)
- mkoctfile-11.3.0 (别名)
- octave (别名)
- octave-11.3.0 (别名)
- octave-cli (别名)
- octave-cli-11.3.0 (别名)
- octave-config (别名)
- octave-config-11.3.0 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GNU Octave is a high-level language and interactive environment for numerical computation, built around matrix-oriented programming and broad MATLAB compatibility. It is used from a GUI, CLI, scripts, batch jobs, and native extension interfaces for scientific computing, engineering, teaching, and reproducible research workflows.

### 项目历史

Octave began as companion software for an undergraduate chemical reactor design textbook by James B. Rawlings and John G. Ekerdt. The official about page says full-time development began in spring 1992, the first alpha release was published on 1993-01-04, and version 1.0 was released on 1994-02-17.

John W. Eaton is identified by the project FAQ as the original author, with discussions starting around 1988 and full-time development beginning in February 1992. The name honors Octave Levenspiel, a chemical reaction engineering professor known for back-of-the-envelope calculations, not music.

Octave became GNU Octave in 1997 beginning with version 2.0.6, aligning the project with GNU infrastructure and coding standards while remaining a community-developed numerical environment. The official manual and FAQ describe a system that grew far beyond courseware into a general-purpose free-software platform for numerical experiments.

### 采用历史

The official about page says Octave is included with many GNU/Linux distributions, and the package metadata in av.db shows packaging across Homebrew, Debian/Ubuntu, Fedora, MacPorts, Nix, Arch, Alpine, Chocolatey, Scoop, winget, and openSUSE-family repositories. That distribution coverage is central to its role as the free-software MATLAB-like environment users can install from ordinary package managers.

The Octave manual documents use in chemical engineering courses, mathematics teaching, Stanford’s online Machine Learning class, and broader teaching, research, and commercial applications. The FAQ describes users ranging from students to researchers in statistics, machine learning, and data analytics, plus universities, companies, and individual users.

Octave Forge and the Octave package ecosystem extend the core system in a MATLAB-toolbox-like model. The FAQ describes Octave Forge as a collection of packages for GNU Octave, a test bed for code that may later move into core, and a source of binaries for systems lacking developer tools.

### 使用方式

Users run `octave` or `octave-cli` interactively, execute `.m` scripts, use the Qt GUI/IDE for editing and debugging, and call numerical routines for linear and nonlinear equations, numerical linear algebra, statistics, plotting, and automated data processing. The manual emphasizes both the GUI-hosted IDE and the command-line interface.

Developers package and extend Octave through `.m` files, dynamically loadable modules built with `mkoctfile`, MEX-compatible interfaces, startup files such as `octaverc`, and add-on packages. The Homebrew package’s executables include versioned and unversioned `octave`, `octave-cli`, `mkoctfile`, and `octave-config`, reflecting both end-user and extension-building workflows.

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

Octave is one of the flagship free numerical-computing packages: it combines a language runtime, CLI, GUI, plotting stack, native-code extension build tools, documentation, and package ecosystem into a single distribution artifact. For package managers it is challenging and interesting because it touches Fortran and C++ numerical libraries, graphics back ends, documentation, GUI dependencies, and ABI-sensitive extension building.

Its MATLAB compatibility gives it a distinctive package-nerd role. Octave is not merely another calculator or scripting language; it is the installable free-software answer for users who need to run or port matrix-oriented `.m` code, teach numerical methods, or reproduce scientific computations without proprietary tooling.

### 时间线

- 1988: project discussions began around software for chemical reactor design education.
- 1992: John W. Eaton began full-time development.
- 1993-01-04: first alpha release.
- 1994-02-17: version 1.0 release.
- 1997: Octave became GNU Octave beginning with version 2.0.6.
- 2011: the FAQ says GNU Octave began regular participation as a mentoring organization in Summer of Code events.
- 2026: the official manual citation page identifies GNU Octave 11.1.0 documentation.

### Related projects

- GNU Octave is closely related to MATLAB-compatible `.m` language workflows, Octave Forge packages, BLAS/LAPACK-style numerical libraries, plotting systems, and comparable numerical environments such as Scilab, FreeMat, Julia, Python/SciPy, and R.

### 来源

- <https://docs.octave.org/octave>
- <https://docs.octave.org/v11.1.0/Introduction.html>
- <https://docs.octave.org/v11.1.0/Preface.html>
- <https://octave.org/about>
- <https://wiki.octave.org/FAQ>
- source_facts.config-file-location
- source_facts.executables
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable 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: <octave-home>/share/octave/site/m/startup/octaverc, <octave-home>/share/octave/<version>/m/startup/octaverc, <config-dir>/octave/octaverc, ~/.octaverc, .octaverc, startup.m
## 其他软件包管理器记录

- Debian apt - octave - 9.4.0-1: normalized package name match | Debian stable package indexes: octave from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU Octave language for numerical computations | https://www.octave.org/
- Debian apt - octave-common - 9.4.0-1: normalized package name match | Debian stable package indexes: octave-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | architecture-independent files for octave | https://www.octave.org/
- Debian apt - octave-dev - 9.4.0-1: normalized package name match | Debian stable package indexes: octave-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for the GNU Octave language | https://www.octave.org/
- Debian apt - octave-doc - 9.4.0-1: normalized package name match | Debian stable package indexes: octave-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | documentation of the GNU Octave language | https://www.octave.org/
- Nix - octave: normalized package name match | nixpkgs package indexes: octave from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - octave - 8.4.0-1build5: normalized package name match | Ubuntu 24.04 LTS package indexes: octave from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU Octave language for numerical computations | https://www.octave.org/
- Ubuntu apt - octave-common - 8.4.0-1build5: normalized package name match | Ubuntu 24.04 LTS package indexes: octave-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | architecture-independent files for octave | https://www.octave.org/
- Ubuntu apt - octave-dev - 8.4.0-1build5: normalized package name match | Ubuntu 24.04 LTS package indexes: octave-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | development files for the GNU Octave language | https://www.octave.org/
- Ubuntu apt - octave-doc - 8.4.0-1build5: normalized package name match | Ubuntu 24.04 LTS package indexes: octave-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | documentation of the GNU Octave language | https://www.octave.org/
- apk - octave - 11.1.0-r0: normalized package name match | Alpine Linux edge package indexes: octave from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | High-level language for numerical computations | https://octave.org/
- apk - octave-dev - 11.1.0-r0: normalized package name match | Alpine Linux edge package indexes: octave-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | High-level language for numerical computations (development files) | https://octave.org/
- apk - octave-doc - 11.1.0-r0: normalized package name match | Alpine Linux edge package indexes: octave-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | High-level language for numerical computations (documentation) | https://octave.org/
- dnf - octave - 11.3.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: octave from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A high-level language for numerical computations | http://www.octave.org
- dnf - octave-devel - 11.3.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: octave-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development headers and files for Octave | http://www.octave.org
- dnf - octave-doc - 11.3.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: octave-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation for Octave | http://www.octave.org
- pacman - octave - 11.3.0-1: normalized package name match | Arch Linux sync databases: octave from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A high-level language, primarily intended for numerical computations | https://www.gnu.org/software/octave/


## Combined YAML source

View the package source record on GitHub. [combined/octave.yml](https://github.com/mxcl/pkgdb/blob/main/combined/octave.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
