Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install megatools

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install megatools

MacPorts ports tree · net/megatools/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add megatools

Alpine Linux edge package indexes · megatools · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install megatools

Debian stable package indexes · megatools · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install megatools

Fedora Rawhide package metadata · megatools · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#megatools

nixpkgs package indexes · pkgs/by-name/me/megatools/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install megatools

openSUSE Tumbleweed package metadata · megatools · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install megatools

Chocolatey community package catalog · megatools · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/megatools

Scoop official bucket manifest trees · bucket/megatools.json · 来源: api.github.com

概览

软件包摘要

Command-line client for Mega.co.nz

命令和别名

  • megacopy
  • megadf
  • megadl
  • megaexport
  • megaget
  • megals
  • megamkdir
  • megaput
  • megareg
  • megarm
  • megatest
  • megatools

历史

项目历史与用法

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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:client

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 安装时包含 3 个运行时依赖。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
~/.megarc./.megarc

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.megarc./.megarc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
megacopycli全局可执行文件
megadfcli全局可执行文件
megadlcli全局可执行文件
megaexportcli全局可执行文件
megagetcli全局可执行文件
megalscli全局可执行文件
megamkdircli全局可执行文件
megaputcli全局可执行文件
megaregcli全局可执行文件
megarmcli全局可执行文件
megatestcli全局可执行文件
megatoolscli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.11.5.20250706
管理器更新时间2026-05-12
本地数据OK
上游not checked
检测到的最新版本未检测到

https://xff.cz/megatools/

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namemegatools
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

megatools 1.11.5-1

Command-line client for the Mega cloud storage service

https://xff.cz/megatools/

sudo apt install megatools
  • Section: utils
  • Architecture: amd64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Megatools
Debian stable package indexes · deb.debian.org · Debian stable package indexes: megatools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

megatools

nix profile install nixpkgs#megatools
  • normalized package name match
  • 匹配方式:Megatools
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/me/megatools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

megatools 1.11.1-1build3

Command-line client for the Mega cloud storage service

https://megatools.megous.com/

sudo apt install megatools
  • Section: universe/utils
  • Architecture: amd64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Megatools
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: megatools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

megatools 1.11.5.20250706-r0

Collection of programs for accessing Mega.nz service

https://xff.cz/megatools/

sudo apk add megatools
  • License: GPL-2.0-only
  • Architecture: x86_64
  • Source Package: megatools
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Megatools
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: megatools from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

megatools-bash-completion 1.11.5.20250706-r0

Bash completions for megatools

https://xff.cz/megatools/

sudo apk add megatools-bash-completion
  • License: GPL-2.0-only
  • Architecture: x86_64
  • Source Package: megatools
  • normalized package name match
  • 匹配方式:Megatools
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: megatools-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

megatools-doc 1.11.5.20250706-r0

Collection of programs for accessing Mega.nz service (documentation)

https://xff.cz/megatools/

sudo apk add megatools-doc
  • License: GPL-2.0-only
  • Architecture: x86_64
  • Source Package: megatools
  • normalized package name match
  • 匹配方式:Megatools
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: megatools-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

megatools 1.11.5-4.fc44

Command line client for MEGA

http://xff.cz/

sudo dnf install megatools
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: megatools
  • 8 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Megatools
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: megatools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

megatools 1.11.4-1.3

CLI client for mega.nz

https://megatools.megous.com

sudo zypper install megatools
  • License: GPL-2.0-or-later
  • Category: Productivity/Networking/File-Sharing
  • Architecture: x86_64
  • Source Package: megatools
  • 7 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Megatools
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: megatools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

megatools

sudo port install megatools
  • normalized package name match
  • 匹配方式:Megatools
MacPorts ports tree · api.github.com · MacPorts ports tree: net/megatools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

megatools

choco install megatools
  • normalized package name match
  • 匹配方式:Megatools
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: megatools from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='7.9764','inconsolata'
Scoop95%

main/megatools

scoop install main/megatools
  • normalized package name match
  • 匹配方式:Megatools
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/megatools.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment