Examine the channel specification in the /etc/yum.repos.d/public-yum-016.repo file:
# head -6 /etc/yum.repos.d/public-yum-016.repo
[016_latest]
Name=Oracle Linux $releasever Latest ($basearch)
Baseurl=http://public-yum.oracle.com/repo/oracleLinux/OL6/latest/$basearch/
Gpgkey=http://public-yum.oracle.com/RPM-CPG-KEY-oracle-o16
Gpgcheck=1
Enabled=0
What is the effect of the enabled=0 setting?
A.
This channel is disabled and cannot be used by YUM at all.
B.
This channel will not be used by YUM when searching for packages.
C.
By default, YUM will not use this channel but this can be overridden on the command line.
D.
This channel will not be used by YUM when it searches for packages, but YUM will check if
updates exist for packages already installed from this channel.
Explanation:
Disable YUM Repo (Repository)
Disable YUM Repo
Edit repo file on /etc/yum.repos.d/ as root and change enabled to 0
## Change
enabled=1
## To
enabled=0
A
A is wrong.
The right answer is B.
You can list all (enable=1 and enable=0) repos with: yum repolist all
You can use a disabled repo at once with “yum –enablerepo= …”
C
B is right answer.
C
Answer : C
Reason : The –enablerepo option overides the permanent option set in the .repo file for only the current command. –disablerepo does the opposite for enabled repos.
B
To enable a channel, set the value of the enabled parameter for the channel to 1.
To disable a channel, set the value of the enabled parameter for the channel to 0.
Source: http://docs.oracle.com/cd/E37670_01/E48380/html/ol_sub_pubyum.html
from man yum
–enablerepo=repoidglob
Enables specific repositories by id or glob that have been dis‐
abled in the configuration file using the enabled=0 option.
Configuration Option: enabled
As Q is about yum and channels both answers B and C are correct.
Agree with you, B and C are both correct but for this question C is not correct.
It is not asking can you use that repo or not.. It is asking affect of enabled=0 settings
So answer is B