rhel 7 – ExpLinux https://www.explinux.com Explore Linux How to, Tutorials, Unix, Updates, Technology. Tue, 01 Aug 2023 19:01:34 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 https://www.explinux.com/wp-content/uploads/2023/04/cropped-favicon-32x32-1-32x32.png rhel 7 – ExpLinux https://www.explinux.com 32 32 How to change UID and GID of the local user in Linux? 3 Easy Steps https://www.explinux.com/2021/04/how-to-change-uid-and-gid-of-the-local-user-in-linux.html https://www.explinux.com/2021/04/how-to-change-uid-and-gid-of-the-local-user-in-linux.html#respond Thu, 08 Apr 2021 11:43:00 +0000 How to change UID and GID of the local user in Linux? 3 Easy Steps Read More »

]]>
 How to change the UID and GID of the local user?
Have you ever faced the issue of a service not starting or a permission error? You need to check if it correct UID and GID assigned or not. If not then in this article you will learn how to change UID and GID or local users and service accounts.
How to change UID and GID in Linux
 

Environment

  • RHEL 6
  • RHEL 7
  • RHEL 8
  • CentOS 7
  • Rocky Linux 8

Issue

  • UID and GID of the local required to change

Related post: How to Disable Firewall in Linux 

Resolution

The task of changing UID and GID of the local user is not quite simple and caution must be taken doing this. UID and GID of the local user explinux will be modified from 503 to 505 in the below example.

Check Running Process

Check for any processes running in the system as this user and stop them. Changing the local user UID and GID to a new one while there are processes running in the system using old UID is dangerous and can lead to data loss. Note, that ps will print UID instead of the user name if the user name is too long, so search for both UID and the user name in the process list:

# ps -ef | grep explinux
# ps -ef | grep 503

If you find any running process kill it by kill -9 pid command

Modify UID and GID

Step 1

Backup is necessary  for /etc/passwd and /etc/group files before doing the steps below:

# cp -p /etc/passwd /etc/passwd.orig
# cp -p /etc/group /etc/group.orig

Currently, the user explinux has the UID and GID of 503 as shown below:

# id explinux
uid=503(explinux) gid=503(explinux) groups=503(explinux)

Step 2

First, we modify the GID of the user’s group to 505, as shown below:

# groupmod -g 505 explinux

Step 3

Next, modify the UID and GID value of the user explinux to 505, as shown below:

# usermod -u 505 -g 505 explinux

Alternate Method

The same can be done by direct editing /etc/passwd and /etc/group files.

Before:

[/etc/group]
explinux:x:503:

[/etc/passwd]
explinux:x:503:503:...(omit)...

After:

[/etc/group]
explinux:x:505:

[/etc/passwd]
explinux:x:505:505:...(omit)...

Now verify whether UID and GID were indeed changed, as shown below:

# id explinux
uid=505(explinux) gid=505(explinux) groups=505(explinux)

Effect of change UID and GID

If in your system or server, any other existing user is a member of the group previously having GID of 503, it will not be in this group anymore, because the GID of the group has been changed to 505. So change the GIDs of all the user which are having GID of 503 to 505 or any other existing group as per your requirements.

Change Files Ownership To user UID and GID

Owner UID and GID of the files and directories also will not change automatically. All the files and directories with a previous owner UID and GID should have changed them. The only way to do it reliably is by scanning through the filesystem beginning with the root (/) and changing UID or GID.

The chown command resets SETUID and SETGID bits, and you have to remember which ones by finding all such files first and setting it back after you do the chown command by the below command:

# find / -uid 503 -perm /6000 -ls
# find / -gid 503 -perm /6000 -ls

After saving the list of files with SETUID and SETGID bits, you may actually change files UID and GID by the below command :

# find / -uid 503 -exec chown -v -h 505 '{}' ;
# find / -gid 503 -exec chgrp -v 505 '{}' ;

Custom Settings

