As we know yum is a package management system which was built on top of rpm. It's also a command line utility which is a(rudely speaking) broader version of rpm, it resolves many problems(the main is obviously dependencies) which rpm doesn't care of. Is there any particular case when using rpm command would be more appropriate than yum?
|
|
|||
|
|
|
|
|||||
|
|
In newer versions of yum the rpmdb isn't the only thing that is altered by transactions (installing or removing packages), so it's actively harmful to go behind yum and use rpm directly to do that ... and yum will complain at you, if you do that. The only thing that comes to mind that rpm can do and yum can't do is signing packages (rpm -K) ... but some operations might be slightly faster, and there are obviously just things people remember better/easier. |
|||
|
|
|
The other "appropriate" case is when you are trying to install/compile source-code and do not want to use (or do not have) root-privileges. As ordinary user you are not allowed to use yum for installation, while you can use rpm to install source-rpms into your local rpm-build-directory. |
|||
|
|
