Package Details: megatools 1.11.0+20220519-1

Git Clone URL: (read-only, click to copy)
Package Base: megatools
Description: CLI for MEGA
Upstream URL:
Licenses: GPL2
Submitter: megous
Maintainer: eugene
Last Packager: eugene
Votes: 116
Popularity: 0.90
First Submitted: 2013-04-11 20:56 (UTC)
Last Updated: 2022-05-21 01:07 (UTC)

Latest Comments

megous commented on 2022-04-06 18:15 (UTC)

try WKD... or

Eremiell commented on 2022-04-06 11:59 (UTC)

Can't build latest as I can't find the PGP key anywhere. None of the usual keyservers seems to serve it and I'm not seeing it on the project page either. Any pointers?

megous commented on 2022-02-24 12:59 (UTC)

smoak: I think all packages assume you have base-devel group installed and packages from this group don't need to be in makedepends.


smoak commented on 2022-02-24 04:21 (UTC)

It seems that meson errors without pkgconf being installed:

megatools-1.11.0-git-20211030/ ERROR: Pkg-config binary for machine 1 not found. Giving up.  

You should probably add pkgconf to the makedepends:

diff --git a/PKGBUILD b/PKGBUILD
index b6458a2..c66c69a 100644
@@ -10,7 +10,7 @@ arch=(i686 x86_64 armv6h armv7h aarch64)
 depends=(curl glib2)
-makedepends=(asciidoc docbook2x meson)
+makedepends=(asciidoc docbook2x meson pkgconf)

That seems to fix it for me anyway.

patlefort commented on 2021-10-30 02:56 (UTC)

I get 404 error when downloading the source. Looks like it's been replaced by

petrol commented on 2021-10-29 15:28 (UTC) (edited on 2021-10-29 15:29 (UTC) by petrol)

There's a possible patch regarding the upload/copy-issue mentioned in

Eremiell commented on 2021-05-19 03:15 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index 12347dc..c95b73f 100644
@@ -2,7 +2,7 @@
 # Contributor: Ondrej Jirman <>

 pkgdesc='CLI for MEGA'
@@ -12,7 +12,7 @@ license=(GPL2)
 depends=(curl glib2)
 makedepends=(asciidoc docbook2x meson)

 build() {
   arch-meson $pkgname-$_pkgver build -D symlinks=true -D man=true

flacks commented on 2020-10-17 20:42 (UTC)

Builds fine in a clean chroot. Please do that.

LeonidasXIV commented on 2020-10-17 20:40 (UTC)


[17/56] Generating megatools-mxml with a custom command
FAILED: megatools.mxml 
/usr/bin/db2x_xsltproc -s man --param xref-on-link=0 megatools.xml -o megatools.mxml
warning: failed to load external entity "megatools.xml"
unable to parse megatools.xml
[19/56] Generating megarc-mxml with a custom command
FAILED: megarc.mxml 
/usr/bin/db2x_xsltproc -s man --param xref-on-link=0 megarc.xml -o megarc.mxml
warning: failed to load external entity "megarc.xml"
unable to parse megarc.xml
[20/56] Generating megatools-df-mxml with a custom command
FAILED: megatools-df.mxml 
/usr/bin/db2x_xsltproc -s man --param xref-on-link=0 megatools-df.xml -o megatools-df.mxml
warning: failed to load external entity "megatools-df.xml"
unable to parse megatools-df.xml
[22/56] Compiling C object megatools.p/tools_shell.c.o
ninja: build stopped: subcommand failed.

flacks commented on 2020-09-26 13:34 (UTC)

Adopted! :)

megous commented on 2020-09-26 13:26 (UTC)

@flacks You can adopt the package if you like.

flacks commented on 2020-09-26 13:22 (UTC)

License is also GPL2 not, GPL.

flacks commented on 2020-09-26 13:20 (UTC) (edited on 2020-09-26 13:22 (UTC) by flacks)

openssl is also not needed as a depends, as per namcap.

flacks commented on 2020-09-26 13:20 (UTC)

-D man=true as a meson parameter and docbook2x as a makedepends are both missing to generate documentation as well.

ratijas commented on 2020-09-26 13:04 (UTC)

Version 1.11.0.git.20200404 either never existed, or was removed on purpose. Latest version for today is 1.11.0-git-20200830.

hol430 commented on 2020-09-05 07:45 (UTC)

I get a 404 when attempting to install:

curl: (22) The requested URL returned error: 404 
==> ERROR: Failure while downloading

This fixed it for me:

diff --git a/PKGBUILD b/PKGBUILD
index 348dc9d..e68b4d5 100644
@@ -1,8 +1,8 @@
 # Maintainer: Ondrej Jirman <>

 pkgdesc="Command line client application for"
 arch=('i686' 'x86_64' 'armv7h')
