LPIC-1 Exam 101 v5 (Linux Administrator) — Question 60
What is true regarding the configuration of yum? (Choose two.)
Answer options
- A. Changes to the repository configuration become active after running yum confupdate
- B. Changes to the yum configuration become active after restarting the yumd service
- C. The configuration of package repositories can be divided into multiple files
- D. Repository configurations can include variables such as $basearch or $releasever
- E. In case /etc/yum.repos.d/ contains files, /etc/yum.conf is ignored
Correct answer: C, D
Explanation
Options C and D are correct because yum allows repository configurations to be split into multiple files for organization and can utilize variables such as $basearch and $releasever for dynamic configuration. Options A and B are incorrect as there is no yum command 'confupdate' and changes take effect immediately without requiring a restart of any service. Option E is also incorrect because if files are present in /etc/yum.repos.d/, it does not mean that /etc/yum.conf is ignored; both can be used together.