Thursday, June 21, 2018

RHEL7 - update from RHEL7.3 to RHEL7.5

Following command below, resolve the issue.
======================================

Issue
- yum update was interrupted in the middle and system is left with older and newer (broken) packages which caused on `duplicates package' issue.
-> We need to remove  newer duplicate packages from the system.

Resolution
Remove duplicate packages. If you have an older version of yum-utils, the --removenewestdupes option may not be available.

Run the command below to cleanup duplicates,
# package-cleanup --cleandupes --removenewestdupes

In our case, the above command fixed our issue. Solution says, if it does not fix, use the following steps below to remove duplicates.

# yum update > file

- edit file to remove lines with conflict present and those number:  entries
used awk to cut out the package name
Then in a loop read the input and did the rpm command : `# rpm -e --justdb <package name> `

For more details, kindly refer : yum fails with package_name-version1 is a duplicate with package_name-version2.

The cleandupes option removes the older packages instead of newer hence can't be used directly.


----------------- Here are the real Steps followed to resolve the issue ...

Boot your system into rescue mode
1. Reboot your system

2. On the timer screen, the grub menu, press arrowkey to stop the timer.

3. Select the kernel line you want to edit and press e to edit.
or
if you have line that says rescue, select and press enter to boot.
It will take you to rescue mode too.

4. Arrow down to the line called 'linux16'.

5. Go to the end of the line (Press CTRL+e) and type
systemd.unit=rescue.target

6. Press CTRL+x to save and boot the system.

select the rescue mode.

7. verify your root is mounted and run the command below, wait until finished.
# package-cleanup --cleandupes --removenewestdupes

8. Run yum update on rescue mode. Make sure you set up local repo.
# yum update

9. Once done, reboot the machine.
# reboot


=================
This is detail what was done ....

# cd /opt/repo/RHEL7-Patch_062017/
# rhn_register
# reposync -n -p /opt/repo/RHEL7-Patch_06112018 --repoid=rhel-7-server-rpms
# tail -30f yum.log
# mpstat -P ALL 2 5
# vmstat 2 5
# tail -300 yum.log
# tail -300f yum.log
# cat yum.log |more
# netstat -an | grep -i established
# cd /etc/yum.repos.d
# cat local.repo
# yum repolist
# yum history
# yum history list all | more
# yum history info yum
# yum history info yum | wc -l
# yum history info httpd
# yum history info httpd | wc -l
# yum history summary httpd
# yum history info 8
# yum history info 7
# yum history info 8 | wc -l
# yum history undo 8
# yum history undo 8
# yum clean all && yum makecache fast
# uname -a >/var/tmp/uname-a-before-reboot.txt
# reboot
# yum history
# yum history redo 8
# yum-complete-transaction
# more /etc/grub2.cfg
# yum-complete-transaction --cleanup-only
# yum history redo last
# man yum
# yum check
# ls | grep ibcanberra
# rpm -qa | grep ibcanberra
# rpm -e libcanberra-gtk3-0.30-5.el7.x86_64
# yum remove libcanberra-gtk3-0.30-5.el7.x86_64
# yum install  libcanberra-gtk3-0.30-5.el7.x86_64
# yum install cheese.x86_64 2:3.14.2-5.el7

# cd /
# find . -name "*canberra*" -print
# cd /usr/lib64
# ls -al | grep -i canberra
# rpm -qf /usr/lib64/libcanberra-gtk3.so.0.1.9
# cd /opt/repo/RHEL7-Patch_06112018/rhel-7-server-rpms/Packages
# ls | grep -i canberra

# ls -ltr | grep -i yum
# grep -i kernel yum.log-20180612
# mpstat -P CPU 2 5
# mpstat -P ALL 2 5

# yum check duplicates
# yum update --skip-broken
# cd /var/lib/rpm
# mkdir /var/tmp/rpm-db-bk
# mv __db* /var/tmp/rpm-db-bk
# rpm --rebuilddb
# yum clean all
# rm -rf /var/cache/yum
# rm -rf __db*
# rpm --rebuilddb

# yum clean all
# yum update
# vi /etc/yum/pluginconf.d/search-disabled-repos.conf
# yum clean all
# yum update
# cd /var/tmp
# package-cleanup --cleandupes --removenewestdupes
# yum update
# which vncserver
# cd /usr
# find . -name "*term*" -print
# systemctl set-default multi-user.target
# yum install tigervnc-server tigervnc
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
# vi /etc/systemd/system/vncserver@:1.service
# firewall-cmd --permanent --zone=public --add-port 5901/tcp
# vi /etc/ssh/sshd_config

# yum update
# systemctl set-default graphical.target
# systemctl enable graphical.target

==========================================


