yum安装命令回滚彻底删除安装的依赖包

yum命令安装一个软件包是会连同依赖包一起安装

但是yum remove卸载时却只卸载这个文件包本身,如果需要删除安装时附加的依赖包可以使用yum history的相关操作实现回滚

 

 

[root@bogon opt]# yum history list eclipse-pde
Loaded plugins: fastestmirror, presto, priorities, refresh-packagekit, security
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
   176 | user               | 2017-02-19 15:01 | Install        |   58   
    73 | user               | 2014-03-26 23:30 | Erase          |  106   
     1 | System            | 2014-01-14 08:39 | Install        | 1515   
history list

[root@bogon opt]# yum history undo 176
Loaded plugins: fastestmirror, presto, priorities, refresh-packagekit, security
Undoing transaction 176, from Sun Feb 19 15:01:19 2017
    Dep-Install ant-1.7.1-15.el6.i686                                    @base
    Dep-Install ant-antlr-1.7.1-15.el6.i686                              @base
    Dep-Install ant-apache-bcel-1.7.1-15.el6.i686                        @base
    Dep-Install ant-apache-bsf-1.7.1-15.el6.i686                         @base
    Dep-Install ant-apache-log4j-1.7.1-15.el6.i686                       @base
    Dep-Install ant-apache-oro-1.7.1-15.el6.i686                         @base
    Dep-Install ant-apache-regexp-1.7.1-15.el6.i686                      @base
    Dep-Install ant-apache-resolver-1.7.1-15.el6.i686                    @base
    Dep-Install ant-commons-logging-1.7.1-15.el6.i686                    @base
    Dep-Install ant-commons-net-1.7.1-15.el6.i686                        @base
    Dep-Install ant-javamail-1.7.1-15.el6.i686                           @base
    Dep-Install ant-jdepend-1.7.1-15.el6.i686                            @base
    Dep-Install ant-jsch-1.7.1-15.el6.i686                               @base
    Dep-Install ant-junit-1.7.1-15.el6.i686                              @base
    Dep-Install ant-nodeps-1.7.1-15.el6.i686                             @base
    Dep-Install ant-swing-1.7.1-15.el6.i686                              @base
    Dep-Install ant-trax-1.7.1-15.el6.i686                               @base
    Dep-Install apache-jasper-5.5.28-3.el6.noarch                        @base
    Dep-Install axis-1.2.1-7.5.el6_5.noarch                              @base
    Dep-Install bcel-5.2-7.2.el6.i686                                    @base
    Dep-Install bsf-2.4.0-4.1.el6.noarch                                 @base
    Dep-Install classpathx-jaf-1.0-15.4.el6.i686                         @base
    Dep-Install classpathx-mail-1.1.1-9.4.el6.noarch                     @base
    Dep-Install ecj-1:3.4.2-6.el6.i686                                   @base
    Dep-Install eclipse-jdt-1:3.6.1-6.13.el6.i686                        @base
    Install     eclipse-pde-1:3.6.1-6.13.el6.i686                        @base
    Dep-Install eclipse-platform-1:3.6.1-6.13.el6.i686                   @base
    Dep-Install eclipse-rcp-1:3.6.1-6.13.el6.i686                        @base
    Dep-Install geronimo-specs-1.0-3.5.M2.el6.noarch                     @base
    Dep-Install geronimo-specs-compat-1.0-3.5.M2.el6.noarch              @base
    Dep-Install hamcrest-1.1-9.5.el6.i686                                @base
    Dep-Install jakarta-commons-codec-1.3-11.7.el6.i686                  @base
    Dep-Install jakarta-commons-httpclient-1:3.1-0.9.el6_5.i686          @base
    Dep-Install jakarta-commons-net-2.0-2.1.el6.noarch                   @base
    Dep-Install jakarta-oro-2.0.8-6.6.el6.i686                           @base
    Dep-Install java-1.5.0-gcj-1.5.0.0-29.1.el6.i686                     @base
    Dep-Install java-1.6.0-openjdk-1:1.6.0.41-1.13.13.1.el6_8.i686       @updates
    Dep-Install java-1.6.0-openjdk-devel-1:1.6.0.41-1.13.13.1.el6_8.i686 @updates
    Dep-Install java-1.7.0-openjdk-devel-1:1.7.0.131-2.6.9.0.el6_8.i686  @updates
    Dep-Install java_cup-1:0.10k-5.el6.i686                              @base
    Dep-Install jetty-eclipse-6.1.24-2.el6.noarch                        @base
    Dep-Install jsch-0.1.41-2.2.el6.noarch                               @base
    Dep-Install junit-3.8.2-6.5.el6.i686                                 @base
    Dep-Install junit4-4.5-5.4.el6.noarch                                @base
    Dep-Install jzlib-1.0.7-7.5.el6.i686                                 @base
    Dep-Install log4j-1.2.14-6.4.el6.i686                                @base
    Dep-Install mx4j-1:3.0.1-9.13.el6.noarch                             @base
    Dep-Install objectweb-asm-3.2-2.1.el6.noarch                         @base
    Dep-Install qdox-1.9.2-2.el6.noarch                                  @base
    Dep-Install regexp-1.5-4.4.el6.i686                                  @base
    Dep-Install sat4j-2.2.0-4.0.el6.noarch                               @base
    Dep-Install sinjdoc-0.5-9.1.el6.i686                                 @base
    Dep-Install slf4j-1.5.8-8.el6.noarch                                 @base
    Dep-Install wsdl4j-1.5.2-7.8.el6.noarch                              @base
    Dep-Install xalan-j2-2.7.0-9.9.el6_5.noarch                          @base
    Dep-Install xerces-j2-2.7.1-12.7.el6_5.i686                          @base
    Dep-Install xml-commons-apis-1.3.04-3.6.el6.i686                     @base
    Dep-Install xml-commons-resolver-1.1-4.18.el6.i686                   @base
