How to Install & upgrade Mega command line (megacmd) on your Raspberry Pi running Ubuntu 20.04 or Rasperry Pi OS 10.
This quick guide will teach you how to add the Mega.nz Repositroy so you can easily install and upgrade the “Megacmd” and “Megasync” apps on your Linux Distribution. This tutorial will show you how to do it specifically on Ubuntu 20.04, however, the instructions can be easily modified for any ARM based debian based distribution.
Go to the Mega.nz repository at https://mega.nz/linux/MEGAsync/ in your web browser, and select the folder that pertains to your working distribution. For the Raspberry Pi (because you need the ARM version), that is going to be the Raspbian_10.0 folder located at https://mega.nz/linux/MEGAsync/Raspbian_10.0/.
Then Go to your terminal and add the Release.key file to your apt repository:
wget -qO - https://mega.nz/linux/MEGAsync/Raspbian_10.0/Release.key | sudo apt-key add -
Add the mega.nz repo to your apt repository.
sudo nano /etc/apt/sources.list.d/MEGA.nz.list
Your nano text editor should pop up. When it does, copy and paste the following text into it:
# Mega.nz repo for 32bit (compatable with 64-bit) Raspberry Pi deb [arch=armhf] https://mega.nz/linux/MEGAsync/Raspbian_10.0/ ./
Now, update your apt list, then install mega-cmd from your newly added repository:
sudo apt update && sudo apt install megacmd
To run your newly installed mega command line application run the following command: