PrepAway - Latest Free Exam Questions & Answers

Which of the following commands are used to remove a package from a Linux system?

Which of the following commands are used to remove a package from a Linux system?
Each correct answer represents a complete solution. Choose two.

PrepAway - Latest Free Exam Questions & Answers

A.
yum -rm packagename

B.
yum remove packagename

C.
yum -r packagename

D.
yum erase packagename

Explanation:

The yum remove packagename and yum erase packagename commands are used to remove a
specified package from a Linux system. If any packages depend on this package, yum will prompt
about this and give the option to remove those packages too.
Answer options A and C are incorrect. These commands are incorrect. The -r and -rm options are
not used with the yum command to remove a package from a Linux system.


Leave a Reply