Which command will update an rpm package? (Choose two.)
Correct answers: rpm -F package_name.rpm; rpm -U package_name.rpm
The rpm -F (freshen) command updates only packages that are already installed on the system, making it safer for updating existing software without accidentally installing new packages. The rpm -U (upgrade) command will either install a new package if it doesn't exist or upgrade it if already present. Other options like rpm -e (erase), rpm -q (query), and rpm -i (install) perform different functions. Both -F and -U are correct for updating packages, with -F being more conservative. Reference: http://www.rpm.org/max-rpm/rpm.8.html
The rpm -U (upgrade) command installs the package if not present or upgrades it if already installed, making it suitable for package updates. The rpm -F (freshen) command only updates packages that are already installed, making it safer for updating existing software. Other options like rpm -e (erase), rpm -q (query), and rpm -i (install) serve different purposes. Both -U and -F are valid for updating packages, with -U being more flexible. Reference: http://www.rpm.org/max-rpm/rpm.8.html