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
for ex: package-1.1 to package-1.2
In simple term we can say -
rpm -Fvh --> for upgrading the package which is installed on our Machine.
rpm -UVh --> for installation and upgrading both