Install Google Chrome In Centos

admin13 April 2024Last Update :

Understanding the Installation Process of Google Chrome on CentOS

CentOS, a popular Linux distribution for servers and workstations, is known for its stability and long-term support. However, it does not come with Google Chrome pre-installed. Installing Google Chrome on CentOS requires understanding the system’s package management and some command-line proficiency. This article will guide you through the process step by step.

Prerequisites for Installing Google Chrome

  • A running instance of CentOS (preferably the latest version)
  • Root or sudo privileges
  • Access to a terminal or command line interface
  • An active internet connection

Setting Up Required Repositories

Before installing Google Chrome, ensure that your system is up-to-date and has the necessary repositories enabled. The following commands can be used to update your system:

yum update
yum upgrade

Once the system is updated, you may need to add the EPEL (Extra Packages for Enterprise Linux) repository, which provides additional packages for CentOS:

yum install epel-release

Step-by-Step Guide to Install Google Chrome

Downloading Google Chrome RPM Package

Google Chrome is not available in the default CentOS repositories. You’ll need to download the RPM package from Google’s official website using the wget command:

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

Installing Google Chrome Using YUM

With the RPM package downloaded, you can use the yum package manager to install Google Chrome. Yum will automatically handle any dependencies required by Chrome:

yum localinstall google-chrome-stable_current_x86_64.rpm

Verifying the Installation

After the installation is complete, verify that Google Chrome is installed correctly by checking its version:

google-chrome --version

Launching Google Chrome

You can launch Google Chrome from the command line or via the GUI. To start Chrome from the terminal, simply type:

google-chrome &

The ampersand (&) at the end runs the process in the background, allowing you to continue using the terminal.

Troubleshooting Common Issues During Installation

Dependency Problems

If you encounter dependency issues while installing Google Chrome, you may need to enable additional repositories or manually install missing packages. Use the following command to search for and install any missing dependencies:

yum deplist google-chrome-stable_current_x86_64.rpm
yum install missing_package_name

Handling Conflicts with Existing Software

Sometimes, conflicts with existing software packages can prevent the installation of Google Chrome. In such cases, you might have to remove or update conflicting packages before proceeding with the Chrome installation.

Customizing Google Chrome Post-Installation

Setting Default Browser

To set Google Chrome as the default browser on CentOS, navigate to Chrome’s settings and look for the “Default browser” section. Alternatively, use the following command:

xdg-settings set default-web-browser google-chrome.desktop

Creating Desktop Shortcuts and Menu Entries

After installing Google Chrome, desktop shortcuts and menu entries should be created automatically. If not, you can create them manually using the Alacarte menu editor or by creating a .desktop file in the ~/.local/share/applications directory.

Maintaining Google Chrome on CentOS

Updating Google Chrome

Google Chrome updates are handled through the same yum package manager used for installation. Regularly check for updates with:

yum update google-chrome-stable

Uninstalling Google Chrome

If you need to uninstall Google Chrome for any reason, use the following command:

yum remove google-chrome-stable

FAQ Section

Can I install Google Chrome on an older version of CentOS?

Yes, but compatibility issues may arise. It’s recommended to use the latest version of CentOS for the best experience.

Is there a way to install Google Chrome without using the command line?

While the command line is the most straightforward method, you can also download the RPM package from Google’s website using a web browser and then double-click the downloaded file to initiate the installation process through the GUI.

How do I set Google Chrome as the default browser through the command line?

Use the xdg-settings command as shown earlier in this article to set Google Chrome as the default browser via the command line.

What if I encounter a ‘Public Key Not Found’ error during installation?

This error means that the public key for verifying the Google Chrome package is missing. You can import the key using rpm –import followed by the URL of the key provided by Google.

References

Leave a Comment

Your email address will not be published. Required fields are marked *


Comments Rules :

Breaking News