How to sync repository in Redhat Satellite 6.5 ?

In this article, we will look how to synchronize a repository on a Redhat satellite 6 server.

1. Check the repository id.

[root@ngelinux01 ~]# hammer repository list
hammer repository synchro-----|----------------------------------------------------------------------------------|---------------------------------------------------------------|--------------|---------------------------------------------------------------------------------
ID   | NAME                                                                             | PRODUCT                                                       | CONTENT TYPE | URL
-----|----------------------------------------------------------------------------------|---------------------------------------------------------------|--------------|---------------------------------------------------------------------------------
945  | MRG Realtime RPMs x86_64 6Server                                                 | MRG Realtime                                                  | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/mrg-r/2/os
2    | Red Hat Ansible Engine 2.8 RPMs for Red Hat Enterprise Linux 7 Server x86_64     | Red Hat Ansible Engine                                        | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ansible/2.8/os
215  | Red Hat Enterprise Linux 5 Server Kickstart x86_64 5.11                          | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/5/5.11/x86_64/kickstart
216  | Red Hat Enterprise Linux 5 Server RPMs x86_64 5.11                               | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/5/5.11/x86_64/os
1079 | Red Hat Enterprise Linux 6 for System Z RPMs s390x 6Server                       | Red Hat Enterprise Linux for IBM z Systems                    | yum          | https://cdn.redhat.com/content/dist/rhel/system-z/6/6Server/s390x/os
1090 | Red Hat Enterprise Linux 6 Server - Extended Life Cycle Support RPMs x86_64      | Red Hat Enterprise Linux Server - Extended Life Cycle Support | yum          | https://cdn.redhat.com/content/els/rhel/server/6/6Server/x86_64/os
1031 | Red Hat Enterprise Linux 6 Server - Extended Update Support - Optional RPMs x... | Red Hat Enterprise Linux for x86_64 - Extended Update Support | yum          | https://cdn.redhat.com/content/eus/rhel/server/6/6Server/x86_64/optional/os
962  | Red Hat Enterprise Linux 6 Server - Extended Update Support - Oracle Java RPM... | Oracle Java (for RHEL Server) - Extended Update Support       | yum          | https://cdn.redhat.com/content/eus/rhel/server/6/6Server/x86_64/oracle-java/os
1032 | Red Hat Enterprise Linux 6 Server - Extended Update Support RPMs x86_64 6Server  | Red Hat Enterprise Linux for x86_64 - Extended Update Support | yum          | https://cdn.redhat.com/content/eus/rhel/server/6/6Server/x86_64/os
1033 | Red Hat Enterprise Linux 6 Server - Extended Update Support - Supplementary R... | Red Hat Enterprise Linux for x86_64 - Extended Update Support | yum          | https://cdn.redhat.com/content/eus/rhel/server/6/6Server/x86_64/supplementary/os
5    | Red Hat Enterprise Linux 6 Server - Extras RPMs x86_64                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/extras/os
207  | Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.10                          | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.10/x86_64/kickstart
210  | Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.7                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.7/x86_64/kickstart
209  | Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.8                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.8/x86_64/kickstart
137  | Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.9                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.9/x86_64/kickstart
208  | Red Hat Enterprise Linux 6 Server - Optional RPMs x86_64 6.10                    | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.10/x86_64/optional/os
212  | Red Hat Enterprise Linux 6 Server - Optional RPMs x86_64 6.7                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.7/x86_64/optional/os
211  | Red Hat Enterprise Linux 6 Server - Optional RPMs x86_64 6.8                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.8/x86_64/optional/os
138  | Red Hat Enterprise Linux 6 Server - Optional RPMs x86_64 6.9                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.9/x86_64/optional/os
140  | Red Hat Enterprise Linux 6 Server - Optional RPMs x86_64 6Server                 | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/optional/os
954  | Red Hat Enterprise Linux 6 Server - Oracle Java RPMs x86_64 6.10                 | Oracle Java (for RHEL Server)                                 | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.10/x86_64/oracle-java/os
955  | Red Hat Enterprise Linux 6 Server - Oracle Java RPMs x86_64 6.9                  | Oracle Java (for RHEL Server)                                 | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.9/x86_64/oracle-java/os
953  | Red Hat Enterprise Linux 6 Server - Oracle Java RPMs x86_64 6Server              | Oracle Java (for RHEL Server)                                 | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/oracle-java/os
887  | Red Hat Enterprise Linux 6 Server - RH Common RPMs x86_64 6Server                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/rh-common/os
6    | Red Hat Enterprise Linux 6 Server RPMs x86_64 6.10                               | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.10/x86_64/os
214  | Red Hat Enterprise Linux 6 Server RPMs x86_64 6.7                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.7/x86_64/os
213  | Red Hat Enterprise Linux 6 Server RPMs x86_64 6.8                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.8/x86_64/os
136  | Red Hat Enterprise Linux 6 Server RPMs x86_64 6.9                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6.9/x86_64/os
152  | Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server                            | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os
1029 | Red Hat Enterprise Linux 6 Server - Supplementary RPMs x86_64 6Server            | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/supplementar...
1034 | Red Hat Enterprise Linux 7 Server - Extended Update Support - Optional RPMs x... | Red Hat Enterprise Linux for x86_64 - Extended Update Support | yum          | https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/optional/os
961  | Red Hat Enterprise Linux 7 Server - Extended Update Support - Oracle Java RPM... | Oracle Java (for RHEL Server) - Extended Update Support       | yum          | https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/oracle-java/os
1028 | Red Hat Enterprise Linux 7 Server - Extended Update Support RPMs x86_64 7Server  | Red Hat Enterprise Linux for x86_64 - Extended Update Support | yum          | https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/os
3    | Red Hat Enterprise Linux 7 Server - Extras RPMs x86_64                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/extras/os
195  | Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.1                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.1/x86_64/kickstart
196  | Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.2                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.2/x86_64/kickstart
197  | Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.3                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.3/x86_64/kickstart
198  | Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.4                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.4/x86_64/kickstart
158  | Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.5                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.5/x86_64/kickstart
170  | Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.6                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.6/x86_64/kickstart
169  | Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.7                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.7/x86_64/kickstart
168  | Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.8                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.8/x86_64/kickstart
171  | Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.9                           | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.9/x86_64/kickstart
199  | Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7.1                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.1/x86_64/optional/os
200  | Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7.2                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.2/x86_64/optional/os
201  | Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7.3                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.3/x86_64/optional/os
202  | Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7.4                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.4/x86_64/optional/os
159  | Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7.5                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.5/x86_64/optional/os
174  | Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7.6                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.6/x86_64/optional/os
173  | Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7.7                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.7/x86_64/optional/os
172  | Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7.8                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.8/x86_64/optional/os
217  | Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7.9                     | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.9/x86_64/optional/os
141  | Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7Server                 | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/optional/os
959  | Red Hat Enterprise Linux 7 Server - Oracle Java RPMs x86_64 7.6                  | Oracle Java (for RHEL Server)                                 | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.6/x86_64/oracle-java/os
957  | Red Hat Enterprise Linux 7 Server - Oracle Java RPMs x86_64 7.7                  | Oracle Java (for RHEL Server)                                 | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.7/x86_64/oracle-java/os
958  | Red Hat Enterprise Linux 7 Server - Oracle Java RPMs x86_64 7.8                  | Oracle Java (for RHEL Server)                                 | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.8/x86_64/oracle-java/os
956  | Red Hat Enterprise Linux 7 Server - Oracle Java RPMs x86_64 7.9                  | Oracle Java (for RHEL Server)                                 | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.9/x86_64/oracle-java/os
960  | Red Hat Enterprise Linux 7 Server - Oracle Java RPMs x86_64 7Server              | Oracle Java (for RHEL Server)                                 | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/oracle-java/os
1137 | Red Hat Enterprise Linux 7 Server RPMs x86_64 7.0                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.0/x86_64/os
203  | Red Hat Enterprise Linux 7 Server RPMs x86_64 7.1                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.1/x86_64/os
204  | Red Hat Enterprise Linux 7 Server RPMs x86_64 7.2                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.2/x86_64/os
205  | Red Hat Enterprise Linux 7 Server RPMs x86_64 7.3                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.3/x86_64/os
206  | Red Hat Enterprise Linux 7 Server RPMs x86_64 7.4                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.4/x86_64/os
157  | Red Hat Enterprise Linux 7 Server RPMs x86_64 7.5                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.5/x86_64/os
144  | Red Hat Enterprise Linux 7 Server RPMs x86_64 7.6                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.6/x86_64/os
142  | Red Hat Enterprise Linux 7 Server RPMs x86_64 7.7                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.7/x86_64/os
4    | Red Hat Enterprise Linux 7 Server RPMs x86_64 7.8                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.8/x86_64/os
218  | Red Hat Enterprise Linux 7 Server RPMs x86_64 7.9                                | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7.9/x86_64/os
143  | Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server                            | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os
1030 | Red Hat Enterprise Linux 7 Server - Supplementary RPMs x86_64 7Server            | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/supplementar...
880  | Red Hat Satellite Tools 6.5 for RHEL 6 Server RPMs x86_64                        | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/sat-tools/6....
1    | Red Hat Satellite Tools 6.5 for RHEL 7 Server RPMs x86_64                        | Red Hat Enterprise Linux Server                               | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6....
1035 | Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 RHEL 7 Serve... | Red Hat Software Collections (for RHEL Server)                | yum          | https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/rhscl/1/os
1036 | Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server x86_6... | Red Hat Software Collections (for RHEL Server)                | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/rhscl/1/os
-----|----------------------------------------------------------------------------------|---------------------------------------------------------------|--------------|---------------------------------------------------------------------------------

2. Synchronize a particular repo id.

[root@ngelinux01 ~]# hammer repository synchronize --id 1035
[........................................................................................................................................] [100%]
No new packages.

[root@ngelinux01 ~]# hammer repository synchronize --id 1036
[                                                                                                                                          ] [0%]
Processing metadata

[root@ngelinux01 ~]# hammer repository synchronize --id 218
[........................................................................................................................................] [100%]
No new packages.
[root@ngelinux01 ~]#

Leave a Reply

Your email address will not be published.