[root@localhost ~]# yum history list  #查看历史
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
22 | install -y screen | 2021-11-01 09:03 | Install | 1
21 | localinstall -y google-c | 2021-11-01 06:43 | Install | 1 EE
20 | install -y gtk3 | 2021-11-01 06:42 | Install | 1
19 | remove gtk3 | 2021-11-01 06:41 | Erase | 2
18 | localinstall google-chro | 2021-11-01 06:30 | Install | 1 EE
17 | remove gtk2 | 2021-11-01 06:14 | Erase | 1
16 | install -y gtk3 | 2021-11-01 06:06 | Install | 1
15 | remove gtk3 | 2021-11-01 06:02 | Erase | 2
14 | install -y python3 | 2021-10-15 11:23 | Install | 5
13 | -y groupinstall Fonts | 2021-10-14 11:24 | Install | 45
12 | install -y dbus-x11.x86_ | 2021-10-14 10:36 | Install | 1
11 | install -y xorg-x11-serv | 2021-10-14 10:32 | Install | 4
10 | install -y libXt-1.1.5-3 | 2021-10-14 10:28 | Install | 1
9 | remove libXt-1.1.5-3.el7 | 2021-10-14 09:16 | Erase | 9
8 | localinstall google-chro | 2021-10-14 01:58 | Install | 9 EE
7 | install lrzsz | 2021-10-14 01:57 | Install | 1
6 | install dbus-x11 | 2021-10-14 01:51 | Install | 3
5 | install xterm | 2021-10-14 01:15 | Install | 3
4 | install -y xorg-x11-xaut | 2021-10-14 01:12 | Install | 26
3 | install -y firefox.x86_6 | 2021-10-14 01:08 | I, U | 88
history list
[root@localhost ~]# rpm -qa|grep chrome #现在有谷歌浏览器
google-chrome-stable-88.0.4324.150-1.x86_64
[root@localhost ~]# rpm -qa|grep gtk3
gtk3-3.22.30-6.el7.x86_64
[root@localhost ~]# yum remove gtk3 #卸载gtk3
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package gtk3.x86_64 0:3.22.30-6.el7 will be erased
--> Processing Dependency: libgdk-3.so.0()(64bit) for package: google-chrome-stable-88.0.4324.150-1.x86_64
--> Processing Dependency: libgtk-3.so.0()(64bit) for package: google-chrome-stable-88.0.4324.150-1.x86_64
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:88.0.4324.150-1 will be erased
--> Finished Dependency Resolution Dependencies Resolved =====================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================
Removing:
gtk3 x86_64 3.22.30-6.el7 @updates 17 M
Removing for dependencies:
google-chrome-stable x86_64 88.0.4324.150-1 installed 228 M Transaction Summary
=====================================================================================================================================================================
Remove 1 Package (+1 Dependent package) Installed size: 245 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : google-chrome-stable-88.0.4324.150-1.x86_64 1/2
Erasing : gtk3-3.22.30-6.el7.x86_64 2/2
Verifying : gtk3-3.22.30-6.el7.x86_64 1/2
Verifying : google-chrome-stable-88.0.4324.150-1.x86_64 2/2 Removed:
gtk3.x86_64 0:3.22.30-6.el7 Dependency Removed:
google-chrome-stable.x86_64 0:88.0.4324.150-1 Complete!
[root@localhost ~]# rpm -qa|grep chrome #谷歌浏览器也被卸载掉
[root@localhost ~]# yum history list #刚刚刚的操作是第23步骤
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
23 | remove gtk3 | 2021-11-01 15:42 | Erase | 2
22 | install -y screen | 2021-11-01 09:03 | Install | 1
21 | localinstall -y google-c | 2021-11-01 06:43 | Install | 1 EE
20 | install -y gtk3 | 2021-11-01 06:42 | Install | 1
19 | remove gtk3 | 2021-11-01 06:41 | Erase | 2
18 | localinstall google-chro | 2021-11-01 06:30 | Install | 1 EE
17 | remove gtk2 | 2021-11-01 06:14 | Erase | 1
16 | install -y gtk3 | 2021-11-01 06:06 | Install | 1
15 | remove gtk3 | 2021-11-01 06:02 | Erase | 2
14 | install -y python3 | 2021-10-15 11:23 | Install | 5
13 | -y groupinstall Fonts | 2021-10-14 11:24 | Install | 45
12 | install -y dbus-x11.x86_ | 2021-10-14 10:36 | Install | 1
11 | install -y xorg-x11-serv | 2021-10-14 10:32 | Install | 4
10 | install -y libXt-1.1.5-3 | 2021-10-14 10:28 | Install | 1
9 | remove libXt-1.1.5-3.el7 | 2021-10-14 09:16 | Erase | 9
8 | localinstall google-chro | 2021-10-14 01:58 | Install | 9 EE
7 | install lrzsz | 2021-10-14 01:57 | Install | 1
6 | install dbus-x11 | 2021-10-14 01:51 | Install | 3
5 | install xterm | 2021-10-14 01:15 | Install | 3
4 | install -y xorg-x11-xaut | 2021-10-14 01:12 | Install | 26
history list
[root@localhost ~]# yum history info 23 #查看id是23的做了什么
Loaded plugins: fastestmirror
Transaction ID : 23
Begin time : Mon Nov 1 15:42:47 2021
Begin rpmdb : 633:834d8b2f5ee9363546b8bcfe2be599d21cfa5dd0
End time : 15:42:49 2021 (2 seconds)
End rpmdb : 631:cbbc083a4dc3433acac160db9a0672d0e853410d
User : root <root>
Return-Code : Success
Command Line : remove gtk3
Transaction performed with:
Installed rpm-4.11.3-25.el7.x86_64 @anaconda
Installed yum-3.4.3-154.el7.centos.noarch @anaconda
Installed yum-plugin-fastestmirror-1.1.31-42.el7.noarch @anaconda
Packages Altered:
Erase google-chrome-stable-88.0.4324.150-1.x86_64 @/google-chrome-stable_current_x86_64
Erase gtk3-3.22.30-6.el7.x86_64 @updates
history info
[root@localhost ~]# yum history undo 23 #撤销23步骤
Loaded plugins: fastestmirror
Undoing transaction 23, from Mon Nov 1 15:42:47 2021
Erase google-chrome-stable-88.0.4324.150-1.x86_64 @/google-chrome-stable_current_x86_64
Erase gtk3-3.22.30-6.el7.x86_64 @updates
base | 3.6 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
google-chrome | 1.3 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/2): epel/x86_64/updateinfo | 1.0 MB 00:00:01
(2/2): epel/x86_64/primary_db | 7.0 MB 00:00:03
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Error: No package(s) available to install
[root@localhost ~]# rpm -qa|grep chrome #谷歌并没有重新安装,gtk3页没有重新安装,记录没有 增加
[root@localhost ~]# yum history list
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
23 | remove gtk3 | 2021-11-01 15:42 | Erase | 2
22 | install -y screen | 2021-11-01 09:03 | Install | 1
21 | localinstall -y google-c | 2021-11-01 06:43 | Install | 1 EE
20 | install -y gtk3 | 2021-11-01 06:42 | Install | 1
19 | remove gtk3 | 2021-11-01 06:41 | Erase | 2
18 | localinstall google-chro | 2021-11-01 06:30 | Install | 1 EE
17 | remove gtk2 | 2021-11-01 06:14 | Erase | 1
16 | install -y gtk3 | 2021-11-01 06:06 | Install | 1
15 | remove gtk3 | 2021-11-01 06:02 | Erase | 2
14 | install -y python3 | 2021-10-15 11:23 | Install | 5
13 | -y groupinstall Fonts | 2021-10-14 11:24 | Install | 45
12 | install -y dbus-x11.x86_ | 2021-10-14 10:36 | Install | 1
11 | install -y xorg-x11-serv | 2021-10-14 10:32 | Install | 4
10 | install -y libXt-1.1.5-3 | 2021-10-14 10:28 | Install | 1
9 | remove libXt-1.1.5-3.el7 | 2021-10-14 09:16 | Erase | 9
8 | localinstall google-chro | 2021-10-14 01:58 | Install | 9 EE
7 | install lrzsz | 2021-10-14 01:57 | Install | 1
6 | install dbus-x11 | 2021-10-14 01:51 | Install | 3
5 | install xterm | 2021-10-14 01:15 | Install | 3
4 | install -y xorg-x11-xaut | 2021-10-14 01:12 | Install | 26
history list 没有装依赖的记录undo
[root@localhost ~]# yum history list #查看历史记录
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
24 | install -y gtk3 | 2021-11-01 15:51 | Install | 1
23 | remove gtk3 | 2021-11-01 15:42 | Erase | 2
22 | install -y screen | 2021-11-01 09:03 | Install | 1
21 | localinstall -y google-c | 2021-11-01 06:43 | Install | 1 EE
20 | install -y gtk3 | 2021-11-01 06:42 | Install | 1
19 | remove gtk3 | 2021-11-01 06:41 | Erase | 2
18 | localinstall google-chro | 2021-11-01 06:30 | Install | 1 EE
17 | remove gtk2 | 2021-11-01 06:14 | Erase | 1
16 | install -y gtk3 | 2021-11-01 06:06 | Install | 1
15 | remove gtk3 | 2021-11-01 06:02 | Erase | 2
14 | install -y python3 | 2021-10-15 11:23 | Install | 5
13 | -y groupinstall Fonts | 2021-10-14 11:24 | Install | 45
12 | install -y dbus-x11.x86_ | 2021-10-14 10:36 | Install | 1
11 | install -y xorg-x11-serv | 2021-10-14 10:32 | Install | 4
10 | install -y libXt-1.1.5-3 | 2021-10-14 10:28 | Install | 1
9 | remove libXt-1.1.5-3.el7 | 2021-10-14 09:16 | Erase | 9
8 | localinstall google-chro | 2021-10-14 01:58 | Install | 9 EE
7 | install lrzsz | 2021-10-14 01:57 | Install | 1
6 | install dbus-x11 | 2021-10-14 01:51 | Install | 3
5 | install xterm | 2021-10-14 01:15 | Install | 3
history list
[root@localhost ~]# rpm -qa|grep htop
[root@localhost ~]# yum install -y htop #安装htop
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package htop.x86_64 0:2.2.0-3.el7 will be installed
--> Finished Dependency Resolution Dependencies Resolved =====================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================
Installing:
htop x86_64 2.2.0-3.el7 epel 103 k Transaction Summary
=====================================================================================================================================================================
Install 1 Package Total download size: 103 k
Installed size: 218 k
Downloading packages:
htop-2.2.0-3.el7.x86_64.rpm | 103 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : htop-2.2.0-3.el7.x86_64 1/1
Verifying : htop-2.2.0-3.el7.x86_64 1/1 Installed:
htop.x86_64 0:2.2.0-3.el7 Complete!
[root@localhost ~]# yum history list #查看htop安装记录25
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
25 | install -y htop | 2021-11-01 15:52 | Install | 1
24 | install -y gtk3 | 2021-11-01 15:51 | Install | 1
23 | remove gtk3 | 2021-11-01 15:42 | Erase | 2
22 | install -y screen | 2021-11-01 09:03 | Install | 1
21 | localinstall -y google-c | 2021-11-01 06:43 | Install | 1 EE
20 | install -y gtk3 | 2021-11-01 06:42 | Install | 1
19 | remove gtk3 | 2021-11-01 06:41 | Erase | 2
18 | localinstall google-chro | 2021-11-01 06:30 | Install | 1 EE
17 | remove gtk2 | 2021-11-01 06:14 | Erase | 1
16 | install -y gtk3 | 2021-11-01 06:06 | Install | 1
15 | remove gtk3 | 2021-11-01 06:02 | Erase | 2
14 | install -y python3 | 2021-10-15 11:23 | Install | 5
13 | -y groupinstall Fonts | 2021-10-14 11:24 | Install | 45
12 | install -y dbus-x11.x86_ | 2021-10-14 10:36 | Install | 1
11 | install -y xorg-x11-serv | 2021-10-14 10:32 | Install | 4
10 | install -y libXt-1.1.5-3 | 2021-10-14 10:28 | Install | 1
9 | remove libXt-1.1.5-3.el7 | 2021-10-14 09:16 | Erase | 9
8 | localinstall google-chro | 2021-10-14 01:58 | Install | 9 EE
7 | install lrzsz | 2021-10-14 01:57 | Install | 1
6 | install dbus-x11 | 2021-10-14 01:51 | Install | 3
history list
[root@localhost ~]# yum history redo 25 #撤销最近的记录25,卸载掉了
Loaded plugins: fastestmirror
Repeating transaction 25, from Mon Nov 1 15:52:48 2021
Install htop-2.2.0-3.el7.x86_64 @epel
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Package htop-2.2.0-3.el7.x86_64 already installed and latest version
history redo
[root@localhost ~]# yum history undo 25
Loaded plugins: fastestmirror
Undoing transaction 25, from Mon Nov 1 15:52:48 2021
Install htop-2.2.0-3.el7.x86_64 @epel
Resolving Dependencies
--> Running transaction check
---> Package htop.x86_64 0:2.2.0-3.el7 will be erased
--> Finished Dependency Resolution Dependencies Resolved =====================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================
Removing:
htop x86_64 2.2.0-3.el7 @epel 218 k Transaction Summary
=====================================================================================================================================================================
Remove 1 Package Installed size: 218 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : htop-2.2.0-3.el7.x86_64 1/1
Verifying : htop-2.2.0-3.el7.x86_64 1/1 Removed:
htop.x86_64 0:2.2.0-3.el7 Complete!
[root@localhost ~]# rpm -qa|grep htop #htop已安装的被卸载掉 有依赖的记录undo redo
[root@localhost ~]# yum install -y nginx #安装Nginx
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.20.1-9.el7 will be installed
--> Processing Dependency: nginx-filesystem = 1:1.20.1-9.el7 for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_1)(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: nginx-filesystem for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libcrypto.so.1.1()(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libprofiler.so.0()(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libssl.so.1.1()(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Running transaction check
---> Package gperftools-libs.x86_64 0:2.6.1-1.el7 will be installed
---> Package nginx-filesystem.noarch 1:1.20.1-9.el7 will be installed
---> Package openssl11-libs.x86_64 1:1.1.1g-3.el7 will be installed
--> Finished Dependency Resolution Dependencies Resolved =====================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================
Installing:
nginx x86_64 1:1.20.1-9.el7 epel 587 k
Installing for dependencies:
gperftools-libs x86_64 2.6.1-1.el7 base 272 k
nginx-filesystem noarch 1:1.20.1-9.el7 epel 24 k
openssl11-libs x86_64 1:1.1.1g-3.el7 epel 1.5 M Transaction Summary
=====================================================================================================================================================================
Install 1 Package (+3 Dependent packages) Total download size: 2.3 M
Installed size: 6.6 M
Downloading packages:
(1/4): nginx-filesystem-1.20.1-9.el7.noarch.rpm | 24 kB 00:00:00
(2/4): nginx-1.20.1-9.el7.x86_64.rpm | 587 kB 00:00:00
(3/4): openssl11-libs-1.1.1g-3.el7.x86_64.rpm | 1.5 MB 00:00:01
(4/4): gperftools-libs-2.6.1-1.el7.x86_64.rpm | 272 kB 00:00:01
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.2 MB/s | 2.3 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : gperftools-libs-2.6.1-1.el7.x86_64 1/4
Installing : 1:nginx-filesystem-1.20.1-9.el7.noarch 2/4
Installing : 1:openssl11-libs-1.1.1g-3.el7.x86_64 3/4
Installing : 1:nginx-1.20.1-9.el7.x86_64 4/4
Verifying : 1:openssl11-libs-1.1.1g-3.el7.x86_64 1/4
Verifying : 1:nginx-filesystem-1.20.1-9.el7.noarch 2/4
Verifying : gperftools-libs-2.6.1-1.el7.x86_64 3/4
Verifying : 1:nginx-1.20.1-9.el7.x86_64 4/4 Installed:
nginx.x86_64 1:1.20.1-9.el7 Dependency Installed:
gperftools-libs.x86_64 0:2.6.1-1.el7 nginx-filesystem.noarch 1:1.20.1-9.el7 openssl11-libs.x86_64 1:1.1.1g-3.el7 Complete!
[root@localhost ~]# yum history list #查看安装Nginx的记录29
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
29 | install -y nginx | 2021-11-01 15:56 | Install | 4
28 | remove sshpass | 2021-11-01 15:56 | Erase | 1
27 | install -y sshpass | 2021-11-01 15:55 | Install | 1
26 | history undo 25 | 2021-11-01 15:53 | Erase | 1
25 | install -y htop | 2021-11-01 15:52 | Install | 1
24 | install -y gtk3 | 2021-11-01 15:51 | Install | 1
23 | remove gtk3 | 2021-11-01 15:42 | Erase | 2
22 | install -y screen | 2021-11-01 09:03 | Install | 1
21 | localinstall -y google-c | 2021-11-01 06:43 | Install | 1 EE
20 | install -y gtk3 | 2021-11-01 06:42 | Install | 1
19 | remove gtk3 | 2021-11-01 06:41 | Erase | 2
18 | localinstall google-chro | 2021-11-01 06:30 | Install | 1 EE
17 | remove gtk2 | 2021-11-01 06:14 | Erase | 1
16 | install -y gtk3 | 2021-11-01 06:06 | Install | 1
15 | remove gtk3 | 2021-11-01 06:02 | Erase | 2
14 | install -y python3 | 2021-10-15 11:23 | Install | 5
13 | -y groupinstall Fonts | 2021-10-14 11:24 | Install | 45
12 | install -y dbus-x11.x86_ | 2021-10-14 10:36 | Install | 1
11 | install -y xorg-x11-serv | 2021-10-14 10:32 | Install | 4
10 | install -y libXt-1.1.5-3 | 2021-10-14 10:28 | Install | 1
history list
[root@localhost ~]# yum history info 29 #查看安装记录29的详情
Loaded plugins: fastestmirror
Transaction ID : 29
Begin time : Mon Nov 1 15:56:35 2021
Begin rpmdb : 632:1152b582868dbe797121c53b42f3c3633f543996
End time : 15:56:38 2021 (3 seconds)
End rpmdb : 636:48baec6108d4c5a5c89192d63535fa615ab61422
User : root <root>
Return-Code : Success
Command Line : install -y nginx
Transaction performed with:
Installed rpm-4.11.3-25.el7.x86_64 @anaconda
Installed yum-3.4.3-154.el7.centos.noarch @anaconda
Installed yum-metadata-parser-1.1.4-10.el7.x86_64 @anaconda
Installed yum-plugin-fastestmirror-1.1.31-42.el7.noarch @anaconda
Packages Altered:
Dep-Install gperftools-libs-2.6.1-1.el7.x86_64 @base
Install nginx-1:1.20.1-9.el7.x86_64 @epel
Dep-Install nginx-filesystem-1:1.20.1-9.el7.noarch @epel
Dep-Install openssl11-libs-1:1.1.1g-3.el7.x86_64 @epel
history info
[root@localhost ~]# rpm -qa|grep nginx #查看已经被安装了Nginx
nginx-filesystem-1.20.1-9.el7.noarch
nginx-1.20.1-9.el7.x86_64
[root@localhost ~]# yum history undo 29 #撤销安装记录29
Loaded plugins: fastestmirror
Undoing transaction 29, from Mon Nov 1 15:56:35 2021
Dep-Install gperftools-libs-2.6.1-1.el7.x86_64 @base
Install nginx-1:1.20.1-9.el7.x86_64 @epel
Dep-Install nginx-filesystem-1:1.20.1-9.el7.noarch @epel
Dep-Install openssl11-libs-1:1.1.1g-3.el7.x86_64 @epel
Resolving Dependencies
--> Running transaction check
---> Package gperftools-libs.x86_64 0:2.6.1-1.el7 will be erased
---> Package nginx.x86_64 1:1.20.1-9.el7 will be erased
---> Package nginx-filesystem.noarch 1:1.20.1-9.el7 will be erased
---> Package openssl11-libs.x86_64 1:1.1.1g-3.el7 will be erased
--> Finished Dependency Resolution Dependencies Resolved =====================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================
Removing:
gperftools-libs x86_64 2.6.1-1.el7 @base 1.3 M
nginx x86_64 1:1.20.1-9.el7 @epel 1.7 M
nginx-filesystem noarch 1:1.20.1-9.el7 @epel 0.0
openssl11-libs x86_64 1:1.1.1g-3.el7 @epel 3.6 M Transaction Summary
=====================================================================================================================================================================
Remove 4 Packages Installed size: 6.6 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : 1:nginx-1.20.1-9.el7.x86_64 1/4
Erasing : 1:nginx-filesystem-1.20.1-9.el7.noarch 2/4
Erasing : 1:openssl11-libs-1.1.1g-3.el7.x86_64 3/4
Erasing : gperftools-libs-2.6.1-1.el7.x86_64 4/4
Verifying : 1:openssl11-libs-1.1.1g-3.el7.x86_64 1/4
Verifying : 1:nginx-filesystem-1.20.1-9.el7.noarch 2/4
Verifying : gperftools-libs-2.6.1-1.el7.x86_64 3/4
Verifying : 1:nginx-1.20.1-9.el7.x86_64 4/4 Removed:
gperftools-libs.x86_64 0:2.6.1-1.el7 nginx.x86_64 1:1.20.1-9.el7 nginx-filesystem.noarch 1:1.20.1-9.el7 openssl11-libs.x86_64 1:1.1.1g-3.el7 Complete!
[root@localhost ~]# yum history list #查看撤销记录30
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
30 | history undo 29 | 2021-11-01 15:58 | Erase | 4
29 | install -y nginx | 2021-11-01 15:56 | Install | 4
28 | remove sshpass | 2021-11-01 15:56 | Erase | 1
27 | install -y sshpass | 2021-11-01 15:55 | Install | 1
26 | history undo 25 | 2021-11-01 15:53 | Erase | 1
25 | install -y htop | 2021-11-01 15:52 | Install | 1
24 | install -y gtk3 | 2021-11-01 15:51 | Install | 1
23 | remove gtk3 | 2021-11-01 15:42 | Erase | 2
22 | install -y screen | 2021-11-01 09:03 | Install | 1
21 | localinstall -y google-c | 2021-11-01 06:43 | Install | 1 EE
20 | install -y gtk3 | 2021-11-01 06:42 | Install | 1
19 | remove gtk3 | 2021-11-01 06:41 | Erase | 2
18 | localinstall google-chro | 2021-11-01 06:30 | Install | 1 EE
17 | remove gtk2 | 2021-11-01 06:14 | Erase | 1
16 | install -y gtk3 | 2021-11-01 06:06 | Install | 1
15 | remove gtk3 | 2021-11-01 06:02 | Erase | 2
14 | install -y python3 | 2021-10-15 11:23 | Install | 5
13 | -y groupinstall Fonts | 2021-10-14 11:24 | Install | 45
12 | install -y dbus-x11.x86_ | 2021-10-14 10:36 | Install | 1
11 | install -y xorg-x11-serv | 2021-10-14 10:32 | Install | 4
history list
[root@localhost ~]# yum history info 30 #查看撤销记录详情 30
Loaded plugins: fastestmirror
Transaction ID : 30
Begin time : Mon Nov 1 15:58:35 2021
Begin rpmdb : 636:48baec6108d4c5a5c89192d63535fa615ab61422
End time : (0 seconds)
End rpmdb : 632:1152b582868dbe797121c53b42f3c3633f543996
User : root <root>
Return-Code : Success
Command Line : history undo 29
Transaction performed with:
Installed rpm-4.11.3-25.el7.x86_64 @anaconda
Installed yum-3.4.3-154.el7.centos.noarch @anaconda
Installed yum-plugin-fastestmirror-1.1.31-42.el7.noarch @anaconda
Packages Altered:
Erase gperftools-libs-2.6.1-1.el7.x86_64 @base
Erase nginx-1:1.20.1-9.el7.x86_64 @epel
Erase nginx-filesystem-1:1.20.1-9.el7.noarch @epel
Erase openssl11-libs-1:1.1.1g-3.el7.x86_64 @epel
history info
[root@localhost ~]# rpm -qa|grep nginx #Nginx被卸载掉了,被安装的依赖也 卸载掉了
[root@localhost ~]# yum history redo 29 #重做第29个安装Nginx的记录
Loaded plugins: fastestmirror
Repeating transaction 29, from Mon Nov 1 15:56:35 2021
Dep-Install gperftools-libs-2.6.1-1.el7.x86_64 @base
Install nginx-1:1.20.1-9.el7.x86_64 @epel
Dep-Install nginx-filesystem-1:1.20.1-9.el7.noarch @epel
Dep-Install openssl11-libs-1:1.1.1g-3.el7.x86_64 @epel
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.20.1-9.el7 will be installed
--> Processing Dependency: nginx-filesystem = 1:1.20.1-9.el7 for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_1)(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: nginx-filesystem for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libcrypto.so.1.1()(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libprofiler.so.0()(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Processing Dependency: libssl.so.1.1()(64bit) for package: 1:nginx-1.20.1-9.el7.x86_64
--> Running transaction check
---> Package gperftools-libs.x86_64 0:2.6.1-1.el7 will be installed
---> Package nginx-filesystem.noarch 1:1.20.1-9.el7 will be installed
---> Package openssl11-libs.x86_64 1:1.1.1g-3.el7 will be installed
--> Finished Dependency Resolution Dependencies Resolved =====================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================
Installing:
nginx x86_64 1:1.20.1-9.el7 epel 587 k
Installing for dependencies:
gperftools-libs x86_64 2.6.1-1.el7 base 272 k
nginx-filesystem noarch 1:1.20.1-9.el7 epel 24 k
openssl11-libs x86_64 1:1.1.1g-3.el7 epel 1.5 M Transaction Summary
=====================================================================================================================================================================
Install 1 Package (+3 Dependent packages) Total download size: 2.3 M
Installed size: 6.6 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): gperftools-libs-2.6.1-1.el7.x86_64.rpm | 272 kB 00:00:00
(2/4): nginx-filesystem-1.20.1-9.el7.noarch.rpm | 24 kB 00:00:00
(3/4): nginx-1.20.1-9.el7.x86_64.rpm | 587 kB 00:00:00
(4/4): openssl11-libs-1.1.1g-3.el7.x86_64.rpm | 1.5 MB 00:00:01
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.7 MB/s | 2.3 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : gperftools-libs-2.6.1-1.el7.x86_64 1/4
Installing : 1:nginx-filesystem-1.20.1-9.el7.noarch 2/4
Installing : 1:openssl11-libs-1.1.1g-3.el7.x86_64 3/4
Installing : 1:nginx-1.20.1-9.el7.x86_64 4/4
Verifying : 1:openssl11-libs-1.1.1g-3.el7.x86_64 1/4
Verifying : 1:nginx-filesystem-1.20.1-9.el7.noarch 2/4
Verifying : gperftools-libs-2.6.1-1.el7.x86_64 3/4
Verifying : 1:nginx-1.20.1-9.el7.x86_64 4/4 Installed:
nginx.x86_64 1:1.20.1-9.el7 Dependency Installed:
gperftools-libs.x86_64 0:2.6.1-1.el7 nginx-filesystem.noarch 1:1.20.1-9.el7 openssl11-libs.x86_64 1:1.1.1g-3.el7 Complete!
[root@localhost ~]# rpm -qa|grep nginx #Nginx又被装上了
nginx-filesystem-1.20.1-9.el7.noarch
nginx-1.20.1-9.el7.x86_64
[root@localhost ~]# ls
1.png 2.png 3.png firefox geckodriver geckodriver-v0.30.0-linux64.tar.gz hismcw.txt mcw1 下载
1.py 2.py anaconda-ks.cfg Firefox-latest-x86_64.tar.bz2 geckodriver.log google-chrome-stable_current_x86_64.rpm mcw test.py
[root@localhost ~]# yum install -y gtk3 #gtk3已经安装过
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Package gtk3-3.22.30-6.el7.x86_64 already installed and latest version
Nothing to do
[root@localhost ~]# yum localinstall -y google-chrome-stable_current_x86_64.rpm #安装上谷歌浏览器
Loaded plugins: fastestmirror
Examining google-chrome-stable_current_x86_64.rpm: google-chrome-stable-88.0.4324.150-1.x86_64
Marking google-chrome-stable_current_x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:88.0.4324.150-1 will be installed
--> Finished Dependency Resolution Dependencies Resolved =====================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================
Installing:
google-chrome-stable x86_64 88.0.4324.150-1 /google-chrome-stable_current_x86_64 228 M Transaction Summary
=====================================================================================================================================================================
Install 1 Package Total size: 228 M
Installed size: 228 M
Downloading packages:
Running transaction check
Running transaction test Transaction check error:
installing package google-chrome-stable-88.0.4324.150-1.x86_64 needs 19MB on the / filesystem Error Summary
-------------
Disk Requirements:
At least 19MB more space needed on the / filesystem. [root@localhost ~]# rpm -qa|grep chrome #没有装上谷歌,原因磁盘空间不足
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 19G 19G 222M 99% /
devtmpfs 479M 0 479M 0% /dev
tmpfs 489M 0 489M 0% /dev/shm
tmpfs 489M 6.8M 482M 2% /run
tmpfs 489M 0 489M 0% /sys/fs/cgroup
/dev/sda1 473M 111M 362M 24% /boot
tmpfs 98M 4.0K 98M 1% /run/user/0
[root@localhost ~]# ls
1.png 2.png 3.png firefox geckodriver geckodriver-v0.30.0-linux64.tar.gz hismcw.txt mcw1 下载
1.py 2.py anaconda-ks.cfg Firefox-latest-x86_64.tar.bz2 geckodriver.log google-chrome-stable_current_x86_64.rpm mcw test.py
[root@localhost ~]# mv Firefox-latest-x86_64.tar.bz2 /run/ #移走部分内容,释放一部分空间
[root@localhost ~]# yum localinstall -y google-chrome-stable_current_x86_64.rpm #谷歌浏览器被继续安装上
Loaded plugins: fastestmirror
Examining google-chrome-stable_current_x86_64.rpm: google-chrome-stable-88.0.4324.150-1.x86_64
Marking google-chrome-stable_current_x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:88.0.4324.150-1 will be installed
--> Finished Dependency Resolution Dependencies Resolved =====================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================
Installing:
google-chrome-stable x86_64 88.0.4324.150-1 /google-chrome-stable_current_x86_64 228 M Transaction Summary
=====================================================================================================================================================================
Install 1 Package Total size: 228 M
Installed size: 228 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : google-chrome-stable-88.0.4324.150-1.x86_64 1/1
Redirecting to /bin/systemctl start atd.service
Failed to start atd.service: Unit not found.
Verifying : google-chrome-stable-88.0.4324.150-1.x86_64 1/1 Installed:
google-chrome-stable.x86_64 0:88.0.4324.150-1 Complete!
[root@localhost ~]# rpm -qa|grep chrome #查看谷歌已被安装
google-chrome-stable-88.0.4324.150-1.x86_64
[root@localhost ~]# yum history list #查看安装谷歌记录32
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
32 | localinstall -y google-c | 2021-11-01 16:05 | Install | 1 EE
31 | history redo 29 | 2021-11-01 16:00 | Install | 4
30 | history undo 29 | 2021-11-01 15:58 | Erase | 4
29 | install -y nginx | 2021-11-01 15:56 | Install | 4
28 | remove sshpass | 2021-11-01 15:56 | Erase | 1
27 | install -y sshpass | 2021-11-01 15:55 | Install | 1
26 | history undo 25 | 2021-11-01 15:53 | Erase | 1
25 | install -y htop | 2021-11-01 15:52 | Install | 1
24 | install -y gtk3 | 2021-11-01 15:51 | Install | 1
23 | remove gtk3 | 2021-11-01 15:42 | Erase | 2
22 | install -y screen | 2021-11-01 09:03 | Install | 1
21 | localinstall -y google-c | 2021-11-01 06:43 | Install | 1 EE
20 | install -y gtk3 | 2021-11-01 06:42 | Install | 1
19 | remove gtk3 | 2021-11-01 06:41 | Erase | 2
18 | localinstall google-chro | 2021-11-01 06:30 | Install | 1 EE
17 | remove gtk2 | 2021-11-01 06:14 | Erase | 1
16 | install -y gtk3 | 2021-11-01 06:06 | Install | 1
15 | remove gtk3 | 2021-11-01 06:02 | Erase | 2
14 | install -y python3 | 2021-10-15 11:23 | Install | 5
13 | -y groupinstall Fonts | 2021-10-14 11:24 | Install | 45
history list
[root@localhost ~]# yum history undo 24 # 撤销安装gtk3的记录24,谷歌浏览器依然被卸载掉
Loaded plugins: fastestmirror
Undoing transaction 24, from Mon Nov 1 15:51:01 2021
Install gtk3-3.22.30-6.el7.x86_64 @updates
Resolving Dependencies
--> Running transaction check
---> Package gtk3.x86_64 0:3.22.30-6.el7 will be erased
--> Processing Dependency: libgdk-3.so.0()(64bit) for package: google-chrome-stable-88.0.4324.150-1.x86_64
--> Processing Dependency: libgtk-3.so.0()(64bit) for package: google-chrome-stable-88.0.4324.150-1.x86_64
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:88.0.4324.150-1 will be erased
--> Finished Dependency Resolution Dependencies Resolved =====================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================
Removing:
gtk3 x86_64 3.22.30-6.el7 @updates 17 M
Removing for dependencies:
google-chrome-stable x86_64 88.0.4324.150-1 installed 228 M Transaction Summary
=====================================================================================================================================================================
Remove 1 Package (+1 Dependent package) Installed size: 245 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : google-chrome-stable-88.0.4324.150-1.x86_64 1/2
Erasing : gtk3-3.22.30-6.el7.x86_64 2/2
Verifying : gtk3-3.22.30-6.el7.x86_64 1/2
Verifying : google-chrome-stable-88.0.4324.150-1.x86_64 2/2 Removed:
gtk3.x86_64 0:3.22.30-6.el7 Dependency Removed:
google-chrome-stable.x86_64 0:88.0.4324.150-1 Complete!
[root@localhost ~]# rpm -qa|grep htop #查看撤销记录24之后的安装,也没有了。
[root@localhost ~]# yum history list #查看历史记录
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
33 | history undo 24 | 2021-11-01 16:06 | Erase | 2
32 | localinstall -y google-c | 2021-11-01 16:05 | Install | 1 EE
31 | history redo 29 | 2021-11-01 16:00 | Install | 4
30 | history undo 29 | 2021-11-01 15:58 | Erase | 4
29 | install -y nginx | 2021-11-01 15:56 | Install | 4
28 | remove sshpass | 2021-11-01 15:56 | Erase | 1
27 | install -y sshpass | 2021-11-01 15:55 | Install | 1
26 | history undo 25 | 2021-11-01 15:53 | Erase | 1
25 | install -y htop | 2021-11-01 15:52 | Install | 1
24 | install -y gtk3 | 2021-11-01 15:51 | Install | 1
23 | remove gtk3 | 2021-11-01 15:42 | Erase | 2
22 | install -y screen | 2021-11-01 09:03 | Install | 1
21 | localinstall -y google-c | 2021-11-01 06:43 | Install | 1 EE
20 | install -y gtk3 | 2021-11-01 06:42 | Install | 1
19 | remove gtk3 | 2021-11-01 06:41 | Erase | 2
18 | localinstall google-chro | 2021-11-01 06:30 | Install | 1 EE
17 | remove gtk2 | 2021-11-01 06:14 | Erase | 1
16 | install -y gtk3 | 2021-11-01 06:06 | Install | 1
15 | remove gtk3 | 2021-11-01 06:02 | Erase | 2
14 | install -y python3 | 2021-10-15 11:23 | Install | 5
history list
[root@localhost ~]# yum history redo 24 #重做安装gtk3的记录24
Loaded plugins: fastestmirror
Repeating transaction 24, from Mon Nov 1 15:51:01 2021
Install gtk3-3.22.30-6.el7.x86_64 @updates
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package gtk3.x86_64 0:3.22.30-6.el7 will be installed
--> Finished Dependency Resolution Dependencies Resolved =====================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================
Installing:
gtk3 x86_64 3.22.30-6.el7 updates 4.4 M Transaction Summary
=====================================================================================================================================================================
Install 1 Package Total download size: 4.4 M
Installed size: 17 M
Is this ok [y/d/N]: y
Downloading packages:
gtk3-3.22.30-6.el7.x86_64.rpm | 4.4 MB 00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : gtk3-3.22.30-6.el7.x86_64 1/1
Verifying : gtk3-3.22.30-6.el7.x86_64 1/1 Installed:
gtk3.x86_64 0:3.22.30-6.el7 Complete!
[root@localhost ~]# rpm -qa|grep htop #gtk3被装上了,但是记录24之后安装的软件还是没有,
[root@localhost ~]# rpm -qa|grep chrome
[root@localhost ~]# 到目前为止,可知撤销很早之前的某个安装记录24,那么这条记录24之后安装的软件也被卸载。即使redo重做记录24也不能更改后面安装的已被卸载掉的结果。
[root@localhost ~]# yum history list #yum历史记录一般已被限制保留最近的多少条,再远的就看不到了。
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
34 | history redo 24 | 2021-11-01 16:07 | Install | 1
33 | history undo 24 | 2021-11-01 16:06 | Erase | 2
32 | localinstall -y google-c | 2021-11-01 16:05 | Install | 1 EE
31 | history redo 29 | 2021-11-01 16:00 | Install | 4
30 | history undo 29 | 2021-11-01 15:58 | Erase | 4
29 | install -y nginx | 2021-11-01 15:56 | Install | 4
28 | remove sshpass | 2021-11-01 15:56 | Erase | 1
27 | install -y sshpass | 2021-11-01 15:55 | Install | 1
26 | history undo 25 | 2021-11-01 15:53 | Erase | 1
25 | install -y htop | 2021-11-01 15:52 | Install | 1
24 | install -y gtk3 | 2021-11-01 15:51 | Install | 1
23 | remove gtk3 | 2021-11-01 15:42 | Erase | 2
22 | install -y screen | 2021-11-01 09:03 | Install | 1
21 | localinstall -y google-c | 2021-11-01 06:43 | Install | 1 EE
20 | install -y gtk3 | 2021-11-01 06:42 | Install | 1
19 | remove gtk3 | 2021-11-01 06:41 | Erase | 2
18 | localinstall google-chro | 2021-11-01 06:30 | Install | 1 EE
17 | remove gtk2 | 2021-11-01 06:14 | Erase | 1
16 | install -y gtk3 | 2021-11-01 06:06 | Install | 1
15 | remove gtk3 | 2021-11-01 06:02 | Erase | 2
history list
[root@localhost ~]# yum history undo 33 #撤销撤销过的步骤,是无法挽回不能反撤销的。
Loaded plugins: fastestmirror
Undoing transaction 33, from Mon Nov 1 16:06:28 2021
Erase google-chrome-stable-88.0.4324.150-1.x86_64 @/google-chrome-stable_current_x86_64
Erase gtk3-3.22.30-6.el7.x86_64 @updates
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Error: No package(s) available to install 到目前为止,没有发现yum卸载掉的怎么撤销。看来只能yum重装了。这个回退比较坑,万一回到比较远的时间点的,那么 在时间点之后的yum安装就被卸载掉了,万一卸载的是重要的软件麻烦就大了,慎用。

yum history使用详解(某次为解决误卸载软件的回退实验)的更多相关文章

  1. linux history 命令详解

    linux history 命令详解 显示命令执行时间 linux shell 具有history 功能,即会记录已经执行过的命令,但是默认是不显示命令的执行时间,命令的执行时间,history 已经 ...

  2. svn冲突问题详解 SVN版本冲突解决详解

    svn冲突问题详解 SVN版本冲突解决详解 (摘自西西软件园,原文链接http://www.cr173.com/html/46224_1.html) 解决版本冲突的命令.在冲突解决之后,需要使用svn ...

  3. 个人用户永久免费,可自动升级版Excel插件,使用VSTO开发,Excel催化剂安装过程详解及安装失败解决方法

    因Excel催化剂用了VSTO的开发技术,并且为了最好的用户体验,用了Clickonce的布署方式(无需人工干预自动更新,让用户使用如浏览器访问网站一般,永远是最新的内容和功能).对安装过程有一定的难 ...

  4. yum 命令详解-yum仓库配置文件详解

    yum安装的优点 1.必须得有网络,通过网络获取软件. 2.管理rpm包 3.自动解决依耐 4.命令简单好用 5.生产最佳实践 yum命令详解 # linux安装软件的三种方式 1.rpm安装 2.源 ...

  5. Linux YUM yum-utils 模块详解

    yum-utils 详解 yum-utils是yum的工具包集合,由不同的作者开发,使yum使用起来更加方便和强大.包括:debuginfo-install,find-repos-of-install ...

  6. Yum软件包管理详解

    目录 1. Yum 1.1 检查和更新包 1.1.1 查询更新 1.1.2 更新包 1.1.3 使用 ISO 和 Yum 离线升级系统 1.2 使用包 1.2.1 搜索包 1.2.2 列出包 1.2. ...

  7. JpGraph使用详解之中文乱码解决方法

    在前面的JpGraph使用详解这篇文章,已经对JpGraph的使用方法作了详细的交代,前面说好的,接下来解决中文乱码. JpGraph为什么会出现中文乱码 在JpGraph中默认是要把字符串转成utf ...

  8. 定时器详解和应用、js加载阻塞、css加载阻塞

    1.setTimeout().setInterval()详解和应用 1.1 详解: setTimeout.setInterval执行时机 1.2 存在问题: setInterval重复定时器可能存在的 ...

  9. JS 详解 Cookie、 LocalStorage 与 SessionStorage-转载

    记录一下这些知识,有时候用到会忘记,对原文作者表达感谢. 附上原文链接:JS 详解 Cookie. LocalStorage 与 SessionStorage 基本概念 Cookie Cookie 是 ...

随机推荐

  1. MapReduce 示例:减少 Hadoop MapReduce 中的侧连接

    摘要:在排序和reducer 阶段,reduce 侧连接过程会产生巨大的网络I/O 流量,在这个阶段,相同键的值被聚集在一起. 本文分享自华为云社区<MapReduce 示例:减少 Hadoop ...

  2. 在FLASH中读写结构体

    在FLASH中读写结构体 注意事项 编程(写数据)地址要对齐 写数据时,我们要指定写入的地址,如果写入地址为非对齐,则会出现编程对齐错误. 比如遵循32位(4字节)地址对齐,你的地址只能是4的倍数.0 ...

  3. PHP设计模式之中介者模式

    上回说道,我们在外打工的经常会和一类人有很深的接触,那就是房产中介.大学毕业后马上就能在喜欢的城市买到房子的X二代不在我们的考虑范围内哈.既然需要长期的租房,那么因为工作或者生活的变动,不可避免的一两 ...

  4. Oracle Haip无法启动问题学习

    一.目标:Oracle Haip 启动报错 需求:日常运维过程中,已经遇到两次由于HAIP引发的问题,特此进行记录. 本次问题是看着大佬-李海清操作,整完了记录一下,上一次HAIP折腾了4个小时. O ...

  5. 系统设计实践(03)- Instagram社交服务

    前言 系统设计实践篇的文章将会根据<系统设计面试的万金油>为前置模板,讲解数十个常见系统的设计思路. 前置阅读: <系统设计面试的万金油> 系统设计实践(01) - 短链服务 ...

  6. Unity Event Trigger 事件响应(二维,三维)添加组件

    EventTrigger 上主要的方法有PointerEnter.PointerExit.PointerDown.PointerUp.PointerClick............都会显示在面板上面 ...

  7. 踩坑系列《十一》完美解决阿里云vod视频点播无法播放音频和视频点播控制台里的媒资库里面的视频无法播放

    刚开始项目部署的时候,音频还是正常播放,后面直接报了 获取m3u8文件失败(manifestLoadError) 的错误,原因是 我的域名 xxx.com 这个域名没有解析到点播提供的CNAME上,所 ...

  8. java8的新特性之lambda表达式和方法引用

    1.1. Lambda表达式 通过具体的实例去体会lambda表达式对于我们代码的简化,其实我们不去深究他的底层原理和背景,仅仅从用法上去理解,关注两方面: lambda表达式是Java8的一个语法糖 ...

  9. Java基础之(三):IDEA的安装及破解

    IDEA的安装 IDEA官网:IDEA 点击IJ 找好操作系统,点击下载 双击打开,自己找个安装路径 勾选这两个即可 旗舰版破解及汉化 上面是个人社区版,是免费的,但是如果想要使用汉化版的,需要寻找插 ...

  10. 【集成学习】:Stacking原理以及Python代码实现

    Stacking集成学习在各类机器学习竞赛当中得到了广泛的应用,尤其是在结构化的机器学习竞赛当中表现非常好.今天我们就来介绍下stacking这个在机器学习模型融合当中的大杀器的原理.并在博文的后面附 ...