@@ -11,7 +11,7 @@ license=('GPL')
 depends=('curl' 'glib2' 'openssl')
 makedepends=(asciidoc meson)

 build() {
   meson --prefix /usr --buildtype=plain megatools-${_pkgver} build -Dsymlinks=true

tyjak commented on 2020-02-16 16:34 (UTC) (edited on 2020-02-16 16:37 (UTC) by tyjak)

ERROR: Can't login to API call 'us' failed: Server returned error EEXPIRED

Can't use it since my account was created after 11/6/2018

Here is the disclaimer from megatools website:

Read this issue if you've registered an account via web client since 11/6/2018. You'll not be able to use your account with megatools. You can still use megatools to download publicly exported files for free, or use accounts created before 11/6/2018. You may also be able to register accounts with megatools, and those will work with megatools. You just can't use the new style accounts that mega's website creates now.

natzei commented on 2019-02-02 17:17 (UTC)

It also work for armv6h architecture ;)

megous commented on 2017-03-26 05:49 (UTC)

Re-build with debug options, run in gdb and send a bactrace report to I don't see anything obviously relevant in testing, that could cause issues.

colemickens commented on 2017-03-26 05:28 (UTC)

I don't know why, but in the last two days. 'megadl' seg faults on any input I've given it. I have testing repos enabled.

megous commented on 2016-12-02 13:48 (UTC)

> checking for pkg-config... no You're missing base-devel packages. pkgconfig in particular.

megous commented on 2016-11-13 17:55 (UTC)

Fixed, thanks.

sekret commented on 2016-11-13 16:36 (UTC)

==> Starting build()... checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make supports nested variables... (cached) yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.16... yes checking for GLIB - version >= 2.32.0... yes (version 2.50.1) checking for OPENSSL... yes checking for LIBCURL... yes checking for a2x... no configure: error: a2x is required to build docs, install asciidoc ==> ERROR: A failure occurred in build(). Please add asciidoc to makedepends! After adding it and building the package namcap shows Checking megatools-1.9.98-1-x86_64.pkg.tar.xz megatools W: Unused shared library '/usr/lib/' by file ('usr/bin/megadf') megatools W: Unused shared library '/usr/lib/' by file ('usr/bin/megaget') megatools W: Unused shared library '/usr/lib/' by file ('usr/bin/megarm') megatools W: Unused shared library '/usr/lib/' by file ('usr/bin/megaput') megatools W: Unused shared library '/usr/lib/' by file ('usr/bin/megacopy') megatools W: Unused shared library '/usr/lib/' by file ('usr/bin/megamkdir') megatools W: Unused shared library '/usr/lib/' by file ('usr/bin/megadl') megatools W: Unused shared library '/usr/lib/' by file ('usr/bin/megareg') megatools W: Unused shared library '/usr/lib/' by file ('usr/bin/megals') megatools E: Dependency glib2 detected and not included (libraries ['usr/lib/', 'usr/lib/', 'usr/lib/'] needed in files ['usr/bin/megadl', 'usr/bin/megamkdir', 'usr/bin/megacopy', 'usr/bin/megarm', 'usr/bin/megaput', 'usr/bin/megaget', 'usr/bin/megareg', 'usr/bin/megadf', 'usr/bin/megals']) So please also add glib2 to depends! I think this line "Unused shared library '/usr/lib/' by file xxx" can be ignored...

sekret commented on 2016-08-25 13:42 (UTC)

Build fails with In file included from mega/include/mega/types.h:56:0, from mega/include/mega/utils.h:25, from mega/include/mega/attrmap.h:25, from mega/src/attrmap.cpp:22: mega/include/mega/crypto/sodium.h:27:20: fatal error: sodium.h: No such file or directory #include <sodium.h> ^ compilation terminated. make[1]: *** [Makefile:2262: attrmap.o] Error 1 make[1]: Leaving directory '/build/megasync-git/src/megasync/src/MEGASync' make: *** [Makefile:43: sub-MEGASync-make_first] Error 2 ==> ERROR: A failure occurred in build(). Aborting... The config option --without-sodium doesn't exist (anymore), so libsodium is definitely a dependency now.

megous commented on 2016-02-02 23:20 (UTC) (edited on 2016-02-02 23:22 (UTC) by megous)

madnessmike: added Upgrade recommended, because 1.9.96 started failing on big remote directories since started compressing some server responses.

mike.cuche commented on 2016-01-28 17:58 (UTC)

Hello, can you add support for armv7h architecture in the PKGBUILD? I compiled it on a Raspberry Pi 2 and it works just fine :)

petronny commented on 2015-09-09 02:54 (UTC)

Please add 'autoreconf -fi' after 'cd "megatools-${pkgver}"' in build() to avoid "./libtool: line 7905: func_munge_path_list: command not found" Error.

robertfoster commented on 2015-01-28 16:03 (UTC)

python2 is required in makedeps

megous commented on 2014-10-30 12:56 (UTC)

dlh: There's something wrong with your OpenSSL installation.

dlh commented on 2014-10-28 09:02 (UTC)

Build failed:

SnowyMan commented on 2014-09-21 17:37 (UTC)

Hey, so I've tried to mount the MEGA drive as a filesystem and here's what comes up at the login stage: ERROR: Can't login to API call 'us' failed: Server returned error EARGS Any ideas?

