A junior systems administrator is upgrading a package that was installed on a Red Hat-based system.
The administrator is tasked with the following: -> Update and install the new package.
-> Verify the new package version is installed.
Which of the following should be done to BEST accomplish these task? (Choose two.)
Click on the arrows to vote for the correct answer
A. B. C. D. E. F.AD.
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yumThe BEST options to accomplish the given tasks are A. yum install <package name> and D. rpm "qa". Here's why:
A. yum install <package name>:
This command installs the specified package or updates the package to the latest version available in the configured repositories. The administrator can use this command to update the package to a newer version or install a new package.
D. rpm "qa":
This command lists all installed packages on the system. The administrator can use this command to verify whether the new package version has been installed successfully or not.
Here's what the other options do and why they are not the best choices:
B. yum upgrade:
This command updates all the installed packages on the system to their latest available versions. While it will update the package to the latest version, it will also update all other packages installed on the system. This may not be desirable or necessary for the given task.
C. rpm "e <package name>:
This command removes the specified package from the system. It does not install or update a package.
E. apt-get <package name>:
This command is used in Debian-based systems, such as Ubuntu, not Red Hat-based systems. Therefore, it will not work on a Red Hat-based system.
F. apt-get upgrade:
This command is used in Debian-based systems, such as Ubuntu, not Red Hat-based systems. Therefore, it will not work on a Red Hat-based system. Additionally, like the "yum upgrade" command, it updates all the installed packages on the system, which may not be necessary or desirable for the given task.