1. What happened was I ran yum update command and it took more then 2 hours just to complete 521 packages output 1701. After that session timed out.

  Updating   : gtkmm24-2.24.5-1.el7.x86_64                        520/1701
  Updating   : adwaita-gtk2-theme-3.22.2-2.el7_5.x86_64 [###############  ]      521/1701

[root@srmp-lnx-v01 log]# yum history
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
     8 | Sam Sharma <ssharma>   | 2018-06-11 15:03 | I, O, U        |  912 *<
     7 | Sam Sharma <ssharma>   | 2017-06-05 15:36 | Install        |    3 >
     6 | Sam Sharma <ssharma>   | 2017-06-05 15:16 | Install        |    5
     5 | Ram Sharma <rsharma>    | 2017-05-31 11:05 | I, U           |  163 EE
     4 | Sam Sharma <ssharma>   | 2017-05-30 10:39 | Install        |    1  <
     3 | Sam Sharma <ssharma>   | 2017-04-20 11:06 | Install        |    1 >
     2 | Sam Sharma <ssharma>   | 2017-04-20 09:48 | Install        |    1
     1 | System <unset>           | 2017-04-19 11:43 | Install        | 1286
Warning: RPMDB altered outside of yum.
** Found 478 pre-existing rpmdb problem(s), 'yum check' output follows:

The output shows history as well as any incomplete packages...

2. Checked the log at /var/log/yum.log
This file also had 520 entires.

[root@srmp-lnx-v01 ~]# yum history list all | more


3. using transaction id
[root@srmp-lnx-v01 ~]# yum history info 8

This command output is too much.
[root@srmp-lnx-v01 ~]# yum history info 8 | wc -l
1725
[root@srmp-lnx-v01 ~]#


[root@srmp-lnx-v01 ~]# yum history info 7
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Transaction ID : 7
Begin time     : Mon Jun  5 15:36:45 2017
Begin rpmdb    : 1299:bf60fd111096aedefb3f12847c700fd25cd3496b
End time       :            15:37:03 2017 (18 seconds)
End rpmdb      : 1302:46b6f6bb058d5410b29e1966d318e631c568354d **
User           : Sam Sharma <ssharma>
Return-Code    : Success
Command Line   : install elinks
Transaction performed with:
    Installed     rpm-4.11.3-21.el7.x86_64                  @anaconda/7.3
    Installed     subscription-manager-1.17.15-1.el7.x86_64 @anaconda/7.3
    Installed     yum-3.4.3-150.el7.noarch                  @anaconda/7.3
Packages Altered:
    Install     elinks-0.12-0.36.pre6.el7.x86_64   @LOCAL
    Dep-Install js-1:1.8.5-19.el7.x86_64           @LOCAL
    Dep-Install nss_compat_ossl-0.9.6-8.el7.x86_64 @LOCAL
history info
[root@srmp-lnx-v01 ~]#


4. Now, I decided to back out the update to transaction 7.

[root@srmp-lnx-v01 ~]# yum history
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
     8 | Sam Sharma <ssharma>   | 2018-06-11 15:03 | I, O, U        |  912 *<
     7 | Sam Sharma <ssharma>   | 2017-06-05 15:36 | Install        |    3 >
     6 | Sam Sharma <ssharma>   | 2017-06-05 15:16 | Install        |    5
     5 | Ram Sharma <rsharma>    | 2017-05-31 11:05 | I, U           |  163 EE
     4 | Sam Sharma <ssharma>   | 2017-05-30 10:39 | Install        |    1  <
     3 | Sam Sharma <ssharma>   | 2017-04-20 11:06 | Install        |    1 >
     2 | Sam Sharma <ssharma>   | 2017-04-20 09:48 | Install        |    1
     1 | System <unset>           | 2017-04-19 11:43 | Install        | 1286

[root@srmp-lnx-v01 ~]# yum history undo 8

'''''
 libgpg-error                             i686     1.12-3.el7                     -                      0.0

Transaction Summary
===============================================================================================================
Remove          58 Packages
Reinstall      463 Packages
Not installed   54 Packages

Total download size: 199 M
Is this ok [y/d/N]: y
Downloading packages:
---------------------------------------------------------------------------------------------------------------
Total                                                                          126 MB/s | 199 MB  00:00:01
Running transaction check
Running transaction test

Transaction check error:

Error Summary
-------------

[root@srmp-lnx-v01 ~]#


ran the command yum history redo
yum clean all && yum makecache fast
# yum history undo 8

failed

# yum clean all && yum makecache fast

5. rebooted and did yum update
# yum-complete-transaction --cleanup-only

[root@srmp-lnx-v01 ~]# yum update
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-tr                                                                                                                        ansaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try r                                                                                                                        emoving/installing packages by hand (maybe package-cleanup can help).
--> Running transaction check
---> Package ModemManager.x86_64 0:1.6.0-2.el7 will be updated
---> Package ModemManager.x86_64 0:1.6.10-1.el7 will be an update
---> Package NetworkManager.x86_64 1:1.4.0-20.el7_3 will be obsoleted
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-20.el7_3 for package: 1:NetworkManager-wifi-1.4.0-20.el7_                                                                                                                        3.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-20.el7_3 for package: 1:NetworkManager-team-1.4.0-20.el7_                                                                                                                        3.x86_64
---> Package NetworkManager-adsl.x86_64 1:1.4.0-20.el7_3 will be updated
---> Package NetworkManager-adsl.x86_64 1:1.10.2-14.el7_5 will be an update
---> Package NetworkManager-config-server.x86_64 1:1.4.0-20.el7_3 will be updated


=====================
yum update error

rror: Package: 1:gnome-bluetooth-libs-3.20.1-1.el7.x86_64 (LOCAL-Jun-2018-PATCH)
           Requires: libcanberra-gtk3.so.0()(64bit)
           Removing: libcanberra-gtk3-0.30-5.el7.x86_64 (@anaconda/7.3)
               libcanberra-gtk3.so.0()(64bit)
 You could try using --skip-broken to work around the problem
** Found 478 pre-existing rpmdb problem(s), 'q' output follows:
ModemManager-glib-1.6.10-1.el7.x86_64 is a duplicate with ModemManager-glib-1.6.0-2.el7.x86_64
1:NetworkManager-1.10.2-14.el7_5.x86_64 is a duplicate with 1:NetworkManager-1.4.0-20.el7_3.x86_64
1:NetworkManager-glib-1.10.2-14.el7_5.x86_64 has installed conflicts NetworkManager-libnm < ('1', '1.10.2', '14.el7_5'): 1:NetworkManager-libnm-1.4.0-20.el7_3.x86_64
1:NetworkManager-glib-1.10.2-14.el7_5.x86_64 is a duplicate with 1:NetworkManager-glib-1.4.0-20.el7_3.x86_64
1:NetworkManager-libnm-1.10.2-14.el7_5.x86_64 has installed conflicts NetworkManager-glib < ('1', '1.10.2', '14.el7_5'): 1:NetworkManager-glib-1.4.0-20.el7_3.x86_64
1:NetworkManager-libnm-1.10.2-14.el7_5.x86_64 is a duplicate with 1:NetworkManager-libnm-1.4.0-20.el7_3.x86_64

.......


           Available: libvirt-client-3.9.0-14.el7_5.4.i686 (rhel-7-server-rpms)
               Not found
Error: avahi-glib conflicts with avahi-0.6.31-19.el7.x86_64
Error: Package: mesa-dri-drivers-11.2.2-2.20160614.el7.x86_64 (@anaconda/7.3)
           Requires: libLLVM-3.8-mesa.so()(64bit)
           Removing: mesa-private-llvm-3.8.1-1.el7.x86_64 (@anaconda/7.3)
               libLLVM-3.8-mesa.so()(64bit)
           Updated By: mesa-private-llvm-3.9.1-3.el7.x86_64 (LOCAL-Jun-2018-PATCH)
              ~libLLVM-3.9-mesa.so()(64bit)
 You could try using --skip-broken to work around the problem
** Found 478 pre-existing rpmdb problem(s), 'yum check' output follows:
ModemManager-glib-1.6.10-1.el7.x86_64 is a duplicate with ModemManager-glib-1.6.0-2.el7.x86_64
1:NetworkManager-1.10.2-14.el7_5.x86_64 is a duplicate with 1:NetworkManager-1.4.0-20.el7_3.x86_64
1:NetworkManager-glib-1.10.2-14.el7_5.x86_64 has installed conflicts NetworkManager-libnm < ('1', '1.10.2', '14.el7_5'): 1:NetworkManager-libnm-1.4.0-20.el7_3.x86_64
1:NetworkManager-glib-1.10.2-14.el7_5.x86_64 is a duplicate with 1:NetworkManager-glib-1.4.0-20.el7_3.x86_


====================
removed packages


Dependencies Resolved

=================================================================================================================================================
 Package                                                                       Arch                                       Version
=================================================================================================================================================
Removing:
 libcanberra-gtk3                                                              x86_64                                     0.30-5.el7
Removing for dependencies:
 cheese                                                                        x86_64                                     2:3.14.2-5.el7
 cheese-libs                                                                   x86_64                                     2:3.14.2-5.el7
 control-center                                                                x86_64                                     1:3.14.5-19.el7
 empathy                                                                       x86_64                                     3.12.10-2.el7
 firstboot                                                                     x86_64                                     19.12-1.el7
 gdm                                                                           x86_64                                     1:3.14.2-20.el7_3
 gnome-classic-session                                                         noarch                                     3.14.4-21.el7
 gnome-color-manager                                                           x86_64                                     3.14.2-1.el7
 gnome-contacts                                                                x86_64                                     3.14.2-4.el7
 gnome-disk-utility                                                            x86_64                                     3.14.0-2.el7
 gnome-initial-setup                                                           x86_64                                     3.14.4-5.el7
 gnome-packagekit                                                              x86_64                                     3.14.3-7.el7
 gnome-packagekit-common                                                       x86_64                                     3.14.3-7.el7
 gnome-packagekit-installer                                                    x86_64                                     3.14.3-7.el7
 gnome-packagekit-updater                                                      x86_64                                     3.14.3-7.el7
 gnome-screenshot                                                              x86_64                                     3.14.0-3.el7
 gnome-settings-daemon                                                         x86_64                                     3.14.4-12.el7
 gnome-shell                                                                   x86_64                                     3.14.4-53.el7
 gnome-shell-extension-alternate-tab                                           noarch                                     3.14.4-21.el7
 gnome-shell-extension-apps-menu                                               noarch                                     3.14.4-21.el7
 gnome-shell-extension-common                                                  noarch                                     3.14.4-21.el7
 gnome-shell-extension-launch-new-instance                                     noarch                                     3.14.4-21.el7
 gnome-shell-extension-places-menu                                             noarch                                     3.14.4-21.el7
 gnome-shell-extension-window-list                                             noarch                                     3.14.4-21.el7
 gnome-tweak-tool                                                              noarch                                     3.14.3-2.el7
 initial-setup-gui                                                             x86_64                                     0.3.9.36-1.el7
 libcanberra-gtk2                                                              x86_64                                     0.30-5.el7
 metacity                                                                      x86_64                                     2.34.13-7.el7
 mutter                                                                        x86_64                                     3.14.4-31.el7
 orca                                                                          x86_64                                     3.6.3-4.el7
 pulseaudio-gdm-hooks                                                          x86_64                                     6.0-9.el7_3
 subscription-manager-initial-setup-addon                                      x86_64                                     1.17.15-1.el7
 system-config-printer                                                         x86_64                                     1.4.1-19.el7

Transaction Summary
===========================================================================================================================================

Removed:
  libcanberra-gtk3.x86_64 0:0.30-5.el7

Dependency Removed:
cheese.x86_64 2:3.14.2-5.el7                              
cheese-libs.x86_64 2:3.14.2-5.el7
control-center.x86_64 1:3.14.5-19.el7                     
gnome-initial-setup.x86_64 0:3.14.4-5.el7
empathy.x86_64 0:3.12.10-2.el7
firstboot.x86_64 0:19.12-1.el7 
gdm.x86_64 1:3.14.2-20.el7_3
gnome-classic-session.noarch 0:3.14.4-21.el7
gnome-color-manager.x86_64 0:3.14.2-1.el7
gnome-contacts.x86_64 0:3.14.2-4.el7
gnome-disk-utility.x86_64 0:3.14.0-2.el7
gnome-packagekit.x86_64 0:3.14.3-7.el7
gnome-packagekit-common.x86_64 0:3.14.3-7.el7             
gnome-packagekit-installer.x86_64 0:3.14.3-7.el7
gnome-packagekit-updater.x86_64 0:3.14.3-7.el7
gnome-screenshot.x86_64 0:3.14.0-3.el7
gnome-settings-daemon.x86_64 0:3.14.4-12.el7
gnome-shell.x86_64 0:3.14.4-53.el7
gnome-shell-extension-alternate-tab.noarch 0:3.14.4-21.el7
gnome-shell-extension-apps-menu.noarch 0:3.14.4-21.el7
gnome-shell-extension-common.noarch 0:3.14.4-21.el7       
gnome-shell-extension-launch-new-instance.noarch 0:3.14.4-21.el7
gnome-shell-extension-places-menu.noarch 0:3.14.4-21.el7  
gnome-shell-extension-window-list.noarch 0:3.14.4-21.el7
gnome-tweak-tool.noarch 0:3.14.3-2.el7                    
initial-setup-gui.x86_64 0:0.3.9.36-1.el7
libcanberra-gtk2.x86_64 0:0.30-5.el7  
metacity.x86_64 0:2.34.13-7.el7
mutter.x86_64 0:3.14.4-31.el7  
orca.x86_64 0:3.6.3-4.el7
pulseaudio-gdm-hooks.x86_64 0:6.0-9.el7_3 
subscription-manager-initial-setup-addon.x86_64 0:1.17.15-1.el7
system-config-printer.x86_64 0:1.4.1-19.el7

Complete!
[root@srmp-lnx-v01 Packages]#
[root@srmp-lnx-v01 Packages]#


===========================
installation completed

 Verifying  : nautilus-3.14.3-12.el7.x86_64                  48/51
  Verifying  : 1:totem-3.14.3-6.el7.x86_64                       49/51
  Verifying  : gnome-session-3.14.0-5.el7.x86_64                   50/51
  Verifying  : evince-libs-3.14.2-17.el7.x86_64                     51/51

Installed:
  cheese.x86_64 2:3.22.1-2.el7

Dependency Installed:
  cheese-libs.x86_64 2:3.22.1-2.el7     clutter-gst3.x86_64 0:3.0.22-1.el7                    compat-gnome-desktop314.x86_64 0:3
  webkitgtk4-jsc.x86_64 0:2.16.6-6.el7  webkitgtk4-plugin-process-gtk2.x86_64 0:2.16.6-6.el7

Updated:
  gedit.x86_64 2:3.22.0-3.el7

Dependency Updated:
  eog.x86_64 0:3.20.5-2.el7                  evince.x86_64 0:3.22.1-7.el7                  evince-libs.x86_64 0:3.22.1-7.el7
  gnome-desktop3.x86_64 0:3.22.2-2.el7       gnome-font-viewer.x86_64 0:3.22.0-1.el7       gnome-online-accounts.x86_64 0:3.26.2
  gnome-software.x86_64 0:3.22.7-5.el7       grilo.x86_64 0:0.3.3-1.el7                    grilo-plugins.x86_64 0:0.3.4-3.el7
  gtksourceview3.x86_64 0:3.22.2-1.el7       nautilus.x86_64 0:3.22.3-5.el7                nautilus-extensions.x86_64 0:3.22.3-5

Complete!
[root@srmp-lnx-v01 Packages]#

zip extract - error -> Directory checksum error


Folks, we make mistakes

I downloaded Solaris x86 kernel patch. tried to extract, I got checksum error. copy same package to different server and tried, got same error. copied to /var/tmp and tried to extract, same error.

I was surprised. Took a break and came back and tried again, it worked. Verify what I was doing wrong ..and now, I know what I did. lol...

do you want to see it?

The error was: Directory checksum error

[root@sinf-mg-p10]# tar -xvf 10_x86_Recommended_CPU_2018-04.zip
tar: directory checksum error

[root@sunserv02]#

[root@sunserv02]$ unzip 10_x86_Recommended_CPU_2018-04.zip
Archive:  10_x86_Recommended_CPU_2018-04.zip
   creating: 10_x86_Recommended_CPU_2018-04/
  inflating: 10_x86_Recommended_CPU_2018-04/installpatchset
  inflating: 10_x86_Recommended_CPU_2018-04/Copyright
  inflating: 10_x86_Recommended_CPU_2018-04/10_x86_Recommended_CPU_2018-04.README
   creating: 10_x86_Recommended_CPU_2018-04/patches/
   creating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/
  inflating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/postpatch
  inflating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/README.139292-02
  inflating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/.diPatch
  inflating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/prebackout
  inflating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/139292-02.html
  inflating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/LEGAL_LICENSE.TXT
  inflating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/prepatch
  inflating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/patchinfo
  inflating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/postbackout
   creating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/SUNWpgadmin3S/
  inflating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/SUNWpgadmin3S/pkginfo
   creating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/SUNWpgadmin3S/reloc/
   creating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/SUNWpgadmin3S/reloc/usr/
   creating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/SUNWpgadmin3S/reloc/usr/share/
   creating: 10_x86_Recommended_CPU_2018-04/patches/139292-02/SUNWpgadmin3S/reloc/usr/share/src/

Thursday, June 14, 2018

Android phone - reinstall application on new phone


If you lost or your phone is broken, and need to install same application, follow the following steps to install application on your android based phones.

Reinstall and re-enable apps

You can use apps you bought on Google Play on any Android device without paying again. However, each device must have the same Google Account on it. You can:
  • Install an app on more than one Android device. 
  • Install an app on a new Android device. 
  • Reinstall an app you bought but deleted. 
Also, if you turned off an app that came with your device, you can turn it back on.

Reinstall apps or turn apps back on

  1. On your Android phone or tablet, open the Google Play Store app Google Play.
  2. Tap Menu Menu and then My apps & games and then Library.
  3. Tap the app you want to install or turn on.
  4. Tap Install or Enable.



https://www.androidcentral.com/how-restore-your-apps-and-settings-new-android-phone

Wednesday, June 13, 2018

RHEL7 - A Quick Way to Use Vncserver Redhat 7

1. Make sure you have working yum repo

# vi /etc/yum.repos.d/local.repo
[REMOTE-sREPO]
name = Redhat EP 7 Local repo
baseurl = http://192.168.20.241/RHEL7-Patch_06112018
enabled=1
gpgcheck=0

wq!

# yum clean all
# yum repolist
# yum list
# ps -ef | grep vnc
# rpm -qa | grep vnc

2. Check if you have vnc software package

# yum list | grep -i vnc
# yum install tigervnc-server.x86_64
# which vncserver

3. Login as a user and run vncserver command. It will create x-server session.
# su - samrat
[samrat@rsmd-lx-v02 ~]$ vncserver

Warning: rsmd-lx-v02.sces.mil:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server rsmd-lx-v02.sces.mil:1


New 'rsmd-lx-v02.sces.mil:2 (samrat)' desktop is rsmd-lx-v02.sces.mil:2

Starting applications specified in /home/samrat/.vnc/xstartup
Log file is /home/samrat/.vnc/rsmd-lx-v02.sces.mil:2.log

[samrat@rsmd-lx-v02 ~]$

4. Now, download VNC-Viewer. I use real-vnc viewer.
you can use tight-vnc or any other of your choice.

When you open the application, you specify the remote host info : supply ipaddress of server
port specify the session info such as hostname:1 or :2

Review the output of command vncserver.

remote host can be like host_ip:post or 192.168.10.20:2


5. If you can't connect, make sure port is added to firewall

[root@rsmd-lx-v02 html]# telnet 192.168.20.239 5902
Trying 192.168.20.239...
telnet: connect to address 192.168.20.239: Connection refused


# ps -ef | grep vnc
# firewall-cmd --permanent --zone=public --add-port=5902/tcp
# systemctl status firewalld
# firewall-cmd --reload

6. Verify you can connect now,

[root@rsmd-lx-v02 html]# telnet 192.168.20.239 5902
Trying 192.168.20.239...
Connected to 192.168.20.239.
Escape character is '^]'.
RFB 003.008
^]
telnet> q
Connection closed.
[root@rsmd-lx-v02 html]#

7. Now, try connecting, you should be able to login to the server.
If not review all the steps before.

8. Once your work is done, kill the vnc session
$ vncserver -kill :2

[samrat@rsmd-lx-v02 ~]$


Monday, June 11, 2018

RHEL7- Register your redhat 7 system with Redhat Subscription Manager



1. Register your system with redhat
[root@rrep-lx-v01 ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: sam.bhusal@expanor.com
Password:
The system has been registered with ID: f802d406-af73-44c3-a201-2794691dfbd5

2. It lists detail about your subscription.
[root@rrep-lx-v01 ~]# subscription-manager list --available --all
Note the Pool ID.
Pool ID:             8a85f97c87ma4fac0162bf4826593131

3. Attach the pool ID for your subscription
[root@rrep-lx-v01 ~]# subscription-manager attach --pool=8a85f97c87ma4fac0162bf4826593131

4. List all available repos
[root@rrep-lx-v01 ~]# subscription-manager repos

Repo ID:   rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/os
Enabled:   1

Repo ID:   rhel-7-server-optional-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/optional/os
Enabled:   0

5. Now, select the ones you needed and sync the packages
[root@rrep-lx-v01 repo]# reposync -n -p /opt/repo/RHEL7-Patch_06112018 --repoid=rhel-7-server-rpms
LOCAL                                                                   | 4.1 kB  00:00:00
rhel-7-server-rpms                                                      | 3.5 kB  00:00:00
(1/3): rhel-7-server-rpms/7Server/x86_64/group                          | 855 kB  00:00:01
(2/3): rhel-7-server-rpms/7Server/x86_64/updateinfo                     | 2.8 MB  00:00:03
(3/3): rhel-7-server-rpms/7Serve 62% [==============         ] 1.2 MB/s |  35 MB  00:00:17 ETA

''''''''''''''''''''''''''''''

6. Now, create repo
[root@rrep-lx-v01 RHEL7-Patch_06112018]# cat /etc/yum.repos.d/local.repo

[LOCAL-May-PATCH]
name = Redhat EP 7 May 2018 patch Local repo
baseurl = file:///opt/repo/RHEL7-Patch_06112018
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[root@rrep-lx-v01 RHEL7-Patch_06112018]#
[root@rrep-lx-v01 RHEL7-Patch_06112018]# createrepo /opt/repo/RHEL7-Patch_06112018
[root@rrep-lx-v01 RHEL7-Patch_06112018]# yum clean all
[root@rrep-lx-v01 RHEL7-Patch_06112018]# yum repolist


7. Update the system
[root@rrep-lx-v01 ~]# yum update

8. Reboot your system
[root@rrep-lx-v01 ~]# reboot

~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Detail ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Register your system with redhat
[root@rrep-lx-v01 ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: sam.bhusal@expanor.com
Password:
The system has been registered with ID: f802d406-af73-44c3-a201-2794691dfbd5

2. It lists detail about your subscription.
[root@rrep-lx-v01 ~]# subscription-manager list --available --all
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)
Provides:            Oracle Java (for RHEL Server)
                     Red Hat Enterprise Linux Atomic Host
                     Red Hat Beta
                     Red Hat Developer Tools Beta (for RHEL Server)
                     dotNET on RHEL Beta (for RHEL Server)
                     Red Hat Container Images
                     dotNET on RHEL (for RHEL Server)
                     Red Hat Ansible Engine
                     Red Hat Developer Toolset (for RHEL Server)
                     Red Hat Enterprise Linux Atomic Host Beta
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat Software Collections (for RHEL Server)
                     Red Hat Enterprise Linux Server
                     Red Hat Container Images Beta
                     Red Hat Developer Tools (for RHEL Server)
SKU:                 RH00004RN
Contract:            11406558
Pool ID:             8a85f97c87ma4fac0162bf4826593131
Provides Management: No
Available:           2
Suggested:           1
Service Level:       Standard
Service Type:        L1-L3
Subscription Type:   Instance Based
Ends:                05/21/2019
System Type:         Physical

3. Attach the pool ID for your subscription
[root@rrep-lx-v01 ~]# subscription-manager attach --pool=8a85f97c87ma4fac0162bf4826593131
Successfully attached a subscription for: Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)
[root@rrep-lx-v01 ~]#

4. List all available repos
[root@rrep-lx-v01 ~]# subscription-manager repos
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-7-server-dotnet-debug-rpms
Repo Name: dotNET on RHEL Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/dotnet/1/debug
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.2-rpms
Repo Name: Red Hat Satellite Tools 6.2 (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.2/os
Enabled:   0

Repo ID:   rhel-7-server-v2vwin-1-debug-rpms
Repo Name: Red Hat Virt V2V Tool for RHEL 7 (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/v2vwin/debug
Enabled:   0

Repo ID:   rhel-7-server-insights-3-debug-rpms
Repo Name: Red Hat Insights 3 (for RHEL 7 Server) (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/insights/3/debug
Enabled:   0

Repo ID:   rhel-7-server-ansible-2-rpms
Repo Name: Red Hat Ansible Engine 2 RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2/os
Enabled:   0

Repo ID:   rhel-7-server-openstack-11-tools-debug-rpms
Repo Name: Red Hat OpenStack Platform 11 Tools for RHEL 7 Server (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/11/debug
Enabled:   0

Repo ID:   rhel-server-rhscl-7-eus-source-rpms
Repo Name: Red Hat Software Collections Source RPMs for Red Hat Enterprise Linux 7 RHEL 7 Server EUS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/rhscl/1/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-rhceph-2-tools-rpms
Repo Name: Red Hat Ceph Storage Tools 2 for Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/ceph-tools/2/os
Enabled:   0

Repo ID:   rhel-7-server-devtools-beta-source-rpms
Repo Name: Red Hat Developer Tools Beta Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/devtools/1/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-extras-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/extras/os
Enabled:   0

Repo ID:   rhel-7-server-ansible-2-source-rpms
Repo Name: Red Hat Ansible Engine 2 Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.1-source-rpms
Repo Name: Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.1/source/SRPMS
Enabled:   0

Repo ID:   rhel-atomic-host-beta-debug-rpms
Repo Name: Red Hat Enterprise Linux Atomic Host Beta (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/atomic/7/$basearch/debug
Enabled:   0

Repo ID:   rhel-7-server-rhn-tools-beta-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server Beta (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rhn-tools/os
Enabled:   0

Repo ID:   rhel-7-server-openstack-12-tools-debug-rpms
Repo Name: Red Hat OpenStack Platform 12 Tools for RHEL 7 Server (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/12/debug
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.1-debug-rpms
Repo Name: Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.1/debug
Enabled:   0

Repo ID:   rhel-server-rhscl-7-beta-source-rpms
Repo Name: Red Hat Software Collections Beta Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rhscl/1/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-devtools-beta-rpms
Repo Name: Red Hat Developer Tools Beta RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/devtools/1/os
Enabled:   0

Repo ID:   rhel-7-server-satellite-maintenance-6-rpms
Repo Name: Red Hat Satellite Maintenance 6 (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-maintenance/6/os
Enabled:   0

Repo ID:   rhel-7-server-devtools-source-rpms
Repo Name: Red Hat Developer Tools Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/devtools/1/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-satellite-maintenance-6-debug-rpms
Repo Name: Red Hat Satellite Maintenance 6 (for RHEL 7 Server) (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-maintenance/6/debug
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6-puppet-upgrade-beta-rpms
Repo Name: Red Hat Satellite Tools 6 Beta - Puppet Upgrade (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-tools/6-puppet-upgrade/os
Enabled:   0

Repo ID:   rhel-7-server-optional-beta-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional Beta (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/optional/debug
Enabled:   0

Repo ID:   rhel-7-server-openstack-12-tools-rpms
Repo Name: Red Hat OpenStack Platform 12 Tools for RHEL 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/12/os
Enabled:   0

Repo ID:   rhel-server-rhscl-7-beta-debug-rpms
Repo Name: Red Hat Software Collections Beta Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rhscl/1/debug
Enabled:   0

Repo ID:   rh-gluster-3-client-for-rhel-7-server-debug-rpms
Repo Name: Red Hat Storage Native Client for RHEL 7 (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhs-client/debug
Enabled:   0

Repo ID:   rhel-7-server-optional-fastrack-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional Fastrack (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/fastrack/rhel/server/7/$basearch/optional/debug
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.2-source-rpms
Repo Name: Red Hat Satellite Tools 6.2 (for RHEL 7 Server) (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.2/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.3-puppet4-rpms
Repo Name: Red Hat Satellite Tools 6.3 - Puppet 4 (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.3-puppet4/os
Enabled:   0

Repo ID:   rhel-7-server-openstack-9-tools-rpms
Repo Name: Red Hat OpenStack Platform 9 Tools for RHEL 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/9/os
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.5-rpms
Repo Name: Red Hat Ansible Engine 2.5 RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.5/os
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.2-debug-rpms
Repo Name: Red Hat Satellite Tools 6.2 (for RHEL 7 Server) (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.2/debug
Enabled:   0

Repo ID:   rhel-7-server-supplementary-beta-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary Beta (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/supplementary/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-openstack-10-tools-debug-rpms
Repo Name: Red Hat OpenStack Platform 10 Tools for RHEL 7 Server (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/10/debug
Enabled:   0

Repo ID:   rhel-7-server-rhceph-1.3-tools-rpms
Repo Name: Red Hat Ceph Storage Tools 1.3 for Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/ceph-tools/1.3/os
Enabled:   0

Repo ID:   rhel-7-server-thirdparty-oracle-java-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Oracle Java (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/oracle-java/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-openstack-9-tools-source-rpms
Repo Name: Red Hat OpenStack Platform 9 Tools for RHEL 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/9/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-thirdparty-oracle-java-beta-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Oracle Java Beta (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/oracle-java/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-openstack-10-tools-source-rpms
Repo Name: Red Hat OpenStack Platform 10 Tools for RHEL 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/10/source/SRPMS
Enabled:   0

Repo ID:   rhel-atomic-host-debug-rpms
Repo Name: Red Hat Enterprise Linux Atomic Host (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/atomic/7/7Server/$basearch/debug
Enabled:   0

Repo ID:   rhel-7-server-optional-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/optional/debug
Enabled:   0

Repo ID:   rhel-7-server-rhceph-1.3-tools-debug-rpms
Repo Name: Red Hat Ceph Storage Tools 1.3 for Red Hat Enterprise Linux 7 Server (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/ceph-tools/1.3/debug
Enabled:   0

Repo ID:   rhel-7-server-openstack-10-tools-rpms
Repo Name: Red Hat OpenStack Platform 10 Tools for RHEL 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/10/os
Enabled:   0

Repo ID:   rhel-server-rhscl-7-eus-debug-rpms
Repo Name: Red Hat Software Collections Debug RPMs for Red Hat Enterprise Linux 7 RHEL 7 Server EUS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/rhscl/1/debug
Enabled:   0

Repo ID:   rhel-7-server-extras-beta-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras Beta (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/extras/debug
Enabled:   0

Repo ID:   rhel-server-rhscl-7-rpms
Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhscl/1/os
Enabled:   0

Repo ID:   rhel-7-server-rhn-tools-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhn-tools/os
Enabled:   0

Repo ID:   rhel-7-server-openstack-13-tools-rpms
Repo Name: Red Hat OpenStack Platform 13 Tools for RHEL 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/13/os
Enabled:   0

Repo ID:   rhel-7-server-rhceph-1.3-tools-source-rpms
Repo Name: Red Hat Ceph Storage Tools 1.3 for Red Hat Enterprise Linux 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/ceph-tools/1.3/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-thirdparty-oracle-java-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Oracle Java (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/oracle-java/os
Enabled:   0

Repo ID:   rhel-7-server-fastrack-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Fastrack (RPMs)
Repo URL:  https://cdn.redhat.com/content/fastrack/rhel/server/7/$basearch/os
Enabled:   0

Repo ID:   rhel-7-server-dotnet-rpms
Repo Name: dotNET on RHEL RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/dotnet/1/os
Enabled:   0

Repo ID:   rhel-7-server-thirdparty-oracle-java-beta-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Oracle Java Beta (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/oracle-java/os
Enabled:   0

Repo ID:   rhel-7-server-optional-fastrack-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional Fastrack (RPMs)
Repo URL:  https://cdn.redhat.com/content/fastrack/rhel/server/7/$basearch/optional/os
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6-puppet-upgrade-beta-source-rpms
Repo Name: Red Hat Satellite Tools 6 Beta - Puppet Upgrade (for RHEL 7 Server) (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-tools/6-puppet-upgrade/source/SRPMS
Enabled:   0

Repo ID:   rhel-atomic-host-rpms
Repo Name: Red Hat Enterprise Linux Atomic Host (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/atomic/7/7Server/$basearch/os
Enabled:   0

Repo ID:   rhel-7-server-dotnet-source-rpms
Repo Name: dotNET on RHEL Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/dotnet/1/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-openstack-13-tools-source-rpms
Repo Name: Red Hat OpenStack Platform 13 Tools for RHEL 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/13/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-rhn-tools-beta-source-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server Beta (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rhn-tools/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-extras-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/extras/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-openstack-7.0-tools-debug-rpms
Repo Name: Red Hat OpenStack Tools 7.0 for Red Hat Enterprise Linux 7 Server (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/7.0/debug
Enabled:   0

Repo ID:   rhel-atomic-host-source-rpms
Repo Name: Red Hat Enterprise Linux Atomic Host (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/atomic/7/7Server/$basearch/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.5-source-rpms
Repo Name: Red Hat Ansible Engine 2.5 Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.5/source/SRPMS
Enabled:   0

Repo ID:   rhel-atomic-host-beta-rpms
Repo Name: Red Hat Enterprise Linux Atomic Host Beta (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/atomic/7/$basearch/os
Enabled:   0

Repo ID:   rhel-7-server-supplementary-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/supplementary/debug
Enabled:   0

Repo ID:   rhel-7-server-fastrack-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Fastrack (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/fastrack/rhel/server/7/$basearch/debug
Enabled:   0

Repo ID:   rhel-atomic-host-beta-source-rpms
Repo Name: Red Hat Enterprise Linux Atomic Host Beta (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/atomic/7/$basearch/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-optional-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/optional/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-rhn-tools-beta-debug-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server Beta (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rhn-tools/debug
Enabled:   0

Repo ID:   rhel-7-server-insights-3-rpms
Repo Name: Red Hat Insights 3 (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/insights/3/os
Enabled:   0

Repo ID:   rhel-server-rhscl-7-beta-rpms
Repo Name: Red Hat Software Collections Beta RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rhscl/1/os
Enabled:   0

Repo ID:   rhel-7-server-beta-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server Beta (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-openstack-9-tools-debug-rpms
Repo Name: Red Hat OpenStack Platform 9 Tools for RHEL 7 Server (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/9/debug
Enabled:   0

Repo ID:   rhel-7-server-openstack-12-tools-source-rpms
Repo Name: Red Hat OpenStack Platform 12 Tools for RHEL 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/12/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6-beta-source-rpms
Repo Name: Red Hat Satellite Tools 6 Beta (for RHEL 7 Server) (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-tools/6/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-v2vwin-1-rpms
Repo Name: Red Hat Virt V2V Tool for RHEL 7 (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/v2vwin/os
Enabled:   0

Repo ID:   rhel-7-server-extras-beta-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras Beta (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/extras/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-dotnet-beta-debug-rpms
Repo Name: dotNET on RHEL Beta Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/dotnet/1/debug
Enabled:   0

Repo ID:   rhel-7-server-openstack-11-tools-rpms
Repo Name: Red Hat OpenStack Platform 11 Tools for RHEL 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/11/os
Enabled:   0

Repo ID:   rhel-7-server-rhceph-2-tools-debug-rpms
Repo Name: Red Hat Ceph Storage Tools 2 for Red Hat Enterprise Linux 7 Server (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/ceph-tools/2/debug
Enabled:   0

Repo ID:   rhel-7-server-rh-common-beta-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - RH Common Beta (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rh-common/os
Enabled:   0

Repo ID:   rhel-server-rhscl-7-debug-rpms
Repo Name: Red Hat Software Collections Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhscl/1/debug
Enabled:   0

Repo ID:   rhel-7-server-insights-3-source-rpms
Repo Name: Red Hat Insights 3 (for RHEL 7 Server) (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/insights/3/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-extras-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/extras/debug
Enabled:   0

Repo ID:   rhel-7-server-satellite-maintenance-6-source-rpms
Repo Name: Red Hat Satellite Maintenance 6 (for RHEL 7 Server) (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-maintenance/6/source/SRPMS
Enabled:   0

Repo ID:   rhel-server-rhscl-7-source-rpms
Repo Name: Red Hat Software Collections Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhscl/1/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.4-rpms
Repo Name: Red Hat Ansible Engine 2.4 RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.4/os
Enabled:   0

Repo ID:   rhel-7-server-rh-common-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - RH Common (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rh-common/os
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6-puppet-upgrade-beta-debug-rpms
Repo Name: Red Hat Satellite Tools 6 Beta - Puppet Upgrade (for RHEL 7 Server) (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-tools/6-puppet-upgrade/debug
Enabled:   0

Repo ID:   rhel-7-server-dotnet-beta-rpms
Repo Name: dotNET on RHEL Beta RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/dotnet/1/os
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.3-rpms
Repo Name: Red Hat Satellite Tools 6.3 (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.3/os
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.1-rpms
Repo Name: Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.1/os
Enabled:   0

Repo ID:   rhel-7-server-rh-common-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - RH Common (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rh-common/debug
Enabled:   0

Repo ID:   rhel-7-server-v2vwin-1-source-rpms
Repo Name: Red Hat Virt V2V Tool for RHEL 7 (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/v2vwin/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-rh-common-beta-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - RH Common Beta (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rh-common/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-fastrack-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Fastrack (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/fastrack/rhel/server/7/$basearch/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/debug
Enabled:   0

Repo ID:   rhel-7-server-supplementary-beta-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary Beta (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/supplementary/os
Enabled:   0

Repo ID:   rhel-7-server-optional-beta-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional Beta (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/optional/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-rh-common-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - RH Common (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rh-common/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-rhceph-2-tools-source-rpms
Repo Name: Red Hat Ceph Storage Tools 2 for Red Hat Enterprise Linux 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/ceph-tools/2/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-rhn-tools-debug-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhn-tools/debug
Enabled:   0

Repo ID:   rhel-7-server-ansible-2-debug-rpms
Repo Name: Red Hat Ansible Engine 2 Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2/debug
Enabled:   0

Repo ID:   rhel-7-server-devtools-beta-debug-rpms
Repo Name: Red Hat Developer Tools Beta Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/devtools/1/debug
Enabled:   0

Repo ID:   rh-gluster-3-client-for-rhel-7-server-rpms
Repo Name: Red Hat Storage Native Client for RHEL 7 (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhs-client/os
Enabled:   0

Repo ID:   rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/os
Enabled:   1

Repo ID:   rhel-7-server-rh-common-beta-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - RH Common Beta (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rh-common/debug
Enabled:   0

Repo ID:   rhel-server-rhscl-7-eus-rpms
Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 RHEL 7 Server EUS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/rhscl/1/os
Enabled:   0

Repo ID:   rhel-7-server-supplementary-beta-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary Beta (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/supplementary/debug
Enabled:   0

Repo ID:   rh-gluster-3-client-for-rhel-7-server-source-rpms
Repo Name: Red Hat Storage Native Client for RHEL 7 (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhs-client/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.3-debug-rpms
Repo Name: Red Hat Satellite Tools 6.3 (for RHEL 7 Server) (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.3/debug
Enabled:   0

Repo ID:   rhel-7-server-openstack-7.0-tools-rpms
Repo Name: Red Hat OpenStack Tools 7.0 for Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/7.0/os
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.3-puppet4-debug-rpms
Repo Name: Red Hat Satellite Tools 6.3 - Puppet 4 (for RHEL 7 Server) (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.3-puppet4/debug
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.3-source-rpms
Repo Name: Red Hat Satellite Tools 6.3 (for RHEL 7 Server) (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.3/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.4-source-rpms
Repo Name: Red Hat Ansible Engine 2.4 Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.4/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-openstack-8-tools-source-rpms
Repo Name: Red Hat OpenStack Platform 8 Tools for RHEL 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/8/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-openstack-8-tools-rpms
Repo Name: Red Hat OpenStack Platform 8 Tools for RHEL 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/8/os
Enabled:   0

Repo ID:   rhel-7-server-beta-rpms
Repo Name: Red Hat Enterprise Linux 7 Server Beta (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/os
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.3-puppet4-source-rpms
Repo Name: Red Hat Satellite Tools 6.3 - Puppet 4 (for RHEL 7 Server) (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.3-puppet4/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6-beta-debug-rpms
Repo Name: Red Hat Satellite Tools 6 Beta (for RHEL 7 Server) (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-tools/6/debug
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.4-debug-rpms
Repo Name: Red Hat Ansible Engine 2.4 Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.4/debug
Enabled:   0

Repo ID:   rhel-7-server-dotnet-beta-source-rpms
Repo Name: dotNET on RHEL Beta Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/dotnet/1/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-openstack-8-tools-debug-rpms
Repo Name: Red Hat OpenStack Platform 8 Tools for RHEL 7 Server (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/8/debug
Enabled:   0

Repo ID:   rhel-7-server-openstack-13-tools-debug-rpms
Repo Name: Red Hat OpenStack Platform 13 Tools for RHEL 7 Server (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/13/debug
Enabled:   0

Repo ID:   rhel-7-server-extras-beta-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras Beta (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/extras/os
Enabled:   0

Repo ID:   rhel-7-server-devtools-rpms
Repo Name: Red Hat Developer Tools RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/devtools/1/os
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.5-debug-rpms
Repo Name: Red Hat Ansible Engine 2.5 Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.5/debug
Enabled:   0

Repo ID:   rhel-7-server-supplementary-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/supplementary/os
Enabled:   0

Repo ID:   rhel-7-server-devtools-debug-rpms
Repo Name: Red Hat Developer Tools Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/devtools/1/debug
Enabled:   0

Repo ID:   rhel-7-server-openstack-11-tools-source-rpms
Repo Name: Red Hat OpenStack Platform 11 Tools for RHEL 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/11/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-optional-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/optional/os
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6-beta-rpms
Repo Name: Red Hat Satellite Tools 6 Beta (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-tools/6/os
Enabled:   0

Repo ID:   rhel-7-server-optional-fastrack-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional Fastrack (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/fastrack/rhel/server/7/$basearch/optional/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-rhn-tools-source-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhn-tools/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-supplementary-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/supplementary/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-beta-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server Beta (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/debug
Enabled:   0

Repo ID:   rhel-7-server-openstack-7.0-tools-source-rpms
Repo Name: Red Hat OpenStack Tools 7.0 for Red Hat Enterprise Linux 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/7.0/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-optional-beta-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional Beta (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/optional/os
Enabled:   0

[root@rrep-lx-v01 ~]#

5. Now, select the ones you needed and sync the packages
[root@rrep-lx-v01 repo]# reposync -n -p /opt/repo/RHEL7-Patch_06112018 --repoid=rhel-7-server-rpms
LOCAL                                                                   | 4.1 kB  00:00:00
rhel-7-server-rpms                                                      | 3.5 kB  00:00:00
(1/3): rhel-7-server-rpms/7Server/x86_64/group                          | 855 kB  00:00:01
(2/3): rhel-7-server-rpms/7Server/x86_64/updateinfo                     | 2.8 MB  00:00:03
(3/3): rhel-7-server-rpms/7Serve 62% [==============         ] 1.2 MB/s |  35 MB  00:00:17 ETA

''''''''''''''''''''''''''''''

6. Now, create repo
[root@rrep-lx-v01 RHEL7-Patch_06112018]# cat /etc/yum.repos.d/local.repo
[LOCAL]
name = Redhat EP 7 Local repo
baseurl = file:///opt/OS_Image
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


[LOCAL-May-PATCH]
name = Redhat EP 7 May 2018 patch Local repo
baseurl = file:///opt/repo/RHEL7-Patch_06112018
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[root@rrep-lx-v01 RHEL7-Patch_06112018]#

[root@rrep-lx-v01 RHEL7-Patch_06112018]# createrepo /opt/repo/RHEL7-Patch_06112018
Spawning worker 0 with 5285 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
[root@rrep-lx-v01 RHEL7-Patch_06112018]#

[root@rrep-lx-v01 RHEL7-Patch_06112018]# yum clean all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Cleaning repos: LOCAL LOCAL-Jun-2018-PATCH LOCAL-May-2017-PATCH rhel-7-server-rpms
Cleaning up everything
[root@rrep-lx-v01 RHEL7-Patch_06112018]# yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
LOCAL                                                    | 4.1 kB  00:00:00
LOCAL-Jun-2018-PATCH                                     | 2.9 kB  00:00:00
LOCAL-May-2017-PATCH                                     | 2.9 kB  00:00:00
rhel-7-server-rpms                                       | 3.5 kB  00:00:00
(1/7): LOCAL/group_gz                                    | 136 kB  00:00:00
(2/7): LOCAL/primary_db                                  | 3.9 MB  00:00:00
(3/7): LOCAL-Jun-2018-PATCH/primary_db                   | 4.2 MB  00:00:00
(4/7): LOCAL-May-2017-PATCH/primary_db                   | 4.0 MB  00:00:00
(5/7): rhel-7-server-rpms/7Server/x86_64/group           | 855 kB  00:00:06
(6/7): rhel-7-server-rpms/7Server/x86_64/updateinfo      | 2.8 MB  00:00:06
(7/7): rhel-7-server-rpms/7Server/x86_64/primary_db      |  52 MB  00:00:53
repo id                                                    repo name                                   status
LOCAL                                                      Redhat EP 7 Local repo                               4,751
LOCAL-Jun-2018-PATCH                                       Redhat EP 11 June 2018 patch Local repo              5,285
LOCAL-May-2017-PATCH                                       Redhat EP 7 May 2017 patch Local repo                4,885
rhel-7-server-rpms/7Server/x86_64                          Red Hat Enterprise Linux 7 Server (RPMs)             20,472
repolist: 35,393
[root@rrep-lx-v01 RHEL7-Patch_06112018]#

7. Update the system
[root@rrep-lx-v01 ~]# yum update

8. Reboot your system
[root@rrep-lx-v01 ~]# reboot