Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Coming from an ubuntu perspective, if I want to check to see what additional packages will be installed/upgraded I can use apt-get --simulate install <package name>

Is there something similar for yum? Our Red hat box (yum) is our production server, so I would like to see exactly what will be happening before I actually install some package.

Couldn't really find a good solution, someone suggested:

yum --assumeno install <package name>

but this returned:

Command line error: no such option: --assumeno

yum version: 3.2.22

OS version: Red Hat Enterprise Linux Server release 5.6 (Tikanga)

Any ideas or suggestions would be welcome.

share|improve this question
up vote 13 down vote accepted

you can do a yum install without the -y switch (if you use it):

yum install <package>

this will grab a list of packages and dependancies required. Before installing it will ask you if you want to install or not, just answer no and no changes will be made.

Alternatively you can do

yum deplist <package>

to list all the dependancies of a package and see what needs to be installed without downloading or installing anything.

share|improve this answer
yum install isn't a reliable way to check dependencies as it will exit if there is a conflict. – taco Nov 14 '15 at 20:17

You can use the check-update option to yum to see if there is an update available for the package. It will tell you if there is an update available (and to what version) for the specified package.

So you could do something like:

yum check-update <package> 

to see the info for a specific package, and:

yum check-update

to see the info for the whole system.

share|improve this answer
Well in this case the package is not yet installed. – Michael Irey Mar 22 '12 at 17:03

yum's default behavior is to ask you yes/on before actually installing. There's an "--assumeyes" mainly because it bugs you with "yes/no" prompts.

For example:

# yum install s3cmd
# stuff removed
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package s3cmd.noarch 0:1.0.1-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package                    Arch                        Version                          Repository                 Size
 s3cmd                      noarch                      1.0.1-1.el6                      epel                       94 k

Transaction Summary
Install       1 Package(s)

Total download size: 94 k
Installed size: 320 k
Is this ok [y/N]: n

Similarly for just "yum update".

share|improve this answer
Simple, yet effective... – NcA Mar 22 '12 at 17:42
Your answer works as well. – Michael Irey Mar 22 '12 at 17:43

yum install --assumeno packagename

share|improve this answer
Still getting: Command line error: no such option: --assumeno – Michael Irey Mar 22 '12 at 17:04
maybe you need to upgrade your yum version. what is your OS? – johnshen64 Mar 22 '12 at 17:20
Just to note, yum on CentOS6 is 3.2.29, and doesn't support the --assumeno option. If he's running 3.2.22, it might be CentOS5 (or equivalent). – cjc Mar 22 '12 at 17:25
OS is: Red Hat Enterprise Linux Server release 5.6 (Tikanga) – Michael Irey Mar 22 '12 at 17:41
to fully simulate it, you could also consider installing it to an alternative directory, such as a chroot environment with --installroot=root. i would create a vm (kvm, virtualbox, vmplayer etc.) with the exact os and do the testing that way, before modifying the actual production OS. others have already suggested that by default yum does not do install until you answer yes, but that is a bit risky i think. – johnshen64 Mar 22 '12 at 17:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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