---
tags: Liberty
description: how to use SUSE Liberty Linux for CentOS 7
robots: index, follow
---
# RMT Server與Liberty Linux套件庫
:::info
在CentOS 7預定於今年收工(2024)的狀況下,想要繼續沿用CentOS 7的系統,可以使用SUSE Liberty Linux套件庫。
本文主要紀錄會遭遇的問題,與實際的操作步驟。
:::
## Requirement!
1. 如果沒有SUSE Manager的話,請使用RMT Server。
2. RMT Server規格如下:
2.1. 2 core CPU。
2.2. 8G RAM。
2.3. 大於600G的disk,請把絕大部分的空間留給/
2.4. IP資訊(192.168.11.112),可對外連線。
2.5. 安裝方式請參考[官方網站](https://documentation.suse.com/sles/15-SP5/single-html/SLES-rmt/index.html)
2.6. 注意: CentOS 7因為歷史悠久,在SMT Server在同步的時候會比較需要時間,頻寬不夠的話請多留一些時間。
3. SCC帳號([帳號申請參考](https://drive.google.com/file/d/1dPjD0Et5mCJN7HUQyeC3A1pwmwdPY-up/view?usp=drive_link))
4. 訂閱SUSE Liberty Linux Lite
## 1. RMT-Server設定
### 1.1. 安裝RMT-Server
```shell!
rmt-server15sp5:~ # SUSEConnect -e sam.chen@suse.com -r YOUR_LICENSE
Registering system to SUSE Customer Center
Using E-Mail:sam.chen@suse.com
Announcing system to https://scc.suse.com ...
Activating SLES 15.5 x86_64 ...
-> Adding service to system ...
Activating sle-module-basesystem 15.5 x86_64 ...
-> Adding service to system ...
-> Installing release package ...
Activating sle-module-server-applications 15.5 x86_64 ...
-> Adding service to system ...
-> Installing release package ...
Activating sle-module-python3 15.5 x86_64 ...
-> Adding service to system ...
-> Installing release package ...
Successfully registered system
rmt-server15sp5:~ # zypper in rmt-server
Refreshing service 'Basesystem_Module_15_SP5_x86_64'.
Refreshing service 'Python_3_Module_15_SP5_x86_64'.
Refreshing service 'SUSE_Linux_Enterprise_Server_15_SP5_x86_64'.
Refreshing service 'Server_Applications_Module_15_SP5_x86_64'.
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 4 recommended packages were automatically selected:
mariadb nginx rmt-server-config yast2-rmt
The following 14 NEW packages are going to be installed:
libgd3 libJudy1 libmariadb3 libodbc2 libwebp7 mariadb mariadb-client mariadb-errormessages nginx python3-mysqlclient rmt-server
rmt-server-config ruby2.5-rubygem-bundler yast2-rmt
14 new packages to install.
Overall download size: 29.5 MiB. Already cached: 0 B. After the operation, additional 194.1 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: ruby2.5-rubygem-bundler-1.16.1-3.3.1.x86_64 (SLE-Module-Basesystem15-SP5-Pool) (1/14), 717.9 KiB
Retrieving: ruby2.5-rubygem-bundler-1.16.1-3.3.1.x86_64.rpm ........................................................[done (336.0 KiB/s)]
Retrieving: libmariadb3-3.1.22-150000.3.36.1.x86_64 (SLE-Module-Basesystem15-SP5-Updates) (2/14), 132.8 KiB
Retrieving: libmariadb3-3.1.22-150000.3.36.1.x86_64.rpm .............................................................[done (66.4 KiB/s)]
Retrieving: libodbc2-2.3.9-150400.16.3.3.x86_64 (SLE-Module-Basesystem15-SP5-Updates) (3/14), 173.3 KiB
Retrieving: libodbc2-2.3.9-150400.16.3.3.x86_64.rpm ................................................................[done (128.0 KiB/s)]
Retrieving: libwebp7-1.0.3-150200.3.10.1.x86_64 (SLE-Module-Basesystem15-SP5-Updates) (4/14), 198.9 KiB
Retrieving: libwebp7-1.0.3-150200.3.10.1.x86_64.rpm ..............................................................................[done]
Retrieving: libJudy1-1.0.5-1.2.x86_64 (SLE-Module-Server-Applications15-SP5-Pool) (5/14), 103.3 KiB
Retrieving: libJudy1-1.0.5-1.2.x86_64.rpm ...........................................................................[done (64.0 KiB/s)]
Retrieving: mariadb-errormessages-10.6.14-150400.3.26.1.noarch (SLE-Module-Server-Applications15-SP5-Updates) (6/14), 296.4 KiB
Retrieving: mariadb-errormessages-10.6.14-150400.3.26.1.noarch.rpm .................................................[done (148.2 KiB/s)]
Retrieving: mariadb-client-10.6.14-150400.3.26.1.x86_64 (SLE-Module-Server-Applications15-SP5-Updates) (7/14), 1.1 MiB
Retrieving: mariadb-client-10.6.14-150400.3.26.1.x86_64.rpm ........................................................[done (584.2 KiB/s)]
Retrieving: libgd3-2.2.5-11.3.1.x86_64 (SLE-Module-Basesystem15-SP5-Pool) (8/14), 125.6 KiB
Retrieving: libgd3-2.2.5-11.3.1.x86_64.rpm ..........................................................................[done (62.8 KiB/s)]
Retrieving: python3-mysqlclient-1.4.6-2.21.x86_64 (SLE-Module-Server-Applications15-SP5-Pool) (9/14), 233.7 KiB
Retrieving: python3-mysqlclient-1.4.6-2.21.x86_64.rpm ..............................................................[done (128.0 KiB/s)]
Retrieving: nginx-1.21.5-150400.3.3.1.x86_64 (SLE-Module-Server-Applications15-SP5-Pool) (10/14), 703.3 KiB
Retrieving: nginx-1.21.5-150400.3.3.1.x86_64.rpm ...................................................................[done (336.0 KiB/s)]
Retrieving: mariadb-10.6.14-150400.3.26.1.x86_64 (SLE-Module-Server-Applications15-SP5-Updates) (11/14), 21.3 MiB
Retrieving: mariadb-10.6.14-150400.3.26.1.x86_64.rpm .................................................................[done (5.2 MiB/s)]
Retrieving: rmt-server-config-2.15-150500.3.9.2.x86_64 (SLE-Module-Server-Applications15-SP5-Updates) (12/14), 36.1 KiB
Retrieving: rmt-server-config-2.15-150500.3.9.2.x86_64.rpm .......................................................................[done]
Retrieving: rmt-server-2.15-150500.3.9.2.x86_64 (SLE-Module-Server-Applications15-SP5-Updates) (13/14), 4.4 MiB
Retrieving: rmt-server-2.15-150500.3.9.2.x86_64.rpm ..................................................................[done (1.4 MiB/s)]
Retrieving: yast2-rmt-1.3.4-150200.3.8.1.x86_64 (SLE-Module-Server-Applications15-SP5-Pool) (14/14), 30.7 KiB
(Use the Enter or Space key to scroll the text by lines or pages.)
Retrieving: yast2-rmt-1.3.4-150200.3.8.1.x86_64.rpm .................................................................[done (30.7 KiB/s)]
Checking for file conflicts: .....................................................................................................[done]
update-alternatives: using /usr/bin/bundle.ruby2.5-1.16.1 to provide /usr/bin/bundle (bundle) in auto mode
update-alternatives: using /usr/bin/bundle.ruby2.5-1.16.1 to provide /usr/bin/bundle-1.16.1 (bundle-1.16.1) in auto mode
update-alternatives: using /usr/bin/bundle.ruby2.5-1.16.1 to provide /usr/bin/bundle.ruby2.5 (bundle.ruby2.5) in auto mode
update-alternatives: using /usr/bin/bundler.ruby2.5-1.16.1 to provide /usr/bin/bundler (bundler) in auto mode
update-alternatives: using /usr/bin/bundler.ruby2.5-1.16.1 to provide /usr/bin/bundler-1.16.1 (bundler-1.16.1) in auto mode
update-alternatives: using /usr/bin/bundler.ruby2.5-1.16.1 to provide /usr/bin/bundler.ruby2.5 (bundler.ruby2.5) in auto mode
( 1/14) Installing: ruby2.5-rubygem-bundler-1.16.1-3.3.1.x86_64 ..................................................................[done]
( 2/14) Installing: libmariadb3-3.1.22-150000.3.36.1.x86_64 ......................................................................[done]
( 3/14) Installing: libodbc2-2.3.9-150400.16.3.3.x86_64 ..........................................................................[done]
( 4/14) Installing: libwebp7-1.0.3-150200.3.10.1.x86_64 ..........................................................................[done]
( 5/14) Installing: libJudy1-1.0.5-1.2.x86_64 ....................................................................................[done]
( 6/14) Installing: mariadb-errormessages-10.6.14-150400.3.26.1.noarch ...........................................................[done]
/usr/sbin/useradd -r -c MySQL database admin -d /var/lib/mysql -U -u 60 mysql -s /usr/sbin/nologin
( 7/14) Installing: mariadb-client-10.6.14-150400.3.26.1.x86_64 ..................................................................[done]
( 8/14) Installing: libgd3-2.2.5-11.3.1.x86_64 ...................................................................................[done]
( 9/14) Installing: python3-mysqlclient-1.4.6-2.21.x86_64 ........................................................................[done]
/usr/sbin/useradd -r -c User for nginx -d /var/lib/nginx -U nginx -s /usr/sbin/nologin
(10/14) Installing: nginx-1.21.5-150400.3.3.1.x86_64 .............................................................................[done]
(11/14) Installing: mariadb-10.6.14-150400.3.26.1.x86_64 .........................................................................[done]
(12/14) Installing: rmt-server-config-2.15-150500.3.9.2.x86_64 ...................................................................[done]
Please run the YaST RMT module (or 'yast2 rmt' from the command line) to complete the configuration of your RMT
(13/14) Installing: rmt-server-2.15-150500.3.9.2.x86_64 ..........................................................................[done]
(14/14) Installing: yast2-rmt-1.3.4-150200.3.8.1.x86_64 ..........................................................................[done]
Executing %posttrans scripts .....................................................................................................[done]
Update notifications were received from the following packages:
mariadb-10.6.14-150400.3.26.1.x86_64 (/var/adm/update-messages/mariadb-10.6.14-150400.3.26.1-something)
View the notifications now? [y/n] (n): y
```
## 1.2. 設定RMT-Server
```shell
rmt-server15sp5:~ # yast2 rmt
```
### 1.2.1. 輸入組織帳號、密碼

### 1.2.2. 確認與SCC連線成功

### 1.2.3. 輸入資料庫密碼

### 1.2.4. 輸入資料庫root密碼

### 1.2.5. 確認組態寫入成功

### 1.2.6. 設定FQDN

### 1.2.7. 設定CA私鑰資訊

### 1.2.8. 確認防火牆狀態

### 1.2.9. 服務啟動

### 1.2.10. 確認定時同步服務啟動

### 1.2.11. RMT設定最終報告

## 1.3. 啟用Liberty 7
```shell
rmt-server15sp5:~ # rmt-cli product enable 1251
Found product by target 1251: SUSE Liberty Linux 7 x86_64.
Enabling SUSE Liberty Linux 7 x86_64:
SUSE Liberty Linux 7 x86_64:
Enabled repository RES-7-Updates.
```
開始同步(同步預計需要12小時左右)

## 2. CentOS 7 / RHEL 7註冊
## 2.1. 升級前版本資訊確認
```shell!
[root@centos7 ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
```
## 2.2. 建立安裝腳本與開始註冊
安裝腳本 rmt-client-setup-res
```shell!
#! /bin/sh
SUSECONNECT=/usr/bin/SUSEConnect
RPM=/usr/bin/rpm
CURL=/usr/bin/curl
YUM=/usr/bin/yum
YUM_CONFIG_MGR=/usr/bin/yum-config-manager
TEMPFILE="/etc/pki/ca-trust/source/anchors/rmt.crt"
UPDATE_CA_TRUST=/usr/bin/update-ca-trust
RPM_GPG_KEY_LOCATION="/etc/pki/rpm-gpg"
PARAMS=$@
REGURL=""
RMTNAME=""
REGURL=$1
CERTURL=`echo "$REGURL" | awk -F/ '{print "https://" $3 "/rmt.crt"}'`
$CURL --tlsv1.2 --silent --insecure --connect-timeout 10 --output $TEMPFILE $CERTURL
$UPDATE_CA_TRUST enable
$UPDATE_CA_TRUST extract
SLL_version=7
SLL_name="RES";
SLL_release_package="sles_es-release-server"
echo "Importing repomd.xml.key"
$CURL --silent --show-error --insecure ${REGURL}/repo/SUSE/Updates/${SLL_name}/${SLL_version}/x86_64/update/repodata/repomd.xml.key --output repomd.xml.key
$RPM --import repomd.xml.key
echo "Disabling all repositories"
$YUM_CONFIG_MGR --disable \* > /dev/null
if [ -f /usr/share/redhat-release ] | [ -h /usr/share/redhat-release ]; then
rm -f /usr/share/redhat-release;
fi
$YUM_CONFIG_MGR --add-repo ${REGURL}/repo/SUSE/Updates/${SLL_name}/${SLL_version}/x86_64/update
$YUM_CONFIG_MGR --enable *suse.* > /dev/null
$YUM install sles_es-release-server suseconnect-ng librepo
$YUM update yum
$CURL --silent --show-error --insecure $REGURL/tools/rmt-client-setup --output rmt-client-setup
echo "Running rmt-client-setup $PARAMS"
sh rmt-client-setup $PARAMS
```
執行安裝腳本
```shell!
[root@centos7 ~]# sh rmt-client-setup-res https://192.168.11.112
detect RES version... 7
Importing repomd.xml.key
Downloading SUSEConnect
Disabling all repositories
Loaded plugins: fastestmirror
adding repo from: https://192.168.11.112/repo/SUSE/Updates/RES/7/x86_64/update
[192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update]
name=added from: https://192.168.11.112/repo/SUSE/Updates/RES/7/x86_64/update
baseurl=https://192.168.11.112/repo/SUSE/Updates/RES/7/x86_64/update
enabled=1
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update | 2.1 kB 00:00:00
(1/3): 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update/group_gz | 133 kB 00:00:00
(2/3): 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update/updateinfo | 2.4 MB 00:00:00
(3/3): 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update/primary | 58 MB 00:00:01
192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 58836/58836
Resolving Dependencies
--> Running transaction check
---> Package centos-release.x86_64 0:7-9.2009.0.el7.centos will be obsoleted
---> Package librepo.x86_64 0:1.8.1-9.1.el7_9 will be installed
---> Package sles_es-release-server.x86_64 0:7.9-7.el7 will be obsoleting
---> Package suseconnect-ng.x86_64 0:1.6.0~git0.31371c8-2.1.el7 will be installed
--> Processing Dependency: zypper for package: suseconnect-ng-1.6.0~git0.31371c8-2.1.el7.x86_64
--> Running transaction check
---> Package zypper.x86_64 0:1.13.55-2.1.el7 will be installed
--> Processing Dependency: libzypp.so.1600(ZYPP_plain)(64bit) for package: zypper-1.13.55-2.1.el7.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.8.0)(64bit) for package: zypper-1.13.55-2.1.el7.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.1.0)(64bit) for package: zypper-1.13.55-2.1.el7.x86_64
--> Processing Dependency: libzypp.so.1600()(64bit) for package: zypper-1.13.55-2.1.el7.x86_64
--> Processing Dependency: libaugeas.so.0()(64bit) for package: zypper-1.13.55-2.1.el7.x86_64
--> Running transaction check
---> Package augeas-libs.x86_64 0:1.4.0-10.el7 will be installed
---> Package libzypp.x86_64 0:16.20.5-8.1.el7 will be installed
--> Processing Dependency: libsolvext.so.0(SOLV_1.0)(64bit) for package: libzypp-16.20.5-8.1.el7.x86_64
--> Processing Dependency: libsolv.so.0(SOLV_1.0)(64bit) for package: libzypp-16.20.5-8.1.el7.x86_64
--> Processing Dependency: libsolvext.so.0()(64bit) for package: libzypp-16.20.5-8.1.el7.x86_64
--> Processing Dependency: libsolv.so.0()(64bit) for package: libzypp-16.20.5-8.1.el7.x86_64
--> Processing Dependency: libproxy.so.1()(64bit) for package: libzypp-16.20.5-8.1.el7.x86_64
--> Running transaction check
---> Package libproxy.x86_64 0:0.4.11-11.el7 will be installed
--> Processing Dependency: libmodman.so.1()(64bit) for package: libproxy-0.4.11-11.el7.x86_64
---> Package libsolv.x86_64 0:0.6.34-4.el7 will be installed
--> Running transaction check
---> Package libmodman.x86_64 0:2.0.1-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================
Installing:
librepo x86_64 1.8.1-9.1.el7_9 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 81 k
sles_es-release-server x86_64 7.9-7.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 87 k
replacing centos-release.x86_64 7-9.2009.0.el7.centos
suseconnect-ng x86_64 1.6.0~git0.31371c8-2.1.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 2.5 M
Installing for dependencies:
augeas-libs x86_64 1.4.0-10.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 356 k
libmodman x86_64 2.0.1-8.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 27 k
libproxy x86_64 0.4.11-11.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 64 k
libsolv x86_64 0.6.34-4.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 328 k
libzypp x86_64 16.20.5-8.1.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 1.8 M
zypper x86_64 1.13.55-2.1.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 778 k
Transaction Summary
========================================================================================================================================
Install 3 Packages (+6 Dependent packages)
Total download size: 5.9 M
Is this ok [y/d/N]: y
Downloading packages:
(1/9): augeas-libs-1.4.0-10.el7.x86_64.rpm | 356 kB 00:00:00
(2/9): libproxy-0.4.11-11.el7.x86_64.rpm | 64 kB 00:00:00
(3/9): libmodman-2.0.1-8.el7.x86_64.rpm | 27 kB 00:00:00
(4/9): librepo-1.8.1-9.1.el7_9.x86_64.rpm | 81 kB 00:00:00
(5/9): libsolv-0.6.34-4.el7.x86_64.rpm | 328 kB 00:00:00
(6/9): sles_es-release-server-7.9-7.el7.x86_64.rpm | 87 kB 00:00:00
(7/9): libzypp-16.20.5-8.1.el7.x86_64.rpm | 1.8 MB 00:00:00
(8/9): suseconnect-ng-1.6.0~git0.31371c8-2.1.el7.x86_64.rpm | 2.5 MB 00:00:00
(9/9): zypper-1.13.55-2.1.el7.x86_64.rpm | 778 kB 00:00:00
----------------------------------------------------------------------------------------------------------------------------------------
Total 14 MB/s | 5.9 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libsolv-0.6.34-4.el7.x86_64 1/10
Installing : libmodman-2.0.1-8.el7.x86_64 2/10
Installing : libproxy-0.4.11-11.el7.x86_64 3/10
Installing : libzypp-16.20.5-8.1.el7.x86_64 4/10
Installing : augeas-libs-1.4.0-10.el7.x86_64 5/10
Installing : zypper-1.13.55-2.1.el7.x86_64 6/10
/var/tmp/rpm-tmp.npaHCQ: line 1: fg: no job control
Installing : suseconnect-ng-1.6.0~git0.31371c8-2.1.el7.x86_64 7/10
/var/tmp/rpm-tmp.vRUrEe: line 2: fg: no job control
warning: %post(suseconnect-ng-1.6.0~git0.31371c8-2.1.el7.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package suseconnect-ng-1.6.0~git0.31371c8-2.1.el7.x86_64
Installing : librepo-1.8.1-9.1.el7_9.x86_64 8/10
Installing : sles_es-release-server-7.9-7.el7.x86_64 9/10
Erasing : centos-release-7-9.2009.0.el7.centos.x86_64 10/10
warning: file /usr/share/redhat-release: remove failed: No such file or directory
warning: /etc/yum.repos.d/CentOS-Base.repo saved as /etc/yum.repos.d/CentOS-Base.repo.rpmsave
Verifying : augeas-libs-1.4.0-10.el7.x86_64 1/10
Verifying : libmodman-2.0.1-8.el7.x86_64 2/10
Verifying : suseconnect-ng-1.6.0~git0.31371c8-2.1.el7.x86_64 3/10
Verifying : sles_es-release-server-7.9-7.el7.x86_64 4/10
Verifying : libsolv-0.6.34-4.el7.x86_64 5/10
Verifying : zypper-1.13.55-2.1.el7.x86_64 6/10
Verifying : librepo-1.8.1-9.1.el7_9.x86_64 7/10
Verifying : libproxy-0.4.11-11.el7.x86_64 8/10
Verifying : libzypp-16.20.5-8.1.el7.x86_64 9/10
Verifying : centos-release-7-9.2009.0.el7.centos.x86_64 10/10
Installed:
librepo.x86_64 0:1.8.1-9.1.el7_9 sles_es-release-server.x86_64 0:7.9-7.el7 suseconnect-ng.x86_64 0:1.6.0~git0.31371c8-2.1.el7
Dependency Installed:
augeas-libs.x86_64 0:1.4.0-10.el7 libmodman.x86_64 0:2.0.1-8.el7 libproxy.x86_64 0:0.4.11-11.el7 libsolv.x86_64 0:0.6.34-4.el7
libzypp.x86_64 0:16.20.5-8.1.el7 zypper.x86_64 0:1.13.55-2.1.el7
Replaced:
centos-release.x86_64 0:7-9.2009.0.el7.centos
Complete!
Loaded plugins: fastestmirror
Determining fastest mirrors
192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update | 2.1 kB 00:00:00
(1/3): 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update/group_gz | 133 kB 00:00:00
(2/3): 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update/updateinfo | 2.4 MB 00:00:00
(3/3): 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update/primary | 58 MB 00:00:01
192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 58836/58836
Resolving Dependencies
--> Running transaction check
---> Package yum.noarch 0:3.4.3-168.el7.centos will be updated
---> Package yum.noarch 0:3.4.3-170.1.el7.1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================
Updating:
yum noarch 3.4.3-170.1.el7.1 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 1.2 M
Transaction Summary
========================================================================================================================================
Upgrade 1 Package
Total download size: 1.2 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
yum-3.4.3-170.1.el7.1.noarch.rpm | 1.2 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : yum-3.4.3-170.1.el7.1.noarch 1/2
Cleanup : yum-3.4.3-168.el7.centos.noarch 2/2
Verifying : yum-3.4.3-170.1.el7.1.noarch 1/2
Verifying : yum-3.4.3-168.el7.centos.noarch 2/2
Updated:
yum.noarch 0:3.4.3-170.1.el7.1
Complete!
Running rmt-client-setup https://192.168.11.112
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
3e:35:29:23:13:cf:ae:f5:b0:dd:6b:73:6d:d3:87:92:9b:e0:32:27
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=RMT Certificate Authority
Validity
Not Before: Mar 27 04:59:55 2024 GMT
Not After : Mar 26 04:59:55 2029 GMT
Subject: CN=RMT Certificate Authority
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (2048 bit)
Modulus:
00:ee:b9:77:b6:ab:25:9c:9c:4c:db:03:c0:45:2d:
b4:9b:df:31:cd:50:b1:99:fc:89:97:dd:fe:6d:8c:
b2:0f:14:e0:83:21:cc:55:22:2c:97:13:5d:93:12:
9a:a2:a0:a2:aa:ff:9c:04:aa:11:37:76:20:99:3e:
6c:73:41:5a:91:42:eb:8e:ad:96:74:15:1f:49:cd:
31:f6:e7:6d:ae:e0:c7:dd:f2:bf:e2:42:59:f2:a1:
bd:a1:4e:3c:3d:41:3f:e5:c5:48:8a:fd:c7:c7:b8:
de:0d:bf:c2:2e:53:af:be:44:fd:a3:8a:cb:56:81:
1f:88:c5:55:39:a9:53:05:83:3e:ea:6c:3b:c3:0c:
e5:21:19:92:5a:6c:19:77:1c:31:29:e8:4b:f6:ee:
d9:59:12:6a:e1:0e:b9:9e:01:a4:3c:aa:c9:a5:a3:
80:1d:5f:3f:48:18:07:55:38:00:9b:c9:c7:36:31:
85:96:c7:5d:4b:11:45:5d:aa:e3:04:85:51:c8:08:
22:5c:05:41:2d:c6:7f:9a:ea:38:1c:9d:cf:8a:0f:
49:80:13:d4:d4:bd:22:06:26:d5:3c:58:42:7e:6d:
c6:83:55:c2:48:9c:0b:b4:60:d3:a2:84:18:f1:94:
c2:cc:f2:76:24:59:6f:2a:30:b0:dd:2f:74:e9:04:
08:bd
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints: critical
CA:TRUE
Netscape Comment:
RMT Generated CA Certificate
Netscape Cert Type:
SSL CA
X509v3 Key Usage:
Certificate Sign, CRL Sign
X509v3 Subject Key Identifier:
D6:8C:01:07:41:D4:E1:03:E9:87:1C:D9:F7:29:3D:05:44:C1:95:CB
X509v3 Authority Key Identifier:
keyid:D6:8C:01:07:41:D4:E1:03:E9:87:1C:D9:F7:29:3D:05:44:C1:95:CB
Signature Algorithm: sha256WithRSAEncryption
0d:86:50:fe:63:97:8d:52:df:63:3d:4c:65:d0:21:05:5a:95:
e5:c2:0d:4f:77:ee:7b:b2:bb:58:c3:be:00:a7:33:e9:eb:7b:
6e:65:b4:b4:5e:ec:d6:5c:b3:9c:29:5a:33:db:a3:be:9d:66:
91:03:56:03:2f:f8:df:f8:3a:1f:fc:33:91:22:dd:fd:b7:62:
82:3c:9c:58:e0:13:de:3c:8a:0b:e6:4f:ce:bd:3c:30:29:39:
77:b0:b6:88:a9:c2:4e:15:77:68:12:bc:75:f5:42:cf:33:51:
3d:d6:3f:f5:9b:3a:a2:37:7f:d1:15:2f:b9:d4:be:6d:be:a5:
57:68:65:dc:da:22:f3:23:fc:68:88:fb:74:71:d9:9d:c2:25:
d0:64:75:c0:1a:a0:a1:23:8e:f7:73:0c:b3:cb:b4:b7:60:48:
33:55:c5:c7:6e:d5:dd:f5:7c:2d:88:b3:6d:fc:d3:72:5a:91:
2a:9d:9c:e8:09:2a:b0:e4:f6:cc:7f:de:7f:2f:90:c7:c7:f5:
37:f7:46:b7:03:7e:6e:f1:52:3c:c7:d6:a5:a8:45:0a:71:f0:
fc:ae:33:c9:33:87:22:28:90:34:c4:cd:47:79:7c:5c:44:af:
11:75:ba:b9:fa:9b:4a:7c:4a:3e:be:72:d6:e1:b8:9f:7d:38:
5f:22:15:17
Do you accept this certificate? [y/n] y
Client setup finished.
Start the registration now? [y/n] y
/usr/sbin/SUSEConnect --write-config --url https://192.168.11.112
Registering system to registration proxy https://192.168.11.112
Announcing system to https://192.168.11.112 ...
Activating RES 7 x86_64 ...
-> Adding service to system ...
Successfully registered system
```
## 2.2.1 確認註冊資訊
```shell!
[root@centos7 ~]# SUSEConnect --status-text
Installed Products:
------------------------------------------
SLES Expanded Support platform release file
(RES/7/x86_64)
Registered
------------------------------------------
```
### 2.2.2. 確認repo全部更換
```shell!
[root@centos7 ~]# ls -al /etc/yum.repos.d/
total 28
drwxr-xr-x. 2 root root 214 Mar 28 21:19 .
drwxr-xr-x. 78 root root 8192 Mar 28 21:19 ..
-rw-r--r--. 1 root root 214 Mar 28 21:16 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update.repo
-rw-r--r--. 1 root root 1700 Mar 28 21:16 CentOS-Base.repo.rpmsave
-rw-r--r--. 1 root root 200 Mar 28 21:19 SUSE_Liberty_Linux_x86_64:RES-7-Source-Updates.repo
-rw-r--r--. 1 root root 189 Mar 28 21:19 SUSE_Liberty_Linux_x86_64:RES-7-Updates.repo
```
### 2.2.3. 更新開機選單
```shell!
[root@centos7 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-1160.114.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.114.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-1160.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-0ad40268a3dc42988e3637734b5d3e76
Found initrd image: /boot/initramfs-0-rescue-0ad40268a3dc42988e3637734b5d3e76.img
done
```
### 2.2.4. 將所有套件跟liberty repo版本對齊
:::warning
這個動作會更新非常多套件,選擇性動作。
:::
```shell!
[root@centos7 ~]# yum distro-sync
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
SUSE_Liberty_Linux_x86_64:RES-7-Updates | 2.1 kB 00:00:00
(1/3): SUSE_Liberty_Linux_x86_64:RES-7-Updates/group_gz | 133 kB 00:00:00
(2/3): SUSE_Liberty_Linux_x86_64:RES-7-Updates/updateinfo | 2.4 MB 00:00:00
(3/3): SUSE_Liberty_Linux_x86_64:RES-7-Updates/primary | 58 MB 00:00:01
SUSE_Liberty_Linux_x86_64:RES-7-Updates 58836/58836
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager.x86_64 1:1.18.8-1.el7 will be updated
---> Package NetworkManager.x86_64 1:1.18.8-2.el7_9 will be an update
---> Package NetworkManager-libnm.x86_64 1:1.18.8-1.el7 will be updated
...
...
...
---> Package zlib.x86_64 0:1.2.7-21.el7_9 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================
Installing:
kernel x86_64 3.10.0-1160.114.2.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 52 M
sles_es-logos noarch 70.7.0-3.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 24 M
replacing centos-logos.noarch 70.0.6-3.el7.centos
Updating:
NetworkManager x86_64 1:1.18.8-2.el7_9 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 1.9 M
NetworkManager-libnm x86_64 1:1.18.8-2.el7_9 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 1.7 M
...
...
...
zlib x86_64 1.2.7-21.el7_9 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 89 k
Downgrading:
basesystem noarch 10.0-7.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 4.1 k
plymouth x86_64 0.8.9-0.34.20140113.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 115 k
plymouth-core-libs x86_64 0.8.9-0.34.20140113.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 107 k
plymouth-scripts x86_64 0.8.9-0.34.20140113.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 38 k
Transaction Summary
========================================================================================================================================
Install 2 Packages
Upgrade 120 Packages
Downgrade 4 Packages
Total download size: 284 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/126): NetworkManager-1.18.8-2.el7_9.x86_64.rpm | 1.9 MB 00:00:00
...
...
...
(126/126): sles_es-logos-70.7.0-3.el7.noarch.rpm | 24 MB 00:00:00
----------------------------------------------------------------------------------------------------------------------------------------
Total 51 MB/s | 284 MB 00:00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : 1:grub2-common-2.02-0.87.el7_9.11.noarch 1/251
Updating : 1:grub2-pc-modules-2.02-0.87.el7_9.11.noarch 2/251
...
...
...
Verifying : libmount-2.23.2-65.el7.x86_64 251/251
Removed:
basesystem.noarch 0:10.0-7.el7.centos plymouth.x86_64 0:0.8.9-0.34.20140113.el7.centos
plymouth-core-libs.x86_64 0:0.8.9-0.34.20140113.el7.centos plymouth-scripts.x86_64 0:0.8.9-0.34.20140113.el7.centos
Installed:
basesystem.noarch 0:10.0-7.el7 kernel.x86_64 0:3.10.0-1160.114.2.el7
plymouth.x86_64 0:0.8.9-0.34.20140113.el7 plymouth-core-libs.x86_64 0:0.8.9-0.34.20140113.el7
plymouth-scripts.x86_64 0:0.8.9-0.34.20140113.el7 sles_es-logos.noarch 0:70.7.0-3.el7
Updated:
NetworkManager.x86_64 1:1.18.8-2.el7_9 NetworkManager-libnm.x86_64 1:1.18.8-2.el7_9
...
...
...
xz-libs.x86_64 0:5.2.2-2.el7_9 zlib.x86_64 0:1.2.7-21.el7_9
Replaced:
centos-logos.noarch 0:70.0.6-3.el7.centos
Complete!
```
### 2.2.5. 升級後版本資訊確認
```shell!
[root@centos7 ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.9"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.9"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION=7.9
# This is a "SLES Expanded Support platform release 7.9"
# The above "Red Hat Enterprise Linux Server" string is only used to
# keep software compatibility.
```
## 3. 套件版本確認
### 3.1. zlib
```shell!
[root@centos7 ~]# rpm -qi zlib
Name : zlib
Version : 1.2.7
Release : 21.el7_9
Architecture: x86_64
Install Date: Thu 28 Mar 2024 10:53:53 PM EDT
Group : System Environment/Libraries
Size : 185206
License : zlib and Boost
Signature : DSA/SHA1, Tue 07 Mar 2023 07:34:16 AM EST, Key ID 8055f0400182b964
Source RPM : zlib-1.2.7-21.el7_9.src.rpm
Build Date : Tue 07 Mar 2023 07:33:46 AM EST
Build Host : beezolated4
Relocations : (not relocatable)
Packager : SUSE LLC <https://www.suse.com/>
Vendor : SUSE LLC <https://www.suse.com/>
URL : http://www.zlib.net/
Summary : The compression and decompression library
Description :
Zlib is a general-purpose, patent-free, lossless data compression
library which is used by many different programs.
```
### 3.2. 安裝新套件 - httpd
```shell!
[root@centos7 ~]# yum install httpd -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-99.el7_9.1 will be installed
--> Processing Dependency: httpd-tools = 2.4.6-99.el7_9.1 for package: httpd-2.4.6-99.el7_9.1.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-99.el7_9.1.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-99.el7_9.1.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-99.el7_9.1.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.4.8-7.el7 will be installed
---> Package apr-util.x86_64 0:1.5.2-6.el7_9.1 will be installed
---> Package httpd-tools.x86_64 0:2.4.6-99.el7_9.1 will be installed
---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================
Installing:
httpd x86_64 2.4.6-99.el7_9.1 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 1.2 M
Installing for dependencies:
apr x86_64 1.4.8-7.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 103 k
apr-util x86_64 1.5.2-6.el7_9.1 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 91 k
httpd-tools x86_64 2.4.6-99.el7_9.1 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 94 k
mailcap noarch 2.1.41-2.el7 192.168.11.112_repo_SUSE_Updates_RES_7_x86_64_update 30 k
Transaction Summary
========================================================================================================================================
Install 1 Package (+4 Dependent packages)
Total download size: 1.5 M
Installed size: 4.3 M
Downloading packages:
(1/5): apr-util-1.5.2-6.el7_9.1.x86_64.rpm | 91 kB 00:00:00
(2/5): apr-1.4.8-7.el7.x86_64.rpm | 103 kB 00:00:00
(3/5): httpd-2.4.6-99.el7_9.1.x86_64.rpm | 1.2 MB 00:00:00
(4/5): httpd-tools-2.4.6-99.el7_9.1.x86_64.rpm | 94 kB 00:00:00
(5/5): mailcap-2.1.41-2.el7.noarch.rpm | 30 kB 00:00:00
----------------------------------------------------------------------------------------------------------------------------------------
Total 2.1 MB/s | 1.5 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : apr-1.4.8-7.el7.x86_64 1/5
Installing : apr-util-1.5.2-6.el7_9.1.x86_64 2/5
Installing : httpd-tools-2.4.6-99.el7_9.1.x86_64 3/5
Installing : mailcap-2.1.41-2.el7.noarch 4/5
Installing : httpd-2.4.6-99.el7_9.1.x86_64 5/5
Verifying : httpd-tools-2.4.6-99.el7_9.1.x86_64 1/5
Verifying : apr-1.4.8-7.el7.x86_64 2/5
Verifying : mailcap-2.1.41-2.el7.noarch 3/5
Verifying : httpd-2.4.6-99.el7_9.1.x86_64 4/5
Verifying : apr-util-1.5.2-6.el7_9.1.x86_64 5/5
Installed:
httpd.x86_64 0:2.4.6-99.el7_9.1
Dependency Installed:
apr.x86_64 0:1.4.8-7.el7 apr-util.x86_64 0:1.5.2-6.el7_9.1 httpd-tools.x86_64 0:2.4.6-99.el7_9.1 mailcap.noarch 0:2.1.41-2.el7
Complete!
[root@centos7 ~]# rpm -qi httpd
Name : httpd
Version : 2.4.6
Release : 99.el7_9.1
Architecture: x86_64
Install Date: Thu 28 Mar 2024 11:23:39 PM EDT
Group : System Environment/Daemons
Size : 3899802
License : ASL 2.0
Signature : DSA/SHA1, Fri 26 May 2023 02:25:54 AM EDT, Key ID 8055f0400182b964
Source RPM : httpd-2.4.6-99.el7_9.1.src.rpm
Build Date : Fri 26 May 2023 02:26:10 AM EDT
Build Host : beezolated0
Relocations : (not relocatable)
Packager : SUSE LLC <https://www.suse.com/>
Vendor : SUSE LLC <https://www.suse.com/>
URL : http://httpd.apache.org/
Summary : Apache HTTP Server
Description :
The Apache HTTP Server is a powerful, efficient, and extensible
web server.
```
### 3.3. 啟動服務 - httpd
```shell!
[root@centos7 ~]# firewall-cmd --permanent --add-service=http
success
[root@centos7 ~]# firewall-cmd --reload
success
[root@centos7 ~]# systemctl enable --now httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
```

## 4. 其他
### 3.1. 缺少yum-config-manager
:::warning
遭遇以下錯誤要先確認yum-config-manager是否有安裝。
[root@centos7 ~]# sh rmt-client-setup-res https://192.168.11.112
detect RES version... 7
Importing repomd.xml.key
Downloading SUSEConnect
YUM config manager is not installed. Please install yum-config-manager and retry. Abort.
:::
掛載ISO
```shell!
[root@centos7 yum.repos.d]# blkid
/dev/vda1: UUID="1e649c0c-b34d-48f0-af95-d2c2a28815a1" TYPE="xfs"
/dev/vda2: UUID="z2gAmw-udkX-PVzV-kLdZ-eyNx-owQk-648Hqd" TYPE="LVM2_member"
/dev/sr0: UUID="2020-11-04-11-36-43-00" LABEL="CentOS 7 x86_64" TYPE="iso9660" PTTYPE="dos"
/dev/mapper/centos-root: UUID="07c5f008-63d6-43ef-b9cb-30f5166cca0c" TYPE="xfs"
/dev/mapper/centos-swap: UUID="f2e95881-03a7-4947-bb39-d98ba1b38987" TYPE="swap"
/dev/mapper/centos-home: UUID="0e804a6b-3f28-4d77-a99a-7c719ef39437" TYPE="xfs"
[root@centos7 yum.repos.d]# mount -o loop,ro /dev/sr0 /mnt/
[root@centos7 yum.repos.d]# ls /mnt/
CentOS_BuildTag EULA images LiveOS repodata RPM-GPG-KEY-CentOS-Testing-7
EFI GPL isolinux Packages RPM-GPG-KEY-CentOS-7 TRANS.TBL
[root@centos7 yum.repos.d]# vi /etc/yum.repos.d/iso.repo
```
iso.repo:
:::info
[centos7-Server]
name=ServerFault Answer
baseurl=file:///mnt/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1
gpgcheck=1
:::
iso.repo for redhat 7
:::info
[redhat7-Server]
name=ServerFault Answer
baseurl=file:///mnt/
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
:::
```shell!
[root@centos7 yum.repos.d]# yum list
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
centos7-Server | 3.6 kB 00:00:00
(1/2): centos7-Server/group_gz | 153 kB 00:00:00
(2/2): centos7-Server/primary_db | 3.3 MB 00:00:00
Installed Packages
NetworkManager.x86_64 1:1.18.8-1.el7 @anaconda
NetworkManager-libnm.x86_64 1:1.18.8-1.el7 @anaconda
NetworkManager-team.x86_64 1:1.18.8-1.el7 @anaconda
NetworkManager-tui.x86_64 1:1.18.8-1.el7 @anaconda
acl.x86_64 2.2.51-15.el7 @anaconda
aic94xx-firmware.noarch 30-6.el7 @anaconda
alsa-firmware.noarch 1.0.28-2.el7 @anaconda
alsa-lib.x86_64 1.1.8-1.el7 @anaconda
alsa-tools-firmware.x86_64 1.1.0-1.el7 @anaconda
audit.x86_64 2.8.5-4.el7 @anaconda
...
...
...
[root@centos7 yum.repos.d]# yum -y install yum-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-54.el7_8 will be installed
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-54.el7_8.noarch
--> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-54.el7_8.noarch
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.9.1-6.el7.5 will be installed
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch
--> Running transaction check
---> Package python-chardet.noarch 0:2.2.1-3.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================
Installing:
yum-utils noarch 1.1.31-54.el7_8 centos7-Server 122 k
Installing for dependencies:
libxml2-python x86_64 2.9.1-6.el7.5 centos7-Server 247 k
python-chardet noarch 2.2.1-3.el7 centos7-Server 227 k
python-kitchen noarch 1.1.1-5.el7 centos7-Server 267 k
Transaction Summary
===============================================================================================================================
Install 1 Package (+3 Dependent packages)
Total download size: 863 k
Installed size: 4.3 M
Downloading packages:
warning: /mnt/Packages/libxml2-python-2.9.1-6.el7.5.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for libxml2-python-2.9.1-6.el7.5.x86_64.rpm is not installed
-------------------------------------------------------------------------------------------------------------------------------
Total 1.3 MB/s | 863 kB 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-9.2009.0.el7.centos.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python-chardet-2.2.1-3.el7.noarch 1/4
Installing : python-kitchen-1.1.1-5.el7.noarch 2/4
Installing : libxml2-python-2.9.1-6.el7.5.x86_64 3/4
Installing : yum-utils-1.1.31-54.el7_8.noarch 4/4
Verifying : libxml2-python-2.9.1-6.el7.5.x86_64 1/4
Verifying : python-kitchen-1.1.1-5.el7.noarch 2/4
Verifying : yum-utils-1.1.31-54.el7_8.noarch 3/4
Verifying : python-chardet-2.2.1-3.el7.noarch 4/4
Installed:
yum-utils.noarch 0:1.1.31-54.el7_8
Dependency Installed:
libxml2-python.x86_64 0:2.9.1-6.el7.5 python-chardet.noarch 0:2.2.1-3.el7 python-kitchen.noarch 0:1.1.1-5.el7
Complete!
[root@centos7 yum.repos.d]# rm /etc/yum.repos.d/iso.repo
rm: remove regular file ‘/etc/yum.repos.d/iso.repo’? y
[root@centos7 yum.repos.d]# umount /mnt/
```
### 3.2. 刪除EULA後,開機選單資訊錯誤
```shell!
[root@centos7 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-1160.114.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.114.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-1160.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-0ad40268a3dc42988e3637734b5d3e76
Found initrd image: /boot/initramfs-0-rescue-0ad40268a3dc42988e3637734b5d3e76.img
done
```