If you are running the default Linux program you are done with the above setting nut if you have configured any third-party application. Now we need to change the configuration file or setting where the affected user UID is used instead of the user name should be changed to reflect a new UID value of the user. For this locate such configuration files or settings according to the software installed and change the UID of the affected user to a new one, 503 to 505 in this example case. For Example you have added user details in any third-party software to access or run a program then you need to add them again.

Now at this point, you have learned how to correctly change UID and GID or any user or service account.

]]>
https://www.explinux.com/2021/04/how-to-change-uid-and-gid-of-the-local-user-in-linux.html/feed 0
Mysql resource is unable to start after failover due to permission change on ‘/var/lib/mysql’ directory. https://www.explinux.com/2021/04/mysql-resource-is-unable-to-start-after-failover-due-to-permission-change-on-var-lib-mysql-directory.html https://www.explinux.com/2021/04/mysql-resource-is-unable-to-start-after-failover-due-to-permission-change-on-var-lib-mysql-directory.html#comments Thu, 08 Apr 2021 11:05:00 +0000 Mysql resource is unable to start after failover due to permission change on ‘/var/lib/mysql’ directory. Read More »

]]>
If you are working on a cluster, after a sudden failover you face the issue that Mysql is unable to start.

In this article, we will show you how to solve the issue.

Environment

  • Red Hat Enterprise Linux Server 6 (with the High Availability and Resilient Storage Add Ons)
  • Red Hat Enterprise Linux Server 7
  • Red Hat Enterprise Linux Server 8
  • MySQL

Issue

  • Permission of mount point of MySQL data directory gets changed.
  • Mysql resource is unable to start in the other node after failover from the first node.

    
    Sep  2 16:23:57 node A rgmanager[144383]: [fs] mounting /dev/dm-4 on /var/lib/mysql
    Sep  2 16:23:57 node A kernel: EXT4-fs (dm-4): mounted filesystem with ordered data mode. Opts: 
    Sep  2 16:23:57 node A rgmanager[144527]: [mysql] Checking Existence Of File /var/run/cluster/mysql/mysql:DB_name.pid [mysql:DB_name] > Failed 
    Sep  2 16:23:57 node A rgmanager[144549]: [mysql] Monitoring Service mysql:DB_name > Service Is Not Running 
    Sep  2 16:23:57 node A rgmanager[144571]: [mysql] Starting Service mysql:DB_name
    Sep  2 16:24:27 node A rgmanager[145724]: [mysql] Starting Service mysql:DB_name > Failed - Timeout Error 
    Sep  2 16:24:27 node A rgmanager[4142]: start on mysql "DB_name" returned 1 (generic error)
    

Resolution

  • Change the UID and GID of the MySQL user and keep it the same across all the cluster nodes.
  • Also, check that the UID and GID which you are going to assign for the MySQL user should not be possessed by any other user. If any then kindly change the UID and GID before changing the MySQL credentials.
  • Once after changing the credentials now try to failover the service from one node to another and the service should start without any issue.

Root Cause

  • The User and Group credentials of Mysql are not the same in all the cluster nodes.

    On node A
    # ls -ld /var/lib/mysql/
    drwxr-xr-x 5 495 490 4096 Sep 11 00:21 /var/lib/mysql/
    # grep -i mysql /etc/passwd
    mysql:x:496:491:MySQL server:/var/lib/mysql:/bin/bash

    On node B
    # ls -ld /var/lib/mysql/
    drwxr-xr-x 5 496 491 4096 Sep 11 00:22 /var/lib/mysql/
    # grep -i mysql /etc/passwd
    mysql:x:495:490:MySQL server:/var/lib/mysql:/bin/bash

  • As it can be seen from the above output that  UID and GID of the MySQL user on the first node is 496 and 491 respectively. And the UID and GID of the MySQL user in the second node of the cluster is 495 and 490 respectively.

  • For mysql to access the data from /var/lib/mysql which is the default home directory, permission needs to be mysql:mysql.
    Because of the different UID and GID of the mysql the user on both the nodes, when the cluster relocates the mysql resource from one node to other node it mounts the mysql data on the second node with the same UID and GID of the first node which does not match the mysql credentials on the second node due to which the mysql resource was not able to start on the second node.
