I got confused between rpm -Fvh and rpm -Uvh
Can anybody explain the difference between rpm -Fvh and rpm -Uvh with example?
In what situations we need to use these two options?
which is a good practice in day to day life?
is there any similar options availabe in yum?
Hi both rpm -Fvh and rpm -Uvh will perform the same task but here the diff is rpm -Uvh is also same as rpm -ivh, you can use any of then i mean rpm -ivh or rpm -Uvh for installing the package.
But for upgrading the previously installed package you can use any of rpm -Fvh or rpm -Uvh
rpm -Fvh is used for upgrading the existing package (installed package)
rpm -Uvh is used for installing the package and upgrading the package as well