megous commented on 2014-08-28 09:10 (UTC)

I don't plan to make any new releases soon, unless someone will report some significant bug, or mega changes API.

megous commented on 2014-08-28 09:09 (UTC)

@xavier83: It's not planned to have any significant new features. 1.9.92 is a stable branch (on github). If there will be 2.0, it will be based on this stable branch, and not on the master branch. Master branch is not maintained, nor developed.

xavier83 commented on 2014-08-28 03:12 (UTC)

@megous: is a 2.0 planned very soon? hope the licensing issues have been resolved.

megous commented on 2014-08-24 22:10 (UTC)

Megatools is alive and well, with newest set of updates from 2014-08-24.

megous commented on 2014-02-04 21:22 (UTC)

Unflagged. Indeed, it's uptodate.

prg commented on 2014-02-04 18:05 (UTC)

This package still functions and is not out of date. Although 1.9.91 is the final version of this software, it is not out of date.

ConnorBehan commented on 2013-09-20 06:43 (UTC)

Out of date just because the author no longer endorses it? 1.9.91 is the newest version and it still works.

delphos.sensei commented on 2013-08-27 07:41 (UTC)

el paquete esta roto, porque los builds de megous estan con error 404.

ericthefish commented on 2013-07-17 15:59 (UTC)

Megatools is no more, it seems. From the authors website: "Dear users, I decided to pull down megatools, because of uncertainty around the new Mega API license. There are several clauses that make megatools either useless in certain situations, or complicate its use. For example: API user can't make the API Key available to anyone else or use another person's or entity's API Key; Therefore megatools can't have API key included, and each user will need to get theirs. You need an account to get one. And you need API key to create and account with megatools. Catch 22. Megatools also don't support API keys at all ATM. Any use of megatools thus violates the new license/TOS. On reasonable notice, you will allow MEGA access to your systems, data, and logs as well as any communications, legal documents, and source code related to or arising out of your User Application or your use of the API to check compliance with your obligations under these API/SDK terms. No, I don't agree to grant access to my systems for these vague puropses at Mega's discretion. 3.6 YOU WILL INDEMNIFY, PAY THE COSTS OF DEFENSE, AND HOLD HARMLESS MEGA AGAINST ANY LOSSES, COSTS (INCLUDING SOLICITOR AND CLIENT COSTS), DAMAGES, EXPENSES, DEMANDS OR LIABILITY, WHETHER DIRECT, INDIRECT, CONSEQUENTIAL, OR OTHERWISE, AND WHETHER ARISING IN CONTRACT, TORT (INCLUDING IN EACH CASE NEGLIGENCE), OR EQUITY OR OTHERWISE, ARISING OUT OF YOUR USE OF THE API, YOUR RELATIONSHIP WITH THE END USER, ANY USE OF APPROVED DATA BY YOU OR ANY END USER, OR ANY USE OF YOUR USER APPLICATION, OR WHICH IS SUFFERED OR INCURRED BY MEGA AS A RESULT OF ANY BREACH BY YOU OF YOUR OBLIGATIONS EXPRESSED OR IMPLIED IN THESE API/SDK TERMS. Well. No, I will not take any responsibility for the actions of megatools users, even if they were allowed by my violation of API license terms. The source code is still available on github, because it's impossible to pull down GPL code once it was published, but I don't endorse its use." A great shame, it was a fine set of tools.

commented on 2013-07-01 19:33 (UTC)

hola me pasa esto al intentar instalar desde yaourt en este paquete: ==> Descargando PKGBUILD desde AUR... x PKGBUILD megatools 1.9.91-1 (jue abr 11 22:56:10 CEST 2013) (Paquete sin soporte: podría ser peligroso!) ==> Quiere editar PKGBUILD? [S/n] ("A" para anular) ==> ----------------------------------------------- ==> n ==> dependencias de megatools: - curl (ya instalado) - glib-networking (ya instalado) - fuse (ya instalado) - gobject-introspection (ya instalado) ==> Continuar compilando megatools? [S/n] ==> ------------------------------------- ==> ==> Compilando e instalando el paquete ==> Creando el paquete: megatools 1.9.91-1 (dom jun 30 22:54:19 CEST 2013) ==> Resolviendo dependencias... ==> Verificando conflictos... ==> Recibiendo fuentes... -> Descargando megatools-1.9.91.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 439k 100 439k 0 0 294k 0 0:00:01 0:00:01 --:--:-- 294k ==> Validando el archivo fuente con md5sums... megatools-1.9.91.tar.gz ... Aprobado ==> Descomprimiendo fuentes... -> Extrayendo megatools-1.9.91.tar.gz con bsdtar ==> Iniciando build()... /tmp/yaourt-tmp-lolo/aur-megatools/./PKGBUILD: línea 20: ./configure: Permiso denegado ==> ERROR: Se produjo un error en build(). Cancelando... ==> ERROR: Makepkg no ha podido compilar megatools. ==> Reiniciar la compilación de megatools? [s/N] ==> -------------------------------------------- ==> q puede pasar?? gracias de antemano