Resolving Dependencies
--> Running transaction check
---> Package ant.i686 0:1.7.1-15.el6 will be erased
---> Package ant-antlr.i686 0:1.7.1-15.el6 will be erased
---> Package ant-apache-bcel.i686 0:1.7.1-15.el6 will be erased
---> Package ant-apache-bsf.i686 0:1.7.1-15.el6 will be erased
---> Package ant-apache-log4j.i686 0:1.7.1-15.el6 will be erased
---> Package ant-apache-oro.i686 0:1.7.1-15.el6 will be erased
---> Package ant-apache-regexp.i686 0:1.7.1-15.el6 will be erased
---> Package ant-apache-resolver.i686 0:1.7.1-15.el6 will be erased
---> Package ant-commons-logging.i686 0:1.7.1-15.el6 will be erased
---> Package ant-commons-net.i686 0:1.7.1-15.el6 will be erased
---> Package ant-javamail.i686 0:1.7.1-15.el6 will be erased
---> Package ant-jdepend.i686 0:1.7.1-15.el6 will be erased
---> Package ant-jsch.i686 0:1.7.1-15.el6 will be erased
---> Package ant-junit.i686 0:1.7.1-15.el6 will be erased
---> Package ant-nodeps.i686 0:1.7.1-15.el6 will be erased
---> Package ant-swing.i686 0:1.7.1-15.el6 will be erased
---> Package ant-trax.i686 0:1.7.1-15.el6 will be erased
---> Package apache-jasper.noarch 0:5.5.28-3.el6 will be erased
---> Package axis.noarch 0:1.2.1-7.5.el6_5 will be erased
---> Package bcel.i686 0:5.2-7.2.el6 will be erased
---> Package bsf.noarch 0:2.4.0-4.1.el6 will be erased
---> Package classpathx-jaf.i686 0:1.0-15.4.el6 will be erased
---> Package classpathx-mail.noarch 0:1.1.1-9.4.el6 will be erased
---> Package ecj.i686 1:3.4.2-6.el6 will be erased
---> Package eclipse-jdt.i686 1:3.6.1-6.13.el6 will be erased
---> Package eclipse-pde.i686 1:3.6.1-6.13.el6 will be erased
---> Package eclipse-platform.i686 1:3.6.1-6.13.el6 will be erased
---> Package eclipse-rcp.i686 1:3.6.1-6.13.el6 will be erased
---> Package geronimo-specs.noarch 0:1.0-3.5.M2.el6 will be erased
---> Package geronimo-specs-compat.noarch 0:1.0-3.5.M2.el6 will be erased
---> Package hamcrest.i686 0:1.1-9.5.el6 will be erased
---> Package jakarta-commons-codec.i686 0:1.3-11.7.el6 will be erased
---> Package jakarta-commons-httpclient.i686 1:3.1-0.9.el6_5 will be erased
---> Package jakarta-commons-net.noarch 0:2.0-2.1.el6 will be erased
---> Package jakarta-oro.i686 0:2.0.8-6.6.el6 will be erased
---> Package java-1.5.0-gcj.i686 0:1.5.0.0-29.1.el6 will be erased
---> Package java-1.6.0-openjdk.i686 1:1.6.0.41-1.13.13.1.el6_8 will be erased
---> Package java-1.6.0-openjdk-devel.i686 1:1.6.0.41-1.13.13.1.el6_8 will be erased
---> Package java-1.7.0-openjdk-devel.i686 1:1.7.0.131-2.6.9.0.el6_8 will be erased
---> Package java_cup.i686 1:0.10k-5.el6 will be erased
---> Package jetty-eclipse.noarch 0:6.1.24-2.el6 will be erased
---> Package jsch.noarch 0:0.1.41-2.2.el6 will be erased
---> Package junit.i686 0:3.8.2-6.5.el6 will be erased
---> Package junit4.noarch 0:4.5-5.4.el6 will be erased
---> Package jzlib.i686 0:1.0.7-7.5.el6 will be erased
---> Package log4j.i686 0:1.2.14-6.4.el6 will be erased
---> Package mx4j.noarch 1:3.0.1-9.13.el6 will be erased
---> Package objectweb-asm.noarch 0:3.2-2.1.el6 will be erased
---> Package qdox.noarch 0:1.9.2-2.el6 will be erased
---> Package regexp.i686 0:1.5-4.4.el6 will be erased
---> Package sat4j.noarch 0:2.2.0-4.0.el6 will be erased
---> Package sinjdoc.i686 0:0.5-9.1.el6 will be erased
---> Package slf4j.noarch 0:1.5.8-8.el6 will be erased
---> Package wsdl4j.noarch 0:1.5.2-7.8.el6 will be erased
---> Package xalan-j2.noarch 0:2.7.0-9.9.el6_5 will be erased
---> Package xerces-j2.i686 0:2.7.1-12.7.el6_5 will be erased
---> Package xml-commons-apis.i686 0:1.3.04-3.6.el6 will be erased
---> Package xml-commons-resolver.i686 0:1.1-4.18.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch   Version                       Repository
                                                                           Size
