How to Install Google Chrome on Rocky Linux

Install Google Chrome on Rocky Linux

Are you running Rocky Linux and wondering how to get Google Chrome up and running on your system? You’re in the right place! While Rocky Linux comes with Firefox as the default browser, many users prefer Chrome for its speed, extensive extension library, and seamless integration with Google services.

Installing Google Chrome on Rocky Linux might seem daunting at first, but I’ll walk you through multiple methods that work perfectly on Rocky Linux 8, 9, and even the latest version 10. Whether you’re a system administrator managing multiple servers or a desktop user looking for a reliable browsing experience, this guide has got you covered.

Why Choose Google Chrome for Rocky Linux?

Before we dive into the installation process, let’s talk about why you might want Chrome on your Rocky Linux system. Google Chrome dominates the browser market with over 65% market share globally, and there are solid reasons for its popularity.

Chrome offers exceptional performance on Linux systems, including Rocky Linux. It’s built on the Chromium engine, which provides fast rendering and excellent JavaScript performance. For developers, Chrome’s DevTools are unmatched, making it an essential tool for web development and debugging.

The browser also provides seamless synchronization across devices. If you use Chrome on other platforms, you can sync your bookmarks, passwords, and browsing history across all your devices. This cross-platform compatibility makes Chrome particularly attractive for users who work across different operating systems.

System Requirements and Prerequisites

Rocky Linux Version Compatibility

Google Chrome works excellently on all current Rocky Linux versions. Whether you’re running Rocky Linux 8.5, 9.4, or the newer 10.0, the installation methods I’ll show you work seamlessly. The beauty of Rocky Linux’s RHEL compatibility means that Chrome packages designed for Red Hat Enterprise Linux work perfectly on Rocky Linux.

Hardware Requirements

Your Rocky Linux system needs to meet these minimum requirements for Chrome:

  • 64-bit processor with SSE3 support
  • At least 2GB of RAM (4GB recommended for smooth performance)
  • 500MB of free disk space for installation
  • Graphics card supporting hardware acceleration (recommended)

Required Packages

Before installing Chrome, ensure you have these essential packages:

  • wget or curl for downloading files
  • dnf package manager (comes pre-installed)
  • sudo privileges for installation

You can install wget if it’s missing:

sudo dnf install wget -y

Method 1: Installing Chrome via RPM Package (Recommended)

This is my preferred method because it’s straightforward and works reliably across all Rocky Linux versions. Let me walk you through each step.

Step 1: Update Your System

Always start with a system update. This prevents potential conflicts and ensures you have the latest security patches:

sudo dnf upgrade --refresh

This command updates all packages and refreshes the repository metadata. It might take a few minutes depending on your internet connection and how many updates are available.

Step 2: Download Chrome RPM Package

Now, let’s download the Chrome RPM package directly from Google. This method ensures you get the latest stable version:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

The download is approximately 79-114MB depending on the version, so grab a coffee while it downloads. Google keeps this URL updated with the latest stable release, so you’ll always get the current version.

Step 3: Install Chrome Using DNF

Once the download completes, install Chrome using DNF. This package manager automatically handles dependencies:

sudo dnf localinstall google-chrome-stable_current_x86_64.rpm

DNF will show you a list of packages to be installed, including any required dependencies like liberation fonts and Vulkan drivers. Simply type ‘y’ when prompted to proceed.

Alternative RPM Installation Methods

If you prefer a one-line installation, you can combine download and installation:

sudo dnf install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

This command downloads and installs Chrome in one go, which is perfect for automation scripts or if you prefer fewer steps.

Method 2: Installing Chrome via Google Repository

Setting up Google’s repository allows for automatic updates through your system’s package manager. Here’s how to do it:

Adding Google Chrome Repository

First, create a repository file for Google Chrome:

sudo vi /etc/yum.repos.d/google-chrome.repo

Add this configuration to the file:

[google-chrome]
name=google-chrome - $basearch
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

This configuration tells your system where to find Chrome packages and how to verify their authenticity.

Installing from Repository

After adding the repository, install Chrome with:

sudo dnf install google-chrome-stable

This method automatically handles GPG key import and gives you the benefit of automatic updates through your regular system updates.

Method 3: Installing Chrome via Direct Download

For those who prefer the graphical approach, you can download Chrome through Firefox:

Manual Download Process

  1. Open Firefox (the default Rocky Linux browser)
  2. Navigate to chrome.google.com
  3. Click “Download Chrome”
  4. Select “RPM (For Fedora/openSUSE)” as your package type
  5. Accept the terms and download

Installation Steps

Once downloaded, navigate to your Downloads folder in the terminal:

cd ~/Downloads
sudo dnf localinstall google-chrome-stable_current_x86_64.rpm

This method is particularly useful if you’re setting up Chrome on a desktop system where you prefer GUI interactions.

