Is there any difference between rpm and yum? I know the recent system prefer yum, but want to know if there is need for rpm also.
Yum is a package manager and rpms are the actual packages.
With yum you can add or remove software. The software itself comes within a rpm.
The package manager allows you to install the software from hosted repositories and it will usually install dependencies as well.