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

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

## 安装

```sh
sudo av install brew:midnight-commander
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install midnight-commander
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mc
```

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

### Linux

- apk (92%):

```sh
sudo apk add mc
```

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

- Debian apt (92%):

```sh
sudo apt install mc
```

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

- dnf (92%):

```sh
sudo dnf install mc
```

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

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

- pacman (92%):

```sh
sudo pacman -S mc
```

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

- zypper (92%):

```sh
sudo zypper install mc
```

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

### Windows

- Chocolatey (92%):

```sh
choco install mc
```

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

- Scoop (92%):

```sh
scoop install extras/mc
```

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

- winget (92%):

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

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

## 软件包事实

- **软件包键:** brew:midnight-commander
- **软件包管理器:** Homebrew
- **版本:** 4.8.33
- **来源摘要:** Terminal-based visual file manager
- **主页:** <https://www.midnight-commander.org/>
- **仓库:** <https://github.com/MidnightCommander/mc>
- **最后更新:** 2026-06-22T14:05:28-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mc (别名)
- mcdiff (别名)
- mcedit (别名)
- mcview (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GNU Midnight Commander is a terminal file manager in the orthodox, two-panel tradition. The project's maintainers page says it was founded around 1994 by Miguel de Icaza, and the project README describes it as a free clone of John Socha's Norton Commander that also borrowed ideas from newer tools with similar interfaces. The same maintainers page records Andrew Borodin and Yury V. Zaytsev as the project team and notes that Slava Zanko relaunched it as a collaborative project in 2009.

### 项目历史

Technically, Midnight Commander grew into more than a copy, move, and delete interface. Its README describes a text-mode full-screen user shell that runs on consoles, xterm, and other terminal emulators, and that remains usable over telnet or SSH. Major practical features include a built-in virtual file system for FTP, SFTP, SSH, and archive formats; mouse support in terminals; a built-in text editor and hex-capable viewer; command completion; subshell integration with common shells; background file operations; external panelization; and context-sensitive open, view, and edit actions.

### 使用方式

Its adoption history is visible in its broad packaging footprint: the same mc executable is distributed across Linux distributions, BSD-oriented systems, macOS package managers, Windows package managers, and Nix-style environments. In practice it serves administrators and terminal-heavy users who want a visual file manager over remote sessions, inside minimal systems, or in workflows where a GUI file manager is unavailable. Among package-manager tools, it is the long-lived, feature-rich TUI file manager, sitting beside smaller navigators and newer terminal file managers rather than competing with graphical desktop file managers.

### 来源

- <https://formulae.brew.sh/formula/midnight-commander>
- <https://github.com/MidnightCommander/mc>
- <https://midnight-commander.org/maintainers/>


## 安全说明

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: $XDG_CONFIG_HOME/mc/ini, $XDG_CONFIG_HOME/mc/hotlist, $XDG_CONFIG_HOME/mc/panels.ini, ~/.config/mc/ini, ~/.config/mc/hotlist, ~/.config/mc/panels.ini

## Credential files

- Unix: $XDG_CONFIG_HOME/mc/ini, $XDG_CONFIG_HOME/mc/hotlist, $XDG_CONFIG_HOME/mc/panels.ini, ~/.config/mc/ini, ~/.config/mc/hotlist, ~/.config/mc/panels.ini
## 其他软件包管理器记录

- MacPorts - mc: installed executable or alias match | MacPorts ports tree: sysutils/mc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - mc - 3:4.8.33-1+deb13u1: installed executable or alias match | Debian stable package indexes: mc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Midnight Commander - a powerful file manager | https://www.midnight-commander.org
- Debian apt - mc-data - 3:4.8.33-1+deb13u1: installed executable or alias match | Debian stable package indexes: mc-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Midnight Commander - a powerful file manager -- data files | https://www.midnight-commander.org
- Nix - mc: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/mc/mc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mc - 3:4.8.30-1build2: installed executable or alias match | Ubuntu 24.04 LTS package indexes: mc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Midnight Commander - a powerful file manager | https://www.midnight-commander.org
- Ubuntu apt - mc-data - 3:4.8.30-1build2: installed executable or alias match | Ubuntu 24.04 LTS package indexes: mc-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Midnight Commander - a powerful file manager -- data files | https://www.midnight-commander.org
- apk - mc - 4.8.33-r3: installed executable or alias match | Alpine Linux edge package indexes: mc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Filemanager/shell that emulates Norton Commander | https://midnight-commander.org
- apk - mc-doc - 4.8.33-r3: installed executable or alias match | Alpine Linux edge package indexes: mc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Filemanager/shell that emulates Norton Commander (documentation) | https://midnight-commander.org
- apk - mc-lang - 4.8.33-r3: installed executable or alias match | Alpine Linux edge package indexes: mc-lang from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Languages for package mc | https://midnight-commander.org
- dnf - mc - 4.8.33-4.fc45: installed executable or alias match | Fedora Rawhide package metadata: mc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | User-friendly text console file manager and visual shell | https://midnight-commander.org/
- dnf - mc-python - 4.8.33-4.fc45: installed executable or alias match | Fedora Rawhide package metadata: mc-python from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Midnight Commander s3+ and UC1541 EXTFS backend scripts | https://midnight-commander.org/
- pacman - mc - 4.8.33-1: installed executable or alias match | Arch Linux sync databases: mc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A file manager that emulates Norton Commander | https://midnight-commander.org/
- zypper - mc - 4.8.33-2.6: installed executable or alias match | openSUSE Tumbleweed package metadata: mc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Midnight Commander | https://midnight-commander.org/
- zypper - mc-lang - 4.8.33-2.6: installed executable or alias match | openSUSE Tumbleweed package metadata: mc-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Translations for package mc | https://midnight-commander.org/
- Chocolatey - mc: installed executable or alias match | Chocolatey community package catalog: mc from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','maxima'
- Scoop - extras/mc: installed executable or alias match | Scoop official bucket manifest trees: bucket/mc.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Combined YAML source

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