Now you have successfully recovered from the issue. Please let us know if this helped you.
]]>
https://www.explinux.com/2021/04/mysql-resource-is-unable-to-start-after-failover-due-to-permission-change-on-var-lib-mysql-directory.html/feed 2
Grub2 files are missing from /boot. How to recover ? https://www.explinux.com/2021/02/grub2-files-are-missing-from-boot-how-to-recover.html https://www.explinux.com/2021/02/grub2-files-are-missing-from-boot-how-to-recover.html#respond Tue, 23 Feb 2021 02:13:00 +0000 Grub2 files are missing from /boot. How to recover ? Read More »

]]>
Repair Grub2

Grub2 or Boot Repair  

Due to some file corruption or mishandling we lost grub. This can cause the system to hang in the boot.

When you reboot the system it will not boot, So before rebooting the system check this file is in place or not. If you accidentally rebooted and the system is unable to boot then boot the server in rescue mode and follow the below steps.

Environment

  • Red Hat Enterprise Linux 7 
  • CentOS 7
  • RHEL 8

Issue

  • Missing the ‘/boot’, grub folder, and grub.conf file which are essential to boot the system.
  • How to recover missing boot files ?

Resolution

  • Verify Boot directory contents are really missing or the /boot is not mounted properly :
#ls /boot/grub2/
  • Install grub2:
#grub2-install /dev/<disk name>
  • Create grub.cfg file:
#grub2-mkconfig -o /boot/grub2/grub.cfg
  • Create device.map file if missing:
#vi /boot/grub2/device.map

(hd0) /dev/<disk name>
  • Reboot
Now the server or PC  will boot properly. In this article, we have learned the way to recover grub and save it from reinstallation.
]]>
https://www.explinux.com/2021/02/grub2-files-are-missing-from-boot-how-to-recover.html/feed 0
How to reset my MySQL database root password? https://www.explinux.com/2021/01/how-to-reset-my-mysql-database-root-password.html https://www.explinux.com/2021/01/how-to-reset-my-mysql-database-root-password.html#respond Sun, 17 Jan 2021 02:02:00 +0000 How to reset my MySQL database root password? Read More »

]]>
How to reset my MySQL database root password?
This is a very common issue if you are working in a big environment or a system where everything is automated. People always forgot their MySQL password. This article will help you recover your password without any data corruption.

Environment

  • Red Hat Enterprise Linux including:

    • Red Hat Enterprise Linux 3
    • Red Hat Enterprise Linux 4
    • Red Hat Enterprise Linux 5
    • Red Hat Enterprise Linux 6
    • Red Hat Enterprise Linux 7
    • Red Hat Enterprise Linux 8
  • MySQL-server

Issue

 Forgot the MySQL root password. And you want to know how to reset your password. How do I reset the mysql-server password?

# mysql -u root'
Access denied for user 'root'@'localhost' (using password: NO)'

Resolution

To reset the MySQL root password We have to follow the below procedure :

  1. The first Step stop the MySQL service:
    # service mysqld stop
    Stopping MySQL: [ OK ]
  2. Use the below command to start MySQL :

    # /usr/bin/mysqld_safe --skip-grant-tables &

    Note: On RHEL 3, mysqld_safe was called safe_mysqld:

    # /usr/bin/safe_mysqld --skip-grant-tables &

    Note: mysql_safe is a shell script this will only invoke mysqld but additionally traps any forceful terminations of the MySQL server and this will avoid any database corruption. 

  3. Change the password of the root user:

    # mysql -u root mysql
    mysql> UPDATE user SET Password=PASSWORD('new_password') WHERE user='root';
    mysql> FLUSH PRIVILEGES;
    mysql> exit;
  4.   Now Restart mysqld first use mysqladmin to ensure that the service shutdown successfully to avoid any other issue.

    # mysqladmin -p shutdown

  5. Now restart the MySQL service as per normal:

    # service mysqld start 

