Is there a way to tell what yum would do "but not do it" for a given yum command?

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

Unless you have specified assumeyes (-y) it should already do this.

See the following as an example:

# 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]:
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.