FedoraRHEL Based

How To Install Google Chrome on Fedora 42

Install Google Chrome on Fedora 42

In this tutorial, we will show you how to install Google Chrome on Fedora 42 Linux. Fedora 42 ships with Firefox as the default web browser, providing users with a solid browsing experience right out of the box. However, many Linux users prefer Google Chrome for its speed, extensive extension library, and seamless integration with Google services. Whether you’re a developer needing Chrome for testing, a professional who relies on Chrome-specific extensions, or simply someone who prefers Chrome’s interface, installing it on Fedora 42 is straightforward once you know the proper methods.

This comprehensive guide will walk you through multiple approaches to installing Google Chrome on Fedora 42, from beginner-friendly graphical methods to advanced command-line techniques. You’ll learn about the different installation options, post-installation configuration, troubleshooting common issues, and maintaining your Chrome browser for optimal performance and security.

Table of Contents

Prerequisites for Installing Google Chrome on Fedora 42

Before proceeding with any installation method, ensure your Fedora 42 system meets the necessary requirements and is properly prepared:

System Requirements:

  • 64-bit Fedora 42 installation (Chrome no longer supports 32-bit Linux systems)
  • At least 2GB of RAM (4GB or more recommended for smooth performance)
  • Minimum 1GB of free disk space
  • Working internet connection

Pre-Installation Steps:

First, update your system to ensure you have the latest packages and dependencies:

sudo dnf update

Verify your Fedora version to confirm you’re running Fedora 42:

cat /etc/fedora-release

Make sure you have sudo privileges, as you’ll need administrative access to install Chrome. If you’re unsure, try running a simple command with sudo:

sudo dnf check-update

It’s also good practice to back up any important browser data if you’re migrating from another browser or upgrading from an older Chrome installation.

Understanding Browser Options in Fedora 42

Before installing Google Chrome, it’s worth understanding the browser landscape in Fedora 42 and why you might choose Chrome over other options.

Firefox (Default Browser):

Fedora 42 comes with Mozilla Firefox pre-installed. Firefox is open-source, privacy-focused, and well-integrated with the Fedora desktop environment. For users who prioritize open-source software and privacy, Firefox remains an excellent choice.

Chromium vs. Google Chrome:

Many Linux users confuse Chromium with Google Chrome. Chromium is the open-source project that forms the foundation of Chrome, but there are significant differences:

  • Chromium is fully open-source, aligning with Fedora’s open-source philosophy
  • Google Chrome includes proprietary components not found in Chromium
  • Chrome includes built-in Flash support (though this is becoming less relevant)
  • Chrome features automatic updates through Google’s repositories
  • Chrome has built-in support for proprietary codecs for media playback
  • Chrome integrates more deeply with Google services like Gmail and Google Drive

When Chrome Makes Sense for Fedora Users:

Despite Fedora’s emphasis on open-source software, Google Chrome makes sense for many users who:

  • Require specific Chrome extensions not available on other browsers
  • Need Chrome for web development and testing purposes
  • Prefer Chrome’s developer tools
  • Want synchronization with Chrome on other devices
  • Need support for proprietary media codecs out of the box
  • Want access to Google-specific features like Chrome Remote Desktop

Method 1: Installing Chrome Using Software Center (GUI)

Enabling Third-Party Repositories

  1. Click on the “Activities” overview in the top-left corner of your screen
  2. Type “Software” and click on the “Software” application icon
  3. When Software Center opens, click on the menu icon in the top-right corner
  4. Select “Software Repositories” from the dropdown menu
  5. Look for the “Third Party Repositories” section
  6. If the button says “Install,” click it to enable third-party repositories
  7. If it says “Remove All,” then third-party repositories are already installed

Enabling the Google Chrome Repository

  1. Scroll down in the Software Repositories window to find “google-chrome”
  2. Click on the repository and select “Enable”
  3. Enter your password when prompted to authenticate the change
  4. Close the Software Repositories window

Installing Chrome Through Software Center

  1. In the Software Center, click on the search icon
  2. Type “Google Chrome” in the search bar
  3. Click on the Google Chrome icon that appears in the search results
  4. Click the “Install” button
  5. Enter your password if prompted
  6. Wait for the installation to complete

Once installed, you can launch Chrome from the Applications menu or by typing “Google Chrome” in the Activities overview.

Troubleshooting GUI Installation Issues

  • Repository Not Found: Ensure your system is connected to the internet and try refreshing the software sources
  • Unable to Enable Repository: Try enabling it through the terminal (covered in Method 2)
  • Installation Fails: Check for error messages in the Software Center, or try the terminal installation method for more detailed error information

Method 2: Installing Chrome Using Terminal Commands

Setting Up the Google Chrome Repository

  1. Open a terminal window (press Ctrl+Alt+T or search for “Terminal” in the Activities overview)
  2. Install the Fedora workstation repositories package:
    sudo dnf install fedora-workstation-repositories
  3. Enable the Google Chrome repository:
    sudo dnf config-manager --set-enabled google-chrome
  4. Verify the repository has been added successfully:
    sudo dnf repolist | grep google-chrome

Installing Google Chrome Stable

sudo dnf install google-chrome-stable

During the installation process:

  • You’ll be prompted to accept the import of Google’s GPG key, which verifies the authenticity of the package. Type ‘y’ and press Enter.
  • The system will calculate dependencies and ask for confirmation to proceed with the installation. Type ‘y’ and press Enter.
  • The terminal will display the download and installation progress.

Once completed, you can launch Chrome by typing:

google-chrome-stable

Or find it in your Applications menu.

Understanding Package Dependencies

