4

I'm trying to understand what yum version of rpm -Uvh is. I found this question about that command and yum, but it doesn't have what I'm looking for. Looking at --help, would this be the equivalent of -Uvh?

$ yum -v update <package>

I'm using yum 3.2.22

3
  • Your Q makes little sense. These 2 tools serve very different purposes. -Uvh does an update, is verbose, and shows hashmarks when processing a file. YUM does hashmarks by default, update will update a particular package from the repo it was installed, and -v will make YUM verbose, similar to the -v in RPM.
    – slm
    Apr 19, 2014 at 23:55
  • @slm Isn't your comment actually an affirmative answer to the Q that "makes little sense"?
    – goldilocks
    Apr 20, 2014 at 9:46
  • @TAFKA'goldilocks' - perhaps, but then what was the Q?
    – slm
    Apr 20, 2014 at 11:12

2 Answers 2

3

Yum and RPM are complementary package managers.

Install Package

You can install a package with RPM like so

rpm -Uvh foo.rpm

You can install a package with YUM like so:

yum install foo

An explanation of rpm flags:

-i # Install, (will throw an error if already installed)
-U # Update (or install if not present), usually preferred over -i 
-v # verbose
-h # hash, basically just shows a pretty progress bar

Upgrade Package

You can upgrade a package with RPM the same way as installing packages

rpm -Uvh foo.rpm

You can upgrade a package with YUM like so:

yum update foo
0

There is no real equivalent. However, if you do try to install some software and an older version already exists, you SHOULD be prompted to update it.

2
  • Is the syntax above correct?
    – user3242205
    Apr 19, 2014 at 14:57
  • Try and see? Please read the rules of this site. Apr 19, 2014 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy