«   2018/04   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Archives
Today
848
Total
1,087,129
관리 메뉴

Blue Breeze

Centos Yum history undo 본문

OS/Linux

Centos Yum history undo

푸른바람 푸른_바람 2017.04.12 16:07

yum history

yum history undo 8

[root@devadmin jenkins]# yum history undo 298
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Undoing transaction 298, from Tue Apr 11 14:21:00 2017
    Updated jenkins-2.53-1.1.noarch @jenkins
    Update          2.54-1.1.noarch @jenkins
Loading mirror speeds from cached hostfile
 * atomic: mirrors.thzhost.com
 * base: mirror.oasis.onnetcorp.com
 * epel: mirror.premi.st
 * extras: mirror.oasis.onnetcorp.com
 * jpackage: ftp.heanet.ie
 * remi-safe: ca.mirror.babylon.network
 * rpmforge: ftp.kddilabs.jp
 * updates: mirror.oasis.onnetcorp.com
239 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:2.53-1.1 will be a downgrade
---> Package jenkins.noarch 0:2.54-1.1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================
 Package                                    Arch                                      Version                                     Repository                                  Size
===================================================================================================================================================================================
Downgrading:
 jenkins                                    noarch                                    2.53-1.1                                    jenkins                                     65 M

Transaction Summary
===================================================================================================================================================================================
Downgrade     1 Package(s)

Total download size: 65 M
Is this ok [y/N]: y
Downloading Packages:
jenkins-2.53-1.1.noarch.rpm                                                                                                                                 |  65 MB     00:08
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : jenkins-2.53-1.1.noarch                                                                                                                                         1/2
  Cleanup    : jenkins-2.54-1.1.noarch                                                                                                                                         2/2
  Verifying  : jenkins-2.53-1.1.noarch                                                                                                                                         1/2
  Verifying  : jenkins-2.54-1.1.noarch                                                                                                                                         2/2

Removed:
  jenkins.noarch 0:2.54-1.1

Installed:
  jenkins.noarch 0:2.53-1.1

진단 단계

  • Doing full system backup prior to any update is always recommended, and yum history is NOT meant to replace systems backups.
  • General documentation of the system state both prior and after patching is always good practice. This should include running package-cleanup with following flags, --orphans, --problems, --dupes, --leaves.
  • yum history undo will require access to all the previous RPM version; thus, need to ensure the older RPM versions are available to the system. It is recommended that prior to doing updates, you closely inspect the output of package-cleanup --orphans to know what currently installed RPMs are no longer available in the enabled repositories. This should not be a concern if using the standard RHEL repositories provided by Red Hat as multiple versions of RPM are maintained in these locations.
  • If yum history undo has problem with a given package, it is possible to exclude with the --exclude command line flag, and then can deal with exception manually.
  • As after any RPM changes, recommend checking the yum output/logs for any messages and/or rpm{new,orig,save} files created.


'OS > Linux' 카테고리의 다른 글

KT ucloud NAS 연결  (0) 2017.06.05
yum rpmforge Error  (0) 2017.05.04
Centos Yum history undo  (0) 2017.04.12
bash find delte sort  (0) 2017.04.11
scp remote to remote routing  (0) 2017.04.10
Debian dpkg command  (0) 2017.03.28
0 Comments
댓글쓰기 폼