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

No comments:

Post a Comment