Troubleshooting Common Installation Issues

Even with the best instructions, sometimes things don’t go as planned. Let me help you troubleshoot the most common issues.

GPG Key Import Errors

Rocky Linux 9 users might encounter GPG key import errors due to updated cryptographic policies. The error typically looks like this:

warning: Signature not supported. Hash algorithm SHA1 not available.
error: key import failed.

This happens because Rocky Linux 9 has stricter security policies that don’t support SHA1 signatures by default.

Dependency Conflicts

Sometimes you might encounter dependency conflicts. These usually resolve themselves when using DNF, but if you face issues, try:

sudo dnf install --best --allowerasing google-chrome-stable

This command forces DNF to resolve conflicts by removing incompatible packages if necessary.

Rocky Linux 9 Specific Issues

Rocky Linux 9 introduced stricter cryptographic policies that can interfere with Chrome installation.

Crypto Policy Solutions

If you encounter GPG import errors, temporarily adjust the crypto policy:

sudo update-crypto-policies --set LEGACY

After installation, you can revert to the default policy:

sudo update-crypto-policies --set DEFAULT

Remember to reboot after changing crypto policies to ensure all services recognize the change.

Post-Installation Configuration

Launching Chrome for the First Time

After installation, launch Chrome from the command line:

google-chrome-stable

Or find it in your applications menu under “Internet” or “Web Browsers.” The first launch will present you with setup options.

Setting Chrome as Default Browser

If you want Chrome as your default browser, you can set it during the first launch or later through system settings. Chrome will offer to become your default browser – simply click “Set as default” when prompted.

Privacy and Security Settings

On first launch, Chrome asks about:

  • Making it your default browser
  • Sending usage statistics to Google
  • Syncing with your Google account

Choose according to your privacy preferences. You can always change these settings later in Chrome’s settings menu.

Verifying Your Chrome Installation

To verify Chrome installed correctly, check the version:

google-chrome-stable --version

This command returns the installed Chrome version, confirming successful installation. You should see something like “Google Chrome 125.0.6422.114” or similar, depending on the current version.

Updating Google Chrome on Rocky Linux

If you installed Chrome via the repository method, updates happen automatically with your regular system updates:

sudo dnf update

For RPM installations, you’ll need to manually download and install newer versions using the same process, or convert to the repository method for automatic updates.

Uninstalling Chrome (If Needed)

Should you need to remove Chrome, use:

sudo dnf remove google-chrome-stable

This removes Chrome and its configuration files. If you also want to remove user data, manually delete the Chrome profile folder:

rm -rf ~/.config/google-chrome

Performance Optimization Tips

Chrome on Rocky Linux performs excellently out of the box, but here are some optimization tips:

Enable Hardware Acceleration: Navigate to Settings > Advanced > System and ensure “Use hardware acceleration when available” is enabled.

Manage Extensions: Disable unnecessary extensions that consume memory and CPU resources.

Adjust Cache Size: For systems with limited storage, consider reducing Chrome’s cache size through command-line flags.

Memory Management: On systems with limited RAM, use Chrome’s built-in task manager (Shift+Esc) to monitor and manage memory usage.

Security Best Practices

Rocky Linux provides a secure foundation, but consider these Chrome-specific security practices:

Keep Chrome updated regularly to receive security patches. Enable automatic updates if you used the repository installation method.

Configure Chrome’s security settings appropriately for your environment. Consider enabling “Enhanced protection” in Chrome’s Privacy and Security settings for better protection against malicious websites.

For enterprise environments, consider implementing Chrome policies through configuration files to enforce security standards across your organization.

Frequently Asked Questions (FAQs)

Q1: Can I install Google Chrome on Rocky Linux without internet access?
A: Yes, you can download the RPM package on another machine and transfer it to your Rocky Linux system. Then install it using sudo dnf localinstall command with the RPM file.

Q2: Will Google Chrome automatically update on Rocky Linux?
A: Only if you install it via the Google repository method. RPM installations require manual updates by downloading and installing newer versions.

Q3: Is Google Chrome compatible with Rocky Linux ARM processors?
A: Currently, Google Chrome official packages are only available for x86_64 architecture. ARM users should consider Chromium browser as an alternative.

Q4: Can I run multiple versions of Chrome on Rocky Linux simultaneously?
A: While technically possible with Chrome Beta or Dev channels, it’s not recommended for production systems. Different versions may conflict with each other.

Q5: Does installing Chrome affect Firefox on Rocky Linux?
A: No, installing Chrome doesn’t affect Firefox. Both browsers can coexist peacefully on the same system. You can choose which one to use as your default browser.

Marshall Anthony is a professional Linux DevOps writer with a passion for technology and innovation. With over 8 years of experience in the industry, he has become a go-to expert for anyone looking to learn more about Linux.

Related Posts