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?
Why using rpm if there's yum?
yum;rpm
rpm is used to interact with the RPM database on your computer.  So you can look at the current state of the database, verify packages, check the dependencies of installed software, etc.yum uses rpm (actually, it uses an rpm python library) for much of its local operations, but it only can perform a limited number of the functions that the rpm command can perform, only related to the installation, updating and removal of software.  yum also can talk to local and remote software repositories, and generate dependency graphs to manage software packages, which rpm cannot.