Monday, November 11, 2024
Centos

Cara mengembalikan atau Rollback server centos yang sudah terupdate

rollback

Pada Kesempatan ini saya akan membahas mengenai Cara mengembalikan atau Rollback server centos yang sudah terupdate . Mungkin case nya ketika kita selesai update ( yum update -y) ada service or app yang tidak running . Jadi jangan khawatir karena di centos bisa di rollback.

Berikut command nya :

-  yum history
Loaded plugins: fastestmirror
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    19 | root <root>              | 2021-06-28 15:45 | Update         |   11
    18 | root <root>              | 2021-06-17 12:16 | Install        |    1
    17 | root <root>              | 2021-06-02 10:15 | I, U           |   28
    16 | root <root>              | 2021-04-05 18:53 | I, U           |   55

- yum history undo id
  yum history undo 19
Loaded plugins: fastestmirror
Undoing transaction 19, from Mon Jun 28 15:45:40 2021
    Updated dhclient-12:4.2.5-82.el7.centos.x86_64      @base
    Update           12:4.2.5-83.el7.centos.1.x86_64    @updates
    Updated dhcp-common-12:4.2.5-82.el7.centos.x86_64   @base
    Update              12:4.2.5-83.el7.centos.1.x86_64 @updates
    Updated dhcp-libs-12:4.2.5-82.el7.centos.x86_64     @base
    Update            12:4.2.5-83.el7.centos.1.x86_64   @updates
    Updated glib2-2.56.1-8.el7.x86_64                   @updates
    Update        2.56.1-9.el7_9.x86_64                 @updates
    Updated kexec-tools-2.0.15-51.el7_9.2.x86_64        @updates
    Update              2.0.15-51.el7_9.3.x86_64        @updates
    Updated microcode_ctl-2:2.1-73.8.el7_9.x86_64       @updates

(Visited 752 times, 1 visits today)
Baca Juga :  Cara menambahkan node exporter di host client ( server client )

Similar Posts