博客园  :: 首页  :: 管理

到7上面取得两个证书相关的文件

sslclientcert=/etc/pki/rhui/product/content-rhel7.crt

sslclientkey=/etc/pki/rhui/content-rhel7.key

再取得repo文件,redhat-rhui.repo


将如上三个文件,都传到 Redhat 9 服务器上

修改 repo 文件的 sslclientcert 与 sslclientkey 选项值

sslclientcert=/tmp/content-rhel7.crt

sslclientkey=/tmp/content-rhel7.key

其他说明:其实repo文件中,还有另一个,sslcacert=/etc/pki/rhui/cdn.redhat.com-chain.crt 只是 在 7 和 9 两个系统中,此文件是一样的

其他选项:对于7, repo配置文件中,$releasever 的值:7Server

[root@rhel9 tmp]# ls
content-rhel7.crt  rhel7                                                                        qq-5201351.txt
content-rhel7.key  systemd-private-a40b4da9c17649bd8ca08c4850483bdb-chronyd.service-gS7dBF      systemd-private-a40b4da9c17649bd8ca08c4850483bdb-systemd-hostnamed.service-y5AEQe
redhat-rhui.repo   systemd-private-a40b4da9c17649bd8ca08c4850483bdb-dbus-broker.service-9tbdRx  systemd-private-a40b4da9c17649bd8ca08c4850483bdb-systemd-logind.service-xRN9lg
[root@rhel9 tmp]# reposync -c redhat-rhui.repo --releasever 7Server --repoid=rhel-7-server-rhui-rpms --download-path=/tmp/rhel7 -n --downloadcomps --download-metadata
Red Hat Enterprise Linux 7 Server from RHUI (RPMs)                                                                                                                                                            63 MB/s | 112 MB     00:01


Last metadata expiration check: 0:00:25 ago on Mon 26 Feb 2024 05:02:54 PM CST.
Red Hat Enterprise Linux 7 Server from RHUI (RPMs)                                                                                                                                                            80 MB/s | 285 MB     00:03
comps.xml for repository rhel-7-server-rhui-rpms saved
(1/5514): ElectricFence-2.2.2-39.el7.i686.rpm                                                                                                                                                                432 kB/s |  35 kB     00:00
(2/5514): ElectricFence-2.2.2-39.el7.x86_64.rpm                                                                                                                                                              426 kB/s |  35 kB     00:00
(3/5514): PyGreSQL-4.0-9.el7.x86_64.rpm                                                                                                                                                                      637 kB/s |  74 kB     00:00
(4/5514): PyYAML-3.10-11.el7.x86_64.rpm                                                                                                                                                                      1.2 MB/s | 153 kB     00:00
(5/5514): agg-2.5-18.el7.x86_64.rpm                                                                                                                                                                          894 kB/s | 145 kB     00:00
(6/5514): ark-4.10.5-4.el7.x86_64.rpm                                                                                                                                                                        2.0 MB/s | 277 kB     00:00
(7/5514): agg-2.5-18.el7.i686.rpm                                                                                                                                                                            630 kB/s | 148 kB     00:00
(8/5514): ark-libs-4.10.5-4.el7.i686.rpm                                                                                                                                                                     815 kB/s | 108 kB     00:00
(9/5514): ark-libs-4.10.5-4.el7.x86_64.rpm                                                                                                                                                                   2.0 MB/s | 108 kB     00:00
(10/5514): babel-0.9.6-8.el7.noarch.rpm                                                                                                                                                                      269 kB/s |  15 kB     00:00

注意:与7系统相比,少了--gpgcheck -l  两个选项,另外在7下面 --download_path 选项是这样的写的

说明:关于 reposync 命令,在不同的版本,或者不同的操作系统,其选项可能会略有差异的

 

 

 

尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/18036407