# Install megatools with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, scoop, zypper

Command-line client for Mega.co.nz. Version 1.11.5.20250706 via Homebrew; verified 2026-05-12.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install megatools
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install megatools
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: Fedora Rawhide package metadata: megatools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#megatools
```

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: megatools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install megatools
```

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

- Scoop (92%):

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

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

## Package facts

- **Package key:** brew:megatools
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/megatools>
- **Version:** 1.11.5.20250706
- **Source summary:** Command-line client for Mega.co.nz
- **Homepage:** <https://xff.cz/megatools/>
- **Repository:** <https://xff.cz/git/megatools>
- **Upstream docs:** <https://xff.cz/megatools>
- **License:** GPL-2.0-or-later WITH cryptsetup-OpenSSL-exception
- **Source archive:** <https://xff.cz/megatools/builds/megatools-1.11.5.20250706.tar.gz>
- **Last updated:** 2026-05-12T11:37:37-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- megacopy (cli)
- megadf (cli)
- megadl (cli)
- megaexport (cli)
- megaget (cli)
- megals (cli)
- megamkdir (cli)
- megaput (cli)
- megareg (cli)
- megarm (cli)
- megatest (cli)
- megatools (cli)
- megacopy (alias)
- megadf (alias)
- megadl (alias)
- megaexport (alias)
- megaget (alias)
- megals (alias)
- megamkdir (alias)
- megaput (alias)
- megareg (alias)
- megarm (alias)
- megatest (alias)
- megatools (alias)

## Dependencies

- gettext
- glib
- openssl@3

## Build dependencies

- meson
- ninja
- pkgconf

## Uses from macOS

- curl

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.11.5.20250706
- Package-manager updated: 2026-05-12
- Local data: ok
- Upstream repository: https://xff.cz/megatools/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

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

- **Geiger risk:** blue / medium
- 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
## Source Database Details

- **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:** stable

## Other Package-Manager Records

- 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-4.fc44: normalized package name match | Fedora Rawhide package metadata: megatools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Command line client for MEGA | http://xff.cz/
- zypper - megatools - 1.11.4-1.3: normalized package name match | openSUSE Tumbleweed package metadata: megatools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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','inconsolata'
- 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


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [meson](https://www.automicvault.com/pkg/brew/meson/) - Build dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [megacmd](https://www.automicvault.com/pkg/brew/megacmd/) - Shares av.db curated category or tags: cli, cloud-storage, file-transfer, mega, productivity.
- [gdrive](https://www.automicvault.com/pkg/brew/gdrive/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [cloudpan189-go](https://www.automicvault.com/pkg/brew/cloudpan189-go/) - Shares av.db curated category or tags: cli, cloud-storage, file-transfer, productivity.
- [cookcli](https://www.automicvault.com/pkg/brew/cookcli/) - Shares av.db curated category or tags: cli, productivity.
- [aliyunpan](https://www.automicvault.com/pkg/brew/aliyunpan/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [goodls](https://www.automicvault.com/pkg/brew/goodls/) - Shares av.db curated category or tags: cli, file-transfer, productivity.
- [icloudpd](https://www.automicvault.com/pkg/brew/icloudpd/) - Shares av.db curated category or tags: cli, download, productivity.
- [joplin-cli](https://www.automicvault.com/pkg/brew/joplin-cli/) - Shares av.db curated category or tags: cli, productivity, sync.

## Combined YAML source

View the package source record on GitHub. [combined/megatools.yml](https://github.com/automic-vault/db/blob/main/combined/megatools.yml)


## Sources

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