LPI Exam Questions

How can you update a package only if an earlier version is currently installed on the system?

How can you update a package only if an earlier version is currently installed on the system?

A.
rpm –update rpmname

B.
rpm -U rpmname

C.
rpm -F rpmname

D.
rpm –force rpmname

E.
rpm -u rpmname

Explanation/Reference:
rpm -F, –freshen <package>
updates <package>, but only if the package is currently installed.
rpm -U, –upgrade <package>
updates <package> regardless if the package is installed or not.
–force only works in combination with installing or upgrading. -u is an invalid option, as is –update