================================================================================
Removing:
 ant                        i686   1.7.1-15.el6                  @base    5.4 M
 ant-antlr                  i686   1.7.1-15.el6                  @base     34 k
 ant-apache-bcel            i686   1.7.1-15.el6                  @base     34 k
 ant-apache-bsf             i686   1.7.1-15.el6                  @base     23 k
 ant-apache-log4j           i686   1.7.1-15.el6                  @base     19 k
 ant-apache-oro             i686   1.7.1-15.el6                  @base    168 k
 ant-apache-regexp          i686   1.7.1-15.el6                  @base     19 k
 ant-apache-resolver        i686   1.7.1-15.el6                  @base     21 k
 ant-commons-logging        i686   1.7.1-15.el6                  @base     23 k
 ant-commons-net            i686   1.7.1-15.el6                  @base    194 k
 ant-javamail               i686   1.7.1-15.el6                  @base     33 k
 ant-jdepend                i686   1.7.1-15.el6                  @base     72 k
 ant-jsch                   i686   1.7.1-15.el6                  @base    123 k
 ant-junit                  i686   1.7.1-15.el6                  @base    387 k
 ant-nodeps                 i686   1.7.1-15.el6                  @base    1.6 M
 ant-swing                  i686   1.7.1-15.el6                  @base     35 k
 ant-trax                   i686   1.7.1-15.el6                  @base     94 k
 apache-jasper              noarch 5.5.28-3.el6                  @base    1.9 M
 axis                       noarch 1.2.1-7.5.el6_5               @base    1.6 M
 bcel                       i686   5.2-7.2.el6                   @base     15 M
 bsf                        noarch 2.4.0-4.1.el6                 @base    121 k
 classpathx-jaf             i686   1.0-15.4.el6                  @base    182 k
 classpathx-mail            noarch 1.1.1-9.4.el6                 @base    822 k
 ecj                        i686   1:3.4.2-6.el6                 @base    5.7 M
 eclipse-jdt                i686   1:3.6.1-6.13.el6              @base     26 M
 eclipse-pde                i686   1:3.6.1-6.13.el6              @base     93 M
 eclipse-platform           i686   1:3.6.1-6.13.el6              @base     33 M
 eclipse-rcp                i686   1:3.6.1-6.13.el6              @base    9.4 M
 geronimo-specs             noarch 1.0-3.5.M2.el6                @base    174 k
 geronimo-specs-compat      noarch 1.0-3.5.M2.el6                @base    0.0  
 hamcrest                   i686   1.1-9.5.el6                   @base    541 k
 jakarta-commons-codec      i686   1.3-11.7.el6                  @base    185 k
 jakarta-commons-httpclient i686   1:3.1-0.9.el6_5               @base    1.3 M
 jakarta-commons-net        noarch 2.0-2.1.el6                   @base    211 k
 jakarta-oro                i686   2.0.8-6.6.el6                 @base    367 k
 java-1.5.0-gcj             i686   1.5.0.0-29.1.el6              @base    140 k
 java-1.6.0-openjdk         i686   1:1.6.0.41-1.13.13.1.el6_8    @updates  73 M
 java-1.6.0-openjdk-devel   i686   1:1.6.0.41-1.13.13.1.el6_8    @updates  20 M
 java-1.7.0-openjdk-devel   i686   1:1.7.0.131-2.6.9.0.el6_8     @updates  36 M
 java_cup                   i686   1:0.10k-5.el6                 @base    426 k
 jetty-eclipse              noarch 6.1.24-2.el6                  @base    857 k
 jsch                       noarch 0.1.41-2.2.el6                @base    209 k
 junit                      i686   3.8.2-6.5.el6                 @base    552 k
 junit4                     noarch 4.5-5.4.el6                   @base    237 k
 jzlib                      i686   1.0.7-7.5.el6                 @base    263 k
 log4j                      i686   1.2.14-6.4.el6                @base    1.4 M
 mx4j                       noarch 1:3.0.1-9.13.el6              @base    1.7 M
 objectweb-asm              noarch 3.2-2.1.el6                   @base    423 k
 qdox                       noarch 1.9.2-2.el6                   @base    183 k
 regexp                     i686   1.5-4.4.el6                   @base    190 k
 sat4j                      noarch 2.2.0-4.0.el6                 @base    357 k
 sinjdoc                    i686   0.5-9.1.el6                   @base    2.0 M
 slf4j                      noarch 1.5.8-8.el6                   @base    143 k
 wsdl4j                     noarch 1.5.2-7.8.el6                 @base    339 k
 xalan-j2                   noarch 2.7.0-9.9.el6_5               @base    1.9 M
 xerces-j2                  i686   2.7.1-12.7.el6_5              @base    6.0 M
 xml-commons-apis           i686   1.3.04-3.6.el6                @base    1.1 M
 xml-commons-resolver       i686   1.1-4.18.el6                  @base    311 k

