You have mounted an Oracle Linux 6 ISO image (v33411-01.iso) on your system in the
/mnt/iso/OL6u3/Server directory. You want to use this image in your local yum repository
configuration file and enable it. Which yum repository configuration file has the correct entries to
use this image as a local repository?
A.
[ol6u3_base_media]
name=Oracle Linux 6 Media
baseurl=file:///mnt/iso/OL6u3/Server
gpgcheck=1
enabled=0
B.
[ol6u3_base_media]
name=Oracle Linux 6 Media
baseurl=file:///mnt/iso/V33411-01.iso
gpgcheck=1
enabled=1
C.
[ol6u3_base_media]
name=Oracle Linux 6 Media
baseurl=file:///mnt/iso/OL6u3/Server
gpgcheck=1
enabled=1
D.
[ol6u3_base_media]
name=Oracle Linux 6 Media
baseurl=http:///mnt/iso/OL6u3/Server
gpgcheck=1
enabled=1
Explanation:
Example:
Create a yum .repo file:cd /etc/yum.repos.d
cat > ol63iso.repo << EOF
[ol6_base_media]
name=Oracle Linux 6 Media
baseurl=file:///mnt/iso/ol63/Server
gpgcheck=0
enabled=1
EOF
#
Incorrect:
Not B: Specifiy the directory, not the iso file name.
Not C: Enabled should be 0, not 1.
Not D: Use file: not http: to specify the directory
To enable the repo you would have enabled=1, the answer should be C
enabled: When set to 1, yum uses the repository. The repository is disabled if set to 0. hence the correct answer is only C
d is the right answer
No, because the protocol is file:// to identify local repositories, not http://
And ENABLED on yum repos is 1 not 0, as the explanation of this answer is way wrong
A is correct answer
No its not. The correct answer is C.
From the RH Consumer Portal:
enabled=value
This is a simple way to tell yum to use or ignore a particular repository, value is one of:
0 — Do not include this repository as a package source when performing updates and installs. This is an easy way of quickly turning repositories on and off, which is useful when you desire a single package from a repository that you do not want to enable for updates or installs.
1 — Include this repository as a package source.
Anser is C