# 使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, zypper, scoop 安装 megatools

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

## 安装

```sh
sudo av install brew:megatools
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install megatools
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install megatools
```

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

### Linux

- apk (92%):

```sh
sudo apk add megatools
```

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

- Debian apt (92%):

```sh
sudo apt install megatools
```

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

- dnf (92%):

```sh
sudo dnf install megatools
```

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

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

- zypper (92%):

```sh
sudo zypper install megatools
```

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

### Windows

- Chocolatey (92%):

```sh
choco install megatools
```

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

- Scoop (92%):

```sh
scoop install main/megatools
```

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

## 软件包事实

- **软件包键:** brew:megatools
- **软件包管理器:** Homebrew
- **版本:** 1.11.5.20250706
- **来源摘要:** Command-line client for Mega.co.nz
- **主页:** <https://xff.cz/megatools/>
- **最后更新:** 2026-05-12T11:37:37-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- megacopy (别名)
- megadf (别名)
- megadl (别名)
- megaexport (别名)
- megaget (别名)
- megals (别名)
- megamkdir (别名)
- megaput (别名)
- megareg (别名)
- megarm (别名)
- megatest (别名)
- megatools (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Megatools is an independent suite of command-line programs for Mega.nz cloud storage. The official site describes tools for copying individual files or directory trees, streaming downloads, account registration, cloud filesystem inspection, and management of public Mega links.

### 项目历史

Ondrej Jirman released Megatools 1.0.0 in March 2013, shortly after Mega.nz became a popular encrypted cloud storage target. The project was written as a Free Software alternative to browser-centric workflows, and the official site emphasizes simple, reviewable code and user control over encryption keys.

The suite evolved from separate commands such as megadl, megaput, megals, megarm, and megareg toward a single megatools binary with subcommands and compatibility links. Its manual pages document both the unified command and individual command pages, while the megarc manual documents the INI configuration file used for login credentials and transfer settings.

Development moved off GitHub in April 2019, and the official Git repository and website now live under xff.cz. The project remains maintained, with 2020s releases adapting to Mega protocol changes, new link formats, login flow changes, shared-folder behavior, and anti-abuse responses from Mega.

### 采用历史

Megatools achieved broad distro and package-manager adoption for a niche cloud client. The upstream site notes Debian unstable acceptance and Arch Linux repository availability, and the supplied package facts list Homebrew, Debian, Ubuntu, Fedora, openSUSE, MacPorts, Nix, Chocolatey, Scoop, Alpine, and other packages.

That spread matters because Mega users often want the tool on headless servers, NAS boxes, CI jobs, and rescue shells where the official web client is not useful. Static Windows and Linux builds on the official site further widened use outside source builds.

### 使用方式

Megatools is used for command-line Mega storage operations: megatools ls, df, put, get, copy, mkdir, rm, export, dl, and reg. The man page also describes Mega's remote filesystem mapping, including /Root, /Trash, and /Shared paths.

Credentials are usually stored in ~/.megarc or ./.megarc under a [Login] section with Username and Password fields. The same file can hold cache, network, upload, and UI settings.

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

Megatools is the durable C/GLib-era Mega client that distribution maintainers kept carrying because it solved a real CLI gap. Package nerds care about it for its long-lived ABI/dependency concerns, its move from GitHub to self-hosted cgit, and its repeated adaptations to an unofficial but changing cloud-service API.

### 时间线

- 2013-03-08: Megatools 1.0.0 released.
- 2013-04-12: Version 1.9.90 released under GPL with an experimental libmega library and language bindings.
- 2018-07-19: 1.10.0 release candidates added major transfer optimizations, upload parallelism, and interrupted download resumption.
- 2019-04-13: Project moved off GitHub.
- 2022-05-19: Megatools 1.11.0 released.
- 2025-01-27: Project domain moved from megatools.megous.com to xff.cz/megatools.
- 2026-05-27: Site notes modernization for Mega.nz protocol changes and full support for new-style shared folders.

### Related projects

- Mega.nz: the cloud storage service Megatools targets.
- megacmd: a separate Go command-line client for Mega.
- rclone: a broader cloud-storage sync tool with Mega support.

### 来源

- <https://xff.cz/git/megatools>
- <https://xff.cz/megatools/>
- <https://xff.cz/megatools/man/megarc.html>
- <https://xff.cz/megatools/man/megatools.html>
- source_facts.package-manager-url


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## 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: ~/.megarc, ./.megarc

## Credential files

- Unix: ~/.megarc, ./.megarc
## 其他软件包管理器记录

- Debian apt - megatools - 1.11.5-1: normalized package name match | Debian stable package indexes: megatools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command-line client for the Mega cloud storage service | https://xff.cz/megatools/
- Nix - megatools: normalized package name match | nixpkgs package indexes: pkgs/by-name/me/megatools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - megatools - 1.11.1-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: megatools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command-line client for the Mega cloud storage service | https://megatools.megous.com/
- apk - megatools - 1.11.5.20250706-r0: normalized package name match | Alpine Linux edge package indexes: megatools from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Collection of programs for accessing Mega.nz service | https://xff.cz/megatools/
- apk - megatools-bash-completion - 1.11.5.20250706-r0: normalized package name match | Alpine Linux edge package indexes: megatools-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for megatools | https://xff.cz/megatools/
- apk - megatools-doc - 1.11.5.20250706-r0: normalized package name match | Alpine Linux edge package indexes: megatools-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Collection of programs for accessing Mega.nz service (documentation) | https://xff.cz/megatools/
- dnf - megatools - 1.11.5-6.fc45: normalized package name match | Fedora Rawhide package metadata: megatools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Command line client for MEGA | http://xff.cz/
- zypper - megatools - 1.11.4-1.5: normalized package name match | openSUSE Tumbleweed package metadata: megatools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | CLI client for mega.nz | https://megatools.megous.com
- MacPorts - megatools: normalized package name match | MacPorts ports tree: net/megatools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - megatools: normalized package name match | Chocolatey community package catalog: megatools from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='7.9764','dropkick'
- Scoop - main/megatools: normalized package name match | Scoop official bucket manifest trees: bucket/megatools.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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