Learn the simple method to install the popular Google Chrome browser on AlmaLinux 8 with the help command line terminal and DNF package manager.
Google Chrome browser is a cross-platform software available to install on popular Linux distros as well. If you are not a fan of inbuilt Mozilla firefox and the open-source version of Chrome i.e Chromium, then you can manually install Chrome on your OS. However, the installation is not like Windows with just one click nor much difficult as well on Almalinux. We can either get the packages to install the browser by adding its repository or downloading the binary directly from the official website.
Google Chrome browser installation on AlmaLinux 8
1. Enable Google DNF repository
To install Chrome using its official repository, first, we have to create a repo file on our system for that-
sudo dnf install nano
sudo nano /etc/yum.repos.d/google-chrome.repo
Add the following content in the file and save it by pressing Ctrl+X, Y, and then hitting Enter key.
[google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
2. Run AlmaLinux system update
To let the system know we have added a new repository on our system, run the system update command-
sudo dnf update
3. Command to install Chrome Web Browser
Finally, we have the repository for Google chrome on our system, now let’s run the command that we’ll download the rpm packages we need to install the browser on our AlmaLinux.
sudo dnf install google-chrome-stable
It will ask you to accept the GPG Key, thus simply press the Y key and hit the Enter button for the same.
google-chrome 34 kB/s | 10 kB 00:00 Importing GPG key 0x7FAC5991: Userid : "Google, Inc. Linux Package Signing Key <[email protected]>" Fingerprint: 4CCA 1EAF 950C EE4A B839 76DC A040 830F 7FAC 5991 From : https://dl-ssl.google.com/linux/linux_signing_key.pub Is this ok [y/N]: y Key imported successfully Importing GPG key 0xD38B4796: Userid : "Google Inc. (Linux Packages Signing Authority) <[email protected]>" Fingerprint: EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796 From : https://dl-ssl.google.com/linux/linux_signing_key.pub Is this ok [y/N]: y Key imported successfully Running transaction check Transaction check succeeded. Running transaction test ---more---
4. Run Chrome Web Browser
Once the installation is completed, go to All applications or app launcher and search for Chrome. When its icon appears click it to run the browser as a non-root user.
The above was the one method, another way is to download the RPM binary from the official website of Chrome and then use DNF to install the same.
- Download Chrome browser 64-bit RPM package.
- Add GPG Key
sudo rpm --import linux_signing_key.pub
- Run the below installation command–
sudo dnf install google-chrome-stable_current_x86_64.rpm