Google Chrome is the most used Internet Explorer software on the earth, with a recent update in 2021 that Chrome is currently the primary browser of more than 2.65 billion internet users. As you would know, installing Rocky Linux 8, like most Linux distributions, only install Mozilla Firefox. However, installing Google Chrome on Rocky Linux 8 is a straightforward task.
In the following tutorial, you will learn how to install Google Chrome on Rocky Linux 8.
Table of Contents
- Recommended OS: Rocky Linux 8.+.
- User account: A user account with sudo or root access.
Update Operating System
Update your Rocky Linux operating system to make sure all existing packages are up to date:
sudo dnf upgrade --refresh -y
The tutorial will be using the sudo command and assuming you have sudo status.
To verify sudo status on your account:
Example output showing sudo status:
[joshua@localhost ~]$ sudo whoami root
To set up an existing or new sudo account, visit our tutorial on How to Add a User to Sudoers on Rocky Linux.
To use the root account, use the following command with the root password to log in.
Import GPG Key & Repository
To successfully install Google Chrome and have the most up-to-date version in either stable, beta, or unstable, you must install the Google Chrome repository. This includes importing the GPG key to verify the authenticity of the installation and the repository itself.
Download & Import GPG Key
The first step you will need to do is download the GPG key for the Google Chrome installation.
To do this, run the following wget command:
Next, import the GPG key as follows:
sudo rpm --import linux_signing_key.pub
Download Stable and or Beta, Unstable Repositories
For Rocky Linux-based systems, the three repository branches currently need to be downloaded individually to be installed on your system. Once installed, they are automatically added to your repolist, so you will not need to re-download these to update Chrome in the future.
To download Google Chrome Stable Repository (Recommended):
Optional. Download Beta or Unstable RPM
To download Google Chrome Beta Repository:
To download Google Chrome Unstable Repository (Dev):
Install Chrome Browser
Now you can install the RPM package using the DNF or YUM package manager, and it is always recommended to use DNF to keep a standard.
sudo dnf install google-chrome-stable_current_x86_64.rpm
Type “Y”, then press the “ENTER KEY” to proceed with the installation.
Next, verify the build and version of Chrome installed. This also indicates that Chrome was installed successfully.
Google Chrome 94.0.4606.81
Optional. Install Google Chrome Beta / Unstable
Alternatively, you can install Google Chrome Beta or Unstable if you have downloaded the repositories using the wget command. These two versions are not recommended for daily use, especially not on a main desktop or production server. However, for those who want to live on the edge, you can install the alternative versions.
To install Google Chrome Beta:
sudo dnf install google-chrome-beta_current_x86_64.rpm
To install Google Chrome Unstable (Dev):
sudo dnf install google-chrome-unstable_current_x86_64.rpm
Note, these do not replace your stable version, and they are installed separately.
Next, verify the installation of beta or unstable, use the following command.
To verify Google Chrome Beta:
Google Chrome 95.0.4638.40 beta
To verify Google Chrome Unstable:
Google Chrome 96.0.4662.6 dev
To confirm that the Chrome installations were successful in adding the repositories to your repository list. Please run the following dnf repolist command to ensure they are added and active.
sudo dnf repolist
As above, all three repositories are present, meaning you will receive updates in the future on either of the choices you decide to install.
How to Launch Google Chrome
Now that you have installed Chrome, you can launch the application. You can type the following command in the terminal to launch Chrome:
To run Chrome in the background and continue using the terminal:
However, this isn’t practical, and you would use the following path on your desktop to open with the path: Activities > Show Applications > Google Chrome. If you cannot find it, use the search function in the Show Applications menu if you have many applications installed.
The first time you open Google Chrome on Rocky Linux 8, you will be greeted by the following pop up:
Untick or leave as is and click the OK button to continue.
Now you will see The Google Chrome Internet Browser finally as per below:
Congratulations, you have installed Google Chrome on your Rocky Linux 8 operating system.
How to Update Google Chrome
To update Google Chrome, run the DNF update command in your terminal:
sudo dnf update
If one is available, use the upgrade option:
sudo dnf upgrade
Note this will update all packages (recommended), for example, to upgrade the Chrome package.
sudo dnf upgrade google-chrome-stable
How to Remove (Uninstall) Google Chrome
To remove Google Chrome, use the following command:
sudo dnf autoremove google-chrome-stable
Type “Y,” then press the “ENTER BUTTON” to proceed with the uninstall.
If you have the beta or unstable builds installed.
To remove Google Chrome Beta:
sudo dnf autoremove google-chrome-beta
To remove Google Chrome Unstable (Dev build):
sudo dnf autoremove google-chrome-unstable
Comments and Conclusion
In the tutorial, you have learned how to import the RPM binary package and the GPG key to install Google Chrome’s latest stable version. Overall, Chrome is the most used browser on the planet, with 70% of users using it. Remember, it is probably one of the most targeted Internet Browsers for zero-day exploits. Keep it up to date, and you will be fine.