Root Cause

  • The root password for mysqld was forgotten or lost.
  • You are a new admin and the old admin did not handover passwords.
  • Other team members reset the password and missed it.
  • Use of file to create a new server but MySQL password is not mentioned in doc.
]]>
https://www.explinux.com/2021/01/how-to-reset-my-mysql-database-root-password.html/feed 0
How to Use vi Editor in Linux and vi Editor Cheat-Sheet with 38 Shortcut https://www.explinux.com/2020/07/how-to-use-vi-editor-in-linux-and-vi-editor-command-in-linux.html https://www.explinux.com/2020/07/how-to-use-vi-editor-in-linux-and-vi-editor-command-in-linux.html#comments Sun, 05 Jul 2020 04:30:00 +0000 https://explinux.online/2020/07/05/how-to-use-vi-editor-in-linux-and-vi-editor-command-in-linux/ How to Use vi Editor in Linux and vi Editor Cheat-Sheet with 38 Shortcut Read More »

]]>
How to Use vi Editor in Linux and vi Editor Command in Linux
How to Use vi Editor in Linux and vi Editor Command in Linux

How to Use vi Editor in Linux and vi Editor Command in Linux

vi Editor :

. vi is the symbolic link of vim and this default editor comes with Linux based OS. This is very popular among sysadmins. This a very simple and powerful editor. You can use it to make your rivels list, a letter to your valentine, script, code, and edit any source code. This is your best friend in the Linux system.

vi Editor modes:

vi Editor has 3 modes –

1- Command mode :

                                This is the default mode when we enter in vi editor. In this mode almost every key n keyboard has a function, so use it very carefully.
Command mode
Command mode when enter file using vi <filename>
Command mode when press esc key
Command mode when press esc key from any other mode

2- Insert Mode :

                         You can enter this mode by pressing the “i” key on the keyboard. In this mode, you can write anything your code, list, or edit file.
insert mode

3- Visual mode  or GUI mode :

                                                This is not available in all distro and less used feature of vi editor. You can enter this mode by pressing the “v” key on the keyboard from command mode.
visual mode
Note: By default vi editor mode is Command mode. You can enter any mode from command mode only and escape from that mode to command mode by pressing the “esc” key on the keyboard.
These are the modes of vi editor in Linux. Below you will see some vi editor cheat sheet which you can use in your sysadmin work and give you more understanding of vi editor commands in Linux.

vi Editor Basic Commands :

In this section, we will talk about the basic command of vi editor which has to know by every Linux user for use of the basic function of vi editor.

Create New File or Enter Any Existing File :

To enter any file use command vi <filename>. For example, see below
# vi explinux
enter vi editor
you will enter in command mode as default by this command.

Write or edit in vi editors:

Press lowercase i to enter in edit mode. Now you can write anything or delete and navigate by keyboard navigation arrow key.
insert mode

vi Editor Save and Exit :

When you finished your editing you have to come in command mode for exit or save the file. Please find below the steps to save and exit from the file.
  1. Press esc key on the keyboard to change command mode from insert mode.
  2. write “:wq! ” in lowercase. Press enter key to execute the command to save and exit from file. Please check below pic to understand more.
vi editor save and exit
w – stands for save file 
q – stands for quit from file 
! – do not ask anything just run my command 

vi Editor Cheat Sheet :

Now you have learned how to use vi editor and basic commands of vi editor which every Linux user should have known. Now we will talk about some advance command which should be known by every Linux sysadmin or any advance user.
These commands will run only in command mode as mentioned earlier. By default vi is in command mode if you are in another mode press esc key to enter in command mode.
Linux is a case sensitive so be careful about it.

List of Commands :

Open or edit any file :

# vi <filename>

Enter to Insert mode 

i

Enter in Command Mode:

esc key on the keyboard
Save the file and Continue Editing:
:w
Save and quit vi Editor :
:wq!
Quit from file and do not write change :
:q!

Yank :

