我可以让 yum 告诉我使用“yum remove”命令会删除什么吗?

我可以让 yum 告诉我使用“yum remove”命令会删除什么吗?

有没有办法知道 yum 会做什么“但不要这么做”对于给定的 yum 命令?

答案1

除非您已指定assumeyes-y),否则它应该已经执行此操作了。

请参阅以下示例:

# yum remove python-devel
Loaded plugins: fastestmirror, presto
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package python-devel.x86_64 0:2.6.5-3.el6_0.2 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================
 Package                                     Arch                                  Version                                         Repository                               Size
=================================================================================================================================================================================
Removing:
 python-devel                                x86_64                                2.6.5-3.el6_0.2                                 @updates                                443 k

Transaction Summary
=================================================================================================================================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Is this ok [y/N]:

相关内容