Transaction Summary
================================================================================
Remove       58 Package(s)

Installed size: 344 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : 1:eclipse-pde-3.6.1-6.13.el6.i686                           1/58 
  Erasing    : 1:eclipse-jdt-3.6.1-6.13.el6.i686                           2/58 
  Erasing    : 1:eclipse-platform-3.6.1-6.13.el6.i686                      3/58 
  Erasing    : jetty-eclipse-6.1.24-2.el6.noarch                           4/58 
  Erasing    : ant-javamail-1.7.1-15.el6.i686                              5/58 
  Erasing    : ant-apache-bcel-1.7.1-15.el6.i686                           6/58 
  Erasing    : ant-apache-bsf-1.7.1-15.el6.i686                            7/58 
  Erasing    : ant-apache-log4j-1.7.1-15.el6.i686                          8/58 
  Erasing    : ant-apache-oro-1.7.1-15.el6.i686                            9/58 
  Erasing    : ant-apache-regexp-1.7.1-15.el6.i686                        10/58 
  Erasing    : ant-apache-resolver-1.7.1-15.el6.i686                      11/58 
  Erasing    : ant-commons-net-1.7.1-15.el6.i686                          12/58 
  Erasing    : ant-jsch-1.7.1-15.el6.i686                                 13/58 
  Erasing    : ant-junit-1.7.1-15.el6.i686                                14/58 
  Erasing    : ant-trax-1.7.1-15.el6.i686                                 15/58 
  Erasing    : jakarta-commons-net-2.0-2.1.el6.noarch                     16/58 
  Erasing    : apache-jasper-5.5.28-3.el6.noarch                          17/58 
  Erasing    : ant-antlr-1.7.1-15.el6.i686                                18/58 
  Erasing    : ant-commons-logging-1.7.1-15.el6.i686                      19/58 
  Erasing    : ant-jdepend-1.7.1-15.el6.i686                              20/58 
  Erasing    : junit4-4.5-5.4.el6.noarch                                  21/58 
  Erasing    : hamcrest-1.1-9.5.el6.i686                                  22/58 
  Erasing    : qdox-1.9.2-2.el6.noarch                                    23/58 
  Erasing    : ant-nodeps-1.7.1-15.el6.i686                               24/58 
  Erasing    : 1:ecj-3.4.2-6.el6.i686                                     25/58 
  Erasing    : jakarta-oro-2.0.8-6.6.el6.i686                             26/58 
  Erasing    : junit-3.8.2-6.5.el6.i686                                   27/58 
  Erasing    : jsch-0.1.41-2.2.el6.noarch                                 28/58 
  Erasing    : jzlib-1.0.7-7.5.el6.i686                                   29/58 
  Erasing    : bsf-2.4.0-4.1.el6.noarch                                   30/58 
  Erasing    : xalan-j2-2.7.0-9.9.el6_5.noarch                            31/58 
  Erasing    : geronimo-specs-compat-1.0-3.5.M2.el6.noarch                32/58 
  Erasing    : geronimo-specs-1.0-3.5.M2.el6.noarch                       33/58 
  Erasing    : 1:mx4j-3.0.1-9.13.el6.noarch                               34/58 
  Erasing    : axis-1.2.1-7.5.el6_5.noarch                                35/58 
  Erasing    : classpathx-mail-1.1.1-9.4.el6.noarch                       36/58 
  Erasing    : log4j-1.2.14-6.4.el6.i686                                  37/58 
  Erasing    : wsdl4j-1.5.2-7.8.el6.noarch                                38/58 
  Erasing    : bcel-5.2-7.2.el6.i686                                      39/58 
  Erasing    : regexp-1.5-4.4.el6.i686                                    40/58 
  Erasing    : classpathx-jaf-1.0-15.4.el6.i686                           41/58 
  Erasing    : 1:jakarta-commons-httpclient-3.1-0.9.el6_5.i686            42/58 
  Erasing    : slf4j-1.5.8-8.el6.noarch                                   43/58 
  Erasing    : ant-swing-1.7.1-15.el6.i686                                44/58 
  Erasing    : ant-1.7.1-15.el6.i686                                      45/58 
  Erasing    : xerces-j2-2.7.1-12.7.el6_5.i686                            46/58 
  Erasing    : xml-commons-resolver-1.1-4.18.el6.i686                     47/58 
  Erasing    : 1:eclipse-rcp-3.6.1-6.13.el6.i686                          48/58 
  Erasing    : jakarta-commons-codec-1.3-11.7.el6.i686                    49/58 
  Erasing    : sat4j-2.2.0-4.0.el6.noarch                                 50/58 
  Erasing    : objectweb-asm-3.2-2.1.el6.noarch                           51/58 
  Erasing    : xml-commons-apis-1.3.04-3.6.el6.i686                       52/58 
  Erasing    : 1:java_cup-0.10k-5.el6.i686                                53/58 
  Erasing    : sinjdoc-0.5-9.1.el6.i686                                   54/58 
  Erasing    : java-1.5.0-gcj-1.5.0.0-29.1.el6.i686                       55/58 
  Erasing    : 1:java-1.7.0-openjdk-devel-1.7.0.131-2.6.9.0.el6_8.i686    56/58 
  Erasing    : 1:java-1.6.0-openjdk-devel-1.6.0.41-1.13.13.1.el6_8.i686   57/58 
  Erasing    : 1:java-1.6.0-openjdk-1.6.0.41-1.13.13.1.el6_8.i686         58/58 
  Verifying  : geronimo-specs-1.0-3.5.M2.el6.noarch                        1/58 
  Verifying  : apache-jasper-5.5.28-3.el6.noarch                           2/58 
  Verifying  : axis-1.2.1-7.5.el6_5.noarch                                 3/58 
  Verifying  : classpathx-mail-1.1.1-9.4.el6.noarch                        4/58 
  Verifying  : ant-apache-resolver-1.7.1-15.el6.i686                       5/58 
  Verifying  : ant-swing-1.7.1-15.el6.i686                                 6/58 
  Verifying  : bsf-2.4.0-4.1.el6.noarch                                    7/58 
  Verifying  : 1:jakarta-commons-httpclient-3.1-0.9.el6_5.i686             8/58 
  Verifying  : objectweb-asm-3.2-2.1.el6.noarch                            9/58 
  Verifying  : sinjdoc-0.5-9.1.el6.i686                                   10/58 
  Verifying  : ant-apache-bcel-1.7.1-15.el6.i686                          11/58 
  Verifying  : xml-commons-resolver-1.1-4.18.el6.i686                     12/58 
  Verifying  : 1:java_cup-0.10k-5.el6.i686                                13/58 
  Verifying  : junit-3.8.2-6.5.el6.i686                                   14/58 
  Verifying  : 1:java-1.6.0-openjdk-devel-1.6.0.41-1.13.13.1.el6_8.i686   15/58 
  Verifying  : ant-apache-oro-1.7.1-15.el6.i686                           16/58 
  Verifying  : jakarta-commons-codec-1.3-11.7.el6.i686                    17/58 
  Verifying  : qdox-1.9.2-2.el6.noarch                                    18/58 
  Verifying  : wsdl4j-1.5.2-7.8.el6.noarch                                19/58 
  Verifying  : ant-1.7.1-15.el6.i686                                      20/58 
  Verifying  : 1:mx4j-3.0.1-9.13.el6.noarch                               21/58 
  Verifying  : ant-apache-log4j-1.7.1-15.el6.i686                         22/58 
  Verifying  : bcel-5.2-7.2.el6.i686                                      23/58 
  Verifying  : 1:eclipse-jdt-3.6.1-6.13.el6.i686                          24/58 
  Verifying  : ant-apache-regexp-1.7.1-15.el6.i686                        25/58 
  Verifying  : xml-commons-apis-1.3.04-3.6.el6.i686                       26/58 
  Verifying  : junit4-4.5-5.4.el6.noarch                                  27/58 
  Verifying  : jakarta-oro-2.0.8-6.6.el6.i686                             28/58 
  Verifying  : regexp-1.5-4.4.el6.i686                                    29/58 
  Verifying  : 1:ecj-3.4.2-6.el6.i686                                     30/58 
  Verifying  : xalan-j2-2.7.0-9.9.el6_5.noarch                            31/58 
  Verifying  : log4j-1.2.14-6.4.el6.i686                                  32/58 
  Verifying  : jzlib-1.0.7-7.5.el6.i686                                   33/58 
  Verifying  : ant-jsch-1.7.1-15.el6.i686                                 34/58 
  Verifying  : 1:java-1.6.0-openjdk-1.6.0.41-1.13.13.1.el6_8.i686         35/58 
  Verifying  : java-1.5.0-gcj-1.5.0.0-29.1.el6.i686                       36/58 
  Verifying  : jsch-0.1.41-2.2.el6.noarch                                 37/58 
  Verifying  : ant-antlr-1.7.1-15.el6.i686                                38/58 
  Verifying  : ant-trax-1.7.1-15.el6.i686                                 39/58 
  Verifying  : ant-apache-bsf-1.7.1-15.el6.i686                           40/58 
  Verifying  : ant-junit-1.7.1-15.el6.i686                                41/58 
  Verifying  : hamcrest-1.1-9.5.el6.i686                                  42/58 
  Verifying  : geronimo-specs-compat-1.0-3.5.M2.el6.noarch                43/58 
  Verifying  : ant-commons-net-1.7.1-15.el6.i686                          44/58 
  Verifying  : ant-javamail-1.7.1-15.el6.i686                             45/58 
  Verifying  : ant-commons-logging-1.7.1-15.el6.i686                      46/58 
  Verifying  : sat4j-2.2.0-4.0.el6.noarch                                 47/58 
  Verifying  : classpathx-jaf-1.0-15.4.el6.i686                           48/58 
  Verifying  : ant-nodeps-1.7.1-15.el6.i686                               49/58 
  Verifying  : 1:eclipse-pde-3.6.1-6.13.el6.i686                          50/58 
  Verifying  : jetty-eclipse-6.1.24-2.el6.noarch                          51/58 
  Verifying  : 1:java-1.7.0-openjdk-devel-1.7.0.131-2.6.9.0.el6_8.i686    52/58 
  Verifying  : 1:eclipse-platform-3.6.1-6.13.el6.i686                     53/58 
  Verifying  : jakarta-commons-net-2.0-2.1.el6.noarch                     54/58 
  Verifying  : ant-jdepend-1.7.1-15.el6.i686                              55/58 
  Verifying  : slf4j-1.5.8-8.el6.noarch                                   56/58 
  Verifying  : xerces-j2-2.7.1-12.7.el6_5.i686                            57/58 
  Verifying  : 1:eclipse-rcp-3.6.1-6.13.el6.i686                          58/58 

