Update

 

원하는 버전을 cdrom 마운트 후 local yum 구성

local yum 구성방법 https://frog11.tistory.com/90

 

리눅스 local yum 구성

원하는 버전 Centos, Rhel CD rom 마운트 1. Package를 복사할 디렉토리 생성 [root@localhost /]# mkdir -p /redhat7/Packages/ 2. CD 안의 RPM파일 디렉토리로 copy [root@localhost /]# mount /dev/sr0 /cdrom..

frog11.tistory.com

 

1. 기존버전 7.6 

[root@localhost /]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core)

 

2. 업데이트 할 버전 7.9로 업데이트

[root@localhost /]# yum update -y
Loaded plugins: fastestmirror, langpacks, versionlock
Loading mirror speeds from cached hostfile
Excluding 4 updates due to versionlock (use "yum versionlock status" to show them)
Resolving Dependencies
--> Running transaction check
---> Package GeoIP.x86_64 0:1.5.0-13.el7 will be updated
---> Package GeoIP.x86_64 0:1.5.0-14.el7 will be an update

 

** 솔루션 영향도에 따라 update를 하지 말아야할 패키지들이 있을 경우 versionlock 기능이 있다.

[root@localhost Packages]# yum versionlocl java*

명령어가 설치되어 있지 않을 경우 아래 명령어로 설치

[root@localhost /]# yum -y install yum-plugin-versionlock

 

 

Downgrade

1. update 후 버전

[root@localhost /]# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

 

2. 이전 버전 7.6로 local repository 구성

https://frog11.tistory.com/90

 

리눅스 local yum 구성

원하는 버전 Centos, Rhel CD rom 마운트 1. Package를 복사할 디렉토리 생성 [root@localhost /]# mkdir -p /redhat7/Packages/ 2. CD 안의 RPM파일 디렉토리로 copy [root@localhost /]# mount /dev/sr0 /cdrom..

frog11.tistory.com

3. yum history로 업데이트 내역 확인

[root@localhost /]# yum history
Loaded plugins: fastestmirror, langpacks, versionlock
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    12 | root <root>              | 2022-03-24 17:18 | I, O, U        |  682 EE

history list

4. yum protect 부분에 systemd가 포함되어있어 파일내용을 백업 후 기존파일 삭제

[root@localhost /]# cd /etc/yum/protected.d/
[root@localhost protected.d]# ls -l
total 8
-rw-r--r--. 1 root root 8 Oct  2  2020 systemd.conf

[root@localhost protected.d]# mv systemd.conf systemd.conf.bak

5. yum history undo [ID]로 downgrade

[root@localhost protected.d]# yum history undo 12
Loaded plugins: fastestmirror, langpacks, versionlock
Undoing transaction 12, from Thu Mar 24 17:18:23 2022
    Updated     GeoIP-1.5.0-13.el7.x86_64                                        @rhel7repository
    Update            1.5.0-14.el7.x86_64                                        @rhel7.9repository
    Updated     LibRaw-0.14.8-5.el7.20120830git98d925.x86_64                     @rhel7repository

 

'IT > 리눅스' 카테고리의 다른 글

centos 8 이상 버전 local repository  (0) 2023.11.02
vnc server 설정  (0) 2023.05.15
리눅스 local yum 구성  (0) 2022.03.24
nmon 설정  (0) 2021.04.12
Ubuntu Local repository 구성  (0) 2020.11.12

+ Recent posts