When installing Chrome, DNF automatically handles dependencies such as:

  • libappindicator: Provides system tray icon support
  • liberation-fonts: Ensures proper text rendering
  • libXScrnSaver: Required for energy-saving features
  • libXss: For screen-related functionality

Troubleshooting Terminal Installation

  • GPG Key Issues: Import Google’s key manually with:
    sudo rpm --import https://dl.google.com/linux/linux_signing_key.pub
  • Dependency Conflicts: Update your system first:
    sudo dnf update
  • Repository Connection Problems: Clean cache and refresh:
    sudo dnf clean all
    sudo dnf makecache
  • Permission Denied Errors: Ensure you use sudo with commands.

Method 3: Manual Installation Using RPM Package

Downloading Chrome RPM

  1. Open a web browser (Firefox comes pre-installed on Fedora)
  2. Visit the official Google Chrome download page.
  3. Click on “Download Chrome”
  4. Select “64-bit .rpm (For Fedora/openSUSE)” from the options
  5. Click “Accept and Install”
  6. Save the file to your preferred location (default is Downloads folder)

Installing the RPM Package

GUI Method:

  1. Navigate to your Downloads folder in the file manager
  2. Double-click on the downloaded google-chrome-stable_current_x86_64.rpm file
  3. When the Software Installation window appears, click “Install”
  4. Enter your password when prompted
  5. Wait for the installation to complete

Terminal Method:

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

Follow the prompts to complete the installation.

Local Installation vs. Repository Installation

  • Local RPM Installation: One-time install, manual updates, no repository added
  • Repository Installation: Automatic updates via Fedora’s package manager, better long-term maintenance

Post-Installation Configuration

First-Time Chrome Setup

  1. Choose whether to make Chrome your default browser
  2. Decide if you want to send usage statistics to Google
  3. Sign in with your Google account to sync bookmarks, passwords, and extensions (optional)
  4. Configure basic privacy settings

Install Google Chrome on Fedora 42

Importing Data from Other Browsers

  1. Click the three-dot menu in the upper-right corner
  2. Select “Settings”
  3. Navigate to “Import bookmarks and settings”
  4. Choose the browser to import from
  5. Select data types to import (bookmarks, history, passwords, etc.)
  6. Click “Import”

Setting Chrome as the Default Browser

Via Fedora Settings:

  1. Open Settings from the GNOME menu
  2. Navigate to “Default Applications”
  3. Find “Web” in the list
  4. Select “Google Chrome” from the dropdown menu

Via Chrome Settings:

  1. Go to Chrome Settings
  2. Look for “Default browser” section
  3. Click “Make default”

Essential Privacy and Security Settings

  • Enhanced Safe Browsing: Settings > Privacy and Security > Security > Choose “Standard” or “Enhanced”
  • Cookie Settings: Settings > Privacy and Security > Cookies and other site data
  • Site Permissions: Settings > Privacy and Security > Site Settings
  • Password Manager: Settings > Autofill > Passwords

Wayland Compatibility and Troubleshooting

Understanding Wayland in Fedora 42

Wayland is a modern display server protocol that replaces the older X11 system. It offers better security, improved performance, and more efficient resource usage. However, some applications, including Chrome, may experience compatibility issues.

Common Chrome Issues with Wayland

  • Screen sharing problems in video conferencing
  • Hardware acceleration issues causing stutter
  • Window behavior quirks
  • HiDPI display scaling problems

Using Chrome with Wayland-Specific Flags

google-chrome-stable --enable-features=UseOzonePlatform --ozone-platform=wayland

To make this permanent, modify the Chrome desktop entry to include these flags.

Falling Back to Xorg When Necessary

  1. Log out of your current session
  2. On the login screen, click the gear icon
  3. Select “GNOME on Xorg”
  4. Log in

To permanently disable Wayland for GDM:

sudo nano /etc/gdm/custom.conf
# Uncomment the line:
WaylandEnable=false
# Save and reboot

Installing Alternative Chrome Versions

Chrome Beta Channel

sudo dnf install google-chrome-beta

Launch with google-chrome-beta

Chrome Dev Channel

sudo dnf install google-chrome-unstable

Launch with google-chrome-unstable

Running Multiple Chrome Versions Simultaneously

Each version stores profile data separately:

  • Stable: ~/.config/google-chrome/
  • Beta: ~/.config/google-chrome-beta/
  • Dev: ~/.config/google-chrome-unstable/

Run with custom profile:

google-chrome-stable --user-data-dir=/path/to/custom/profile

Use Cases for Different Channels

  • Beta: Testing upcoming features with reasonable stability
  • Dev: Cutting edge features with potential bugs

Keeping Chrome Updated

Automatic Updates Through DNF

sudo dnf update

Run regularly to keep Chrome and other packages up to date.

Checking Your Chrome Version

  1. Open Chrome
  2. Click the three-dot menu > Help > About Google Chrome

Manual Update Process

sudo dnf update google-chrome-stable

Update Frequency and Best Practices

  • Google releases updates every 2-4 weeks
  • Enable automatic system updates
  • Restart Chrome when prompted

Uninstalling Google Chrome

Uninstalling via Software Center

  1. Open Software Center
  2. Click “Installed” tab
  3. Find Google Chrome and click “Remove”
  4. Enter password when prompted

Terminal Uninstallation

sudo dnf remove google-chrome-stable

For beta or unstable versions, replace package name accordingly.

Removing User Data and Configuration Files

rm -rf ~/.config/google-chrome

Warning: This deletes all local Chrome data permanently.

Disabling the Chrome Repository

sudo dnf config-manager --set-disabled google-chrome

Congratulations! You have successfully installed Google Chrome. Thanks for using this tutorial for installing the Google Chrome browser on your Fedora 42 Linux system. For additional or useful information, we recommend you check the official Chrome website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button