How to install Microsoft Edge on Ubuntu

Installing Microsoft Edge is simple through the terminal on any Debian-based distribution.

Install Microsoft Edge using Terminal / CLI

Download the Microsoft repository GPG key.

1
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg

Add the GPG key to the trusted keys.

1
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/

Add the edge repository.

1
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-stable.list'

Remove the downloaded GPG key since it was added to the system.

1
sudo rm microsoft.gpg

Install Microsoft Edge.

1
sudo apt update && sudo apt install microsoft-edge-stable