'How to install GTK3 and Firefox on Amazon Linux (EC2) instance?

I'm trying to install the firefox on amazon linux (ec2) instance.. but this seems very difficult as gtk3 cannot be installed directly via yum.

I've seen some articles here. but not very helpful.

Thanks,



Solution 1:[1]

Considering its an amazon-linux-2 (you can check with--> cat /etc/os-release)

Install Dependencies for Firefox->

  1. sudo yum install -y gtk3
  2. sudo yum install -y libdbusmenu
  3. sudo yum install -y libdbusmenu-jsonloader

Installing FireFox:

  1. cd /opt

  2. sudo wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/93.0/linux-x86_64/en-US/firefox-93.0.tar.bz2

  3. sudo tar xfj firefox-93.0.tar.bz2

  4. firefox --version

  5. sudo ln -s /opt/firefox/firefox /usr/bin/firefox

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Zordiye