Removed:
  ant.i686 0:1.7.1-15.el6                                                       
  ant-antlr.i686 0:1.7.1-15.el6                                                 
  ant-apache-bcel.i686 0:1.7.1-15.el6                                           
  ant-apache-bsf.i686 0:1.7.1-15.el6                                            
  ant-apache-log4j.i686 0:1.7.1-15.el6                                          
  ant-apache-oro.i686 0:1.7.1-15.el6                                            
  ant-apache-regexp.i686 0:1.7.1-15.el6                                         
  ant-apache-resolver.i686 0:1.7.1-15.el6                                       
  ant-commons-logging.i686 0:1.7.1-15.el6                                       
  ant-commons-net.i686 0:1.7.1-15.el6                                           
  ant-javamail.i686 0:1.7.1-15.el6                                              
  ant-jdepend.i686 0:1.7.1-15.el6                                               
  ant-jsch.i686 0:1.7.1-15.el6                                                  
  ant-junit.i686 0:1.7.1-15.el6                                                 
  ant-nodeps.i686 0:1.7.1-15.el6                                                
  ant-swing.i686 0:1.7.1-15.el6                                                 
  ant-trax.i686 0:1.7.1-15.el6                                                  
  apache-jasper.noarch 0:5.5.28-3.el6                                           
  axis.noarch 0:1.2.1-7.5.el6_5                                                 
  bcel.i686 0:5.2-7.2.el6                                                       
  bsf.noarch 0:2.4.0-4.1.el6                                                    
  classpathx-jaf.i686 0:1.0-15.4.el6                                            
  classpathx-mail.noarch 0:1.1.1-9.4.el6                                        
  ecj.i686 1:3.4.2-6.el6                                                        
  eclipse-jdt.i686 1:3.6.1-6.13.el6                                             
  eclipse-pde.i686 1:3.6.1-6.13.el6                                             
  eclipse-platform.i686 1:3.6.1-6.13.el6                                        
  eclipse-rcp.i686 1:3.6.1-6.13.el6                                             
  geronimo-specs.noarch 0:1.0-3.5.M2.el6                                        
  geronimo-specs-compat.noarch 0:1.0-3.5.M2.el6                                 
  hamcrest.i686 0:1.1-9.5.el6                                                   
  jakarta-commons-codec.i686 0:1.3-11.7.el6                                     
  jakarta-commons-httpclient.i686 1:3.1-0.9.el6_5                               
  jakarta-commons-net.noarch 0:2.0-2.1.el6                                      
  jakarta-oro.i686 0:2.0.8-6.6.el6                                              
  java-1.5.0-gcj.i686 0:1.5.0.0-29.1.el6                                        
  java-1.6.0-openjdk.i686 1:1.6.0.41-1.13.13.1.el6_8                            
  java-1.6.0-openjdk-devel.i686 1:1.6.0.41-1.13.13.1.el6_8                      
  java-1.7.0-openjdk-devel.i686 1:1.7.0.131-2.6.9.0.el6_8                       
  java_cup.i686 1:0.10k-5.el6                                                   
  jetty-eclipse.noarch 0:6.1.24-2.el6                                           
  jsch.noarch 0:0.1.41-2.2.el6                                                  
  junit.i686 0:3.8.2-6.5.el6                                                    
  junit4.noarch 0:4.5-5.4.el6                                                   
  jzlib.i686 0:1.0.7-7.5.el6                                                    
  log4j.i686 0:1.2.14-6.4.el6                                                   
  mx4j.noarch 1:3.0.1-9.13.el6                                                  
  objectweb-asm.noarch 0:3.2-2.1.el6                                            
  qdox.noarch 0:1.9.2-2.el6                                                     
  regexp.i686 0:1.5-4.4.el6                                                     
  sat4j.noarch 0:2.2.0-4.0.el6                                                  
  sinjdoc.i686 0:0.5-9.1.el6                                                    
  slf4j.noarch 0:1.5.8-8.el6                                                    
  wsdl4j.noarch 0:1.5.2-7.8.el6                                                 
  xalan-j2.noarch 0:2.7.0-9.9.el6_5                                             
  xerces-j2.i686 0:2.7.1-12.7.el6_5                                             
  xml-commons-apis.i686 0:1.3.04-3.6.el6                                        
  xml-commons-resolver.i686 0:1.1-4.18.el6                                      

Complete!
[root@bogon opt]# 


假如安装了ecliipse-pde现在后悔了想恢复到安装前的状态

yum history list eclipse-pde

 

可以看到操作历史的安装操作ID如176

然后

 

yum history undo 176

 

你可能感兴趣的:(#,Linux_env)