Copy or yank line :
yy
Copy X number of lines :
Xyy
for example 3 lines – 3yy
Paste Yanked File Below the Cursor Line :
p
Paste Yanked File Above the Cursor Line :
P    or  shift+p
This is the yank function that can be used to reduce time. This is a very useful command.
Create a New Line below the current line of Cursor :
o
Create a New Line Above the Current Cursor Line:
O  or shift+o
Go To End of Line and Switch To Insert Mode for Write:
A  or shift+a
Switch To Insert Mode At Start Of Line:
a
Switch to Insert Mode at the Beginning of Line :
I   or  shift+ i
Move to Begin of the Word :
b
Move to End of  the Word:
e
 
Go to the Last Line of Open file :
G  or shift+g
Go to the X Number Line of Open file :
XG
for example, we have to go on 3rd line: 3G
Go to the X Number Line of Open file :
gg
Delete a Single Letter or Character:
x
Delete a Single Word in Open File:
dw
Delete X Number of Words in Open File :
Xdw
for example, delete 3 words: 3dw
Change Any Word in vi Editor :
cw
Delete an Entire Current Line :
dd
Delete X Lines in One Command :
Xdd
For example, we have to delete 3 lines then: 3dd
Change or Replace Any Character or Letter :
r
Overwrite All Characters form onwards Cursor Position: 
R  or shift+r
Get the Current Line’s line Number in Open File:
:num  and press enter
Get All Lines’s Line Number in Open File:
:set nu  and press enter key
Undo Last Change in vi Editor :
u
Undo Last Change in entire Line vi Editor :
U  or shift+g

Search in vi Editor :

/<yourstring>
or
?<yourstring>
press n for the next result in an open file in vi editor .

Navigation In vi Editor :

Move left :
h
Move Down:
j
Move up :
k
Move right :
l
At this point, you are familiar with vi editor commands. Practice more to become pro at vi editor.

Summary :

  • The vi editor is most popular and distributed in every Linux distribution to edit almost all types of files.
  • There are 3 modes of vi editor
  • In this article, we covered almost all commands of vi editor
Share Article if you like it or report any bug in comments
]]>
https://www.explinux.com/2020/07/how-to-use-vi-editor-in-linux-and-vi-editor-command-in-linux.html/feed 1
How to Check and Disable Selinux in Centos7/8, RHEL 7/8 https://www.explinux.com/2020/06/how-to-check-and-disable-selinux-in-centos7-8-rhel-7-8.html https://www.explinux.com/2020/06/how-to-check-and-disable-selinux-in-centos7-8-rhel-7-8.html#comments Tue, 30 Jun 2020 03:00:00 +0000 https://explinux.online/2020/06/30/how-to-check-and-disable-selinux-in-centos7-8-rhel-7-8/ How to Check and Disable Selinux in Centos7/8, RHEL 7/8 Read More »

]]>
How to Check and Disable Selinux  in Centos7/8, RHEL 7/8

How to check and disable Selinux  in Centos7/8, RHEL 7/8

SELinux – Security-Enhanced Linux

It is a security architecture that gives you more control over the system that others can access. It was integrated into Linux in 2003. SELinux is enabled by default and you can check SELinux status with the command sestaus. SELinux usage on AVC – access vector cache. You can configure SELinux for any subject or object.
Here in this article, we will talk about how to disable SELinux. As recommended do not disable it in the public domain if you do not have a firewall at the network level.
There are three modes of SELinux :
#     enforcing stand for – SELinux security policy is enforced.
#     permissive stands for –  SELinux prints warnings instead of enforcing.
#     disabled stand for – No SELinux policy is loaded.
Related Article:

How To Disable SELinux

Step 1- Check the Status with the below command

#  sestatus
sestatus
Now you can see in the above pic SELinux is in enforcing status. This means SELinux is active.

Step 2- Disable SELinux from the below command and check the status

# setenforce 0
setenforce 0
This will disable SELinux temporarily. For permanent you need to do an entry in the configuration file.

Step 3-  Make changes in the configuration file for permanent SELinux disable

There are two configuration files that we have to change to disable or permissive as per our requirement.

File -1 – Change by the below command

# vi /etc/sysconfig/selinux
/etc/selinux/config
Change permissive to disabled on SELINUX= *. This will disable SELinux permanently.

