if you don’t specify the --
rpm -Uvh … does its standard thing of uninstalling the old package, followed by installing the new package . The uninstall activates the postinst package script, which has a function called cleanup_symlinks, that …. cleans the symlinks from /usr/bin to the embedded binaries, like knife and so on.
You can prevent this issue using either one of the following processes
rpm -Uvh —noscripts PACKAGE-2
rpm -e PACKAGE-1
rpm -ivh PACKAGE-2