我最近尝试 yum 安装一个包,它更新(自动)更新我不想更新的 httpd、httpd-devel、httpd-tools 包。原因是这些是自定义包。
使用 运行yum history info <id>
,它显示:
...
Packages Altered:
...
Updated httpd-2.2.15-28.el6.centos.x86_64 @updates
Update 2.2.15-60.el6.centos.6.x86_64 @updates
Updated httpd-devel-2.2.15-28.el6.centos.x86_64 @updates
Update 2.2.15-60.el6.centos.6.x86_64 @updates
Updated httpd-tools-2.2.15-28.el6.centos.x86_64 @updates
Update 2.2.15-60.el6.centos.6.x86_64 @updates
...
Run Code Online (Sandbox Code Playgroud)
目前一切都像以前一样运行,我想我还没有执行任何重启。问题是,httpd 包是否已更改?如果是这样,有什么更好的方法可以恢复,因为这是生产环境,因此首选最短停机时间。