File -2 – Change by the below command

# vi /etc/selinux/config
/etc/selinux/config
Do the same as done in file -1. Save both files by (pressing the esc key):wq! Press enter.

4- Check now it will show disables in the config file.

# sestatus
SELinux disabled
Now at this point, you have successfully disabled SELinux and now you can check your services that are impacted by SELinux policy. Thanks, you can share this with your colleagues and request new articles in the comment section.
]]>
https://www.explinux.com/2020/06/how-to-check-and-disable-selinux-in-centos7-8-rhel-7-8.html/feed 1
How to Use and Enable/Disable Firewall in Centos7/8, RHEL 7/8 https://www.explinux.com/2020/06/how-to-check-and-disable-firewall-in-centos7-8-rhel-7-8.html https://www.explinux.com/2020/06/how-to-check-and-disable-firewall-in-centos7-8-rhel-7-8.html#respond Sun, 28 Jun 2020 03:00:00 +0000 https://explinux.online/2020/06/28/how-to-check-and-disable-firewall-in-centos7-8-rhel-7-8/ How to Use and Enable/Disable Firewall in Centos7/8, RHEL 7/8 Read More »

]]>
How to Disable firewall in Linux

How to Check and Disable Firewall  in Centos7/8, RHEL 7/8

As we know the firewall is very important for our system or server security. In some cases where you have an external firewall in your network or you are using a different firewall, you need to disable the firewall. Few sysadmins disable the firewall for any application too but we recommend that for a case of application configure the firewall, do not disable it.
In this article, we will see how to check and disable the firewall in Linux.

Disable Firewall :

Step -1 Check firewall status with the below command

 

#  systemctl status firewalld
systemctl status firewalld
This will show the current status of the firewall. Now it is on active showing.

Step -2 Disable the firewall with below command

#  systemctl stop firewalld
This command stops the firewall temporarily but if you reboot or reload it will be active again.

Step – 3 Permanent disable it with the below command

#  systemctl disable firewalld
systemctl disable firewalld
This will disable the firewall permanently. After this, you can manually start firewall.

Step -4 Check firewall status with the below command

#  systemctl status firewalld
systemctl status firewalld dead
Now you have successfully disabled the firewall of your Linux machine.
In case you want to Enable Firewall again. Follow the below procedure :

Enable Firewall

Step -1 Start firewall with below command

#  systemctl start firewalld
This will start firewall temporarily if it is disabled using disable command

Step -2 Enable the firewall permanently with the below command

 #  systemctl enable  firewalld
This will enable the firewall permanently.

Add a Port or Service  in the Firewall

 

# firewall-cmd --zone=public --add-port=8080/tcp --permanent
# firewall-cmd --zone=public --add-service=tomcat --permanent
# firewall-cmd --reload
This will add ports and services to firewall
At this point, you know how to disable and enable the firewall on RHEL 7/8  and Centos 7/8. Share this if it is helpful.
]]>
https://www.explinux.com/2020/06/how-to-check-and-disable-firewall-in-centos7-8-rhel-7-8.html/feed 0
How to Install Google Chrome 83 On Rhel 7 / Centos 7 And Dependency Resolution – 2021 Updated https://www.explinux.com/2020/05/how-to-install-google-chrome-83-on-rhel-7-centos-7-and-dependency-resolution-2021-updated.html https://www.explinux.com/2020/05/how-to-install-google-chrome-83-on-rhel-7-centos-7-and-dependency-resolution-2021-updated.html#comments Sun, 24 May 2020 18:07:00 +0000 https://explinux.online/2020/05/24/how-to-install-google-chrome-83-on-rhel-7-centos-7-and-dependency-resolution-2021-updated/ How to Install Google Chrome 83 On Rhel 7 / Centos 7 And Dependency Resolution – 2021 Updated Read More »

]]>

How to Install Google Chrome 83 On Rhel 7 / Centos 7 And Dependency Resolution – 2021 Updated 

How to Install Google Chrome 83 On Rhel 7 / Centos 7 And Dependency Resolution - 2020 Updated

