試験101-500J トピック5 問題26 スレッド

Lpi 101-500Jのリアル試験問題集
問題 #: 26
トピック #: 5
yumの構成に関してはどうなりますか? (2つ選択してください。)

おすすめの解答:C,D 解答を投票する

Explanation
The configuration of yum can be divided into multiple files, and repository configurations can include variables such as $basearch or $releasever. The main configuration file for yum is /etc/yum.conf, which contains the global options for yum and can also define repositories in the [repository] sections. However, it is recommended to define individual repositories in separate files in the /etc/yum.repos.d/ directory, which can be easier to manage and maintain. Each file in this directory should have a .repo extension and contain one or more [repository] sections with the repository name, URL, and other options12. Repository configurations can use yum variables to dynamically set values for certain options, such as the baseurl or the enabled. Yum variables are enclosed in curly braces and start with a dollar sign, such as {$basearch} or {$releasever}. These variables are replaced by their actual values at runtime, based on the system architecture, the operating system version, or other factors. Some of the common yum variables are34:
* $basearch: The base architecture of the system, such as x86_64, i386, or arm.
* $releasever: The release version of the operating system, such as 7, 8, or 9.
* $arch: The exact architecture of the system, such as x86_64, i686, or armv7hl.
* $uuid: A unique identifier for the system, generated by the product-id plugin.
* $YUM0-$YUM9: Custom variables that can be set by the user in the /etc/yum/vars/ directory or the
/etc/yum.conf file.
The other options are false or irrelevant. There is no yum confupdate command or yumd service, and changes to the yum configuration become active immediately after saving the files. The /etc/yum.conf file is not ignored if the /etc/yum.repos.d/ directory contains files, but the repository options in the /etc/yum.conf file can be overridden by the options in the .repo files. References:
* Linux Essentials - Linux Professional Institute Certification Programs1
* Exam 101 Objectives - Linux Professional Institute2
* How to Use Yum Variables to Enhance your Yum Experience - Red Hat ...3
* Yum Variables - CentOS4

Shimizu 2024-04-16 01:49:31

コメント

正解:
?」こちらは投票コメントになっております。普通のコメントに切り替えます。
ニックネーム: 送信 キャンセル
投票コメントをあげるごとに、選択した解答の投票数を1つ増やすことができます。

他人の解答コメントを賛成するのも、その解答に一票を入れることになります。したがって、すでに同じ意見の投票コメントが存在する場合、新規コメントをする代わりに賛成することもできます。

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