macOS
brew install megatoolslocal Homebrew formula metadata
sudo port install megatoolsMacPorts ports tree · net/megatools/Portfile · 来源: api.github.com
安装
brew install megatoolslocal Homebrew formula metadata
sudo port install megatoolsMacPorts ports tree · net/megatools/Portfile · 来源: api.github.com
sudo apk add megatoolsAlpine Linux edge package indexes · megatools · 来源: dl-cdn.alpinelinux.org
sudo apt install megatoolsDebian stable package indexes · megatools · 来源: deb.debian.org
sudo dnf install megatoolsFedora Rawhide package metadata · megatools · 来源: dl.fedoraproject.org
nix profile install nixpkgs#megatoolsnixpkgs package indexes · pkgs/by-name/me/megatools/package.nix · 来源: api.github.com
sudo zypper install megatoolsopenSUSE Tumbleweed package metadata · megatools · 来源: download.opensuse.org
choco install megatoolsChocolatey community package catalog · megatools · 来源: community.chocolatey.org
scoop install main/megatoolsScoop official bucket manifest trees · bucket/megatools.json · 来源: api.github.com
概览
Command-line client for Mega.co.nz
历史
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
~/.megarc./.megarcCredential-bearing paths to review before unattended agent runs.
~/.megarc./.megarc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
megacopy | cli | 全局可执行文件 | |
megadf | cli | 全局可执行文件 | |
megadl | cli | 全局可执行文件 | |
megaexport | cli | 全局可执行文件 | |
megaget | cli | 全局可执行文件 | |
megals | cli | 全局可执行文件 | |
megamkdir | cli | 全局可执行文件 | |
megaput | cli | 全局可执行文件 | |
megareg | cli | 全局可执行文件 | |
megarm | cli | 全局可执行文件 | |
megatest | cli | 全局可执行文件 | |
megatools | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:megatools |
|---|---|
| 版本 | 1.11.5.20250706 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/megatools |
| 主页 | https://xff.cz/megatools/ |
| 仓库 | https://xff.cz/git/megatools |
| 上游文档 | https://xff.cz/megatools |
| 许可证 | GPL-2.0-or-later WITH cryptsetup-OpenSSL-exception |
| 源码归档 | https://xff.cz/megatools/builds/megatools-1.11.5.20250706.tar.gz |
| 最后更新 | 2026-05-12T11:37:37-04:00 |
| Pulse | updated |
| 依赖 | gettext, glib, openssl@3 |
| 构建依赖 | meson, ninja, pkgconf |
| macOS 提供的库 | curl |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | megatools |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
megatools 1.11.5-1
Command-line client for the Mega cloud storage service
sudo apt install megatoolsmegatools
nix profile install nixpkgs#megatoolsmegatools 1.11.1-1build3
Command-line client for the Mega cloud storage service
sudo apt install megatoolsmegatools 1.11.5.20250706-r0
Collection of programs for accessing Mega.nz service
sudo apk add megatoolsmegatools-bash-completion 1.11.5.20250706-r0
Bash completions for megatools
sudo apk add megatools-bash-completionmegatools-doc 1.11.5.20250706-r0
Collection of programs for accessing Mega.nz service (documentation)
sudo apk add megatools-docmegatools 1.11.5-4.fc44
Command line client for MEGA
sudo dnf install megatoolsmegatools 1.11.4-1.3
CLI client for mega.nz
sudo zypper install megatoolsmegatools
sudo port install megatoolsmegatools
choco install megatoolsmain/megatools
scoop install main/megatools来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.