This is an updated tutorial to install Google Chrome on Rhel 7 /Centos. Many of us facing dependencies issues in installing Google Chrome.

Google Chrome is a web browser from Google Chrome available free to use. Chrome is the most popular browser now.

In This Tutorial We Will learn:

  • How to install Google Chrome in RHEL7 /CENTOS 7
  • Resolve dependencies like glibc-common, etc
  • resolve the issue of ” –skip-broken to work around the problem”, “rpm -Va –nofiles –nodigest”
  • Create a local repo with packages 

Our Environment :

RHEL 7.7 but this can work any version of RHEL / CENTOS 7. Rhel 7 yum repository configured.
Rhel 7 /Centos 7

1- Configure Google Chrome Repository 

Create a file name googlechrome.repo in yum.repos.d directory. by the following command :
# vi /etc/yum.repos.d/googlechrome.repo
Do below line entry in the file and save it by :wq! 
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
Google-chrome.repo
Now we have 2 Repository 
4 %2Byou%2Bhave%2B2%2Brepo Install Google Chrome 83 On Rhel 7

We will face issue of dependencies if we install google chrome from yum. So we will create a new repo with dependencies. 

2- Configure dependencies Repository :

  • Create a directory extrarepo 
# mkdir /extrarepo
  • Download below packages from https://pkgs.org/ or RedHat Package download page if you have a subscription. We have made simple for you , you can download from the below link also.
Chrome Dependency Package   tar file use 7zip on windows or tar -xzvf filename in Linux to extract 
glibc-2.30-alt1.x86_64.rpm
glibc-core-2.30-alt1.x86_64.rpm
libwayland-client-1.15.0-1.el7.x86_64.rpm
libX11-1.6.7-2.el7.x86_64.rpm
libX11-common-1.6.7-2.el7.noarch.rpm
libXau-1.0.8-2.1.el7.x86_64.rpm
libxcb-1.13-1.el7.x86_64.rpm
libXext-1.3.3-3.el7.x86_64.rpm
vulkan-1.1.97.0-1.el7.x86_64.rpm
vulkan-devel-1.1.97.0-1.el7.x86_64.rpm
vulkan-filesystem-1.1.97.0-1.el7.noarch.rpm
9 %2Bpackage%2Blist Install Google Chrome 83 On Rhel 7
  • Use any tool, like WinSCP , Filezilla or you can directly download using utility wget to server. Here we have used WinSCP.
8 %2Bdownload%2Brequired%2Bpackage Install Google Chrome 83 On Rhel 7
  • Install createrepo and run command createrepo /extrarepo . This will create repodata for packages.
# yum install -y createrepo 
# createrepo /extrarepo/
    10%2B %2Brun%2Bcreaterepo%2Bcommand Install Google Chrome 83 On Rhel 7

  • Now create another file in /etc/yum,repos.d/Requiredpkg.repo
# vi /etc/yum.repos.d/Requiredpkg.repo
  • Do below lines in file and save from :wq!
[Required-Pkg]
name=Google Chrome required Pkg
baseurl=file:///extrarepo
enable=1
gpgcheck=0
create%2Bgoogle chrome.repo Install Google Chrome 83 On Rhel 7
Now we have 3 repositories and we are ready to install google chrome.
13%2B %2Bwe%2Bhave%2B3%2Brepo%2Bcheck Install Google Chrome 83 On Rhel 7

3- Install google chrome :

# yum install google-chrome-stable -y 
This will install google chrome without any error

15%2B %2Bchrome%2Binstalled Install Google Chrome 83 On Rhel 7

.

Check google chrome version by below command :
google-chrome –version

16%2B %2Bchrome%2Bversion Install Google Chrome 83 On Rhel 7
Start google chrome by command :
# google-chrome &
Now at this point you have installed google chrome. Let us know if you face any issues. You can Dm also on our Insta page or use #explinux to ask questions.
]]>
https://www.explinux.com/2020/05/how-to-install-google-chrome-83-on-rhel-7-centos-7-and-dependency-resolution-2021-updated.html/feed 1