nerdexam
CompTIA

XK0-005 · Question #373

A new packages repository named repo10 has been installed on mirror site. A Linux administrator wants to use this new repository for local package installations. In which of the following locations…

The correct answer is A. /etc/yum.reps.d/repo10.Repo. Yum or DNF repository configuration files are typically stored in the /etc/yum.repos.d/ directory, with each repository usually having a .repo extension.

System Management

Question

A new packages repository named repo10 has been installed on mirror site. A Linux administrator wants to use this new repository for local package installations. In which of the following locations should the administrator store the configuration information for the repo10 repository?

Options

  • A/etc/yum.reps.d/repo10.Repo
  • B/etc/yum_repo.d/repo10
  • C/etc/yum.reps.d/repo10
  • D/etc/yum.conf

How the community answered

(41 responses)
  • A
    90% (37)
  • B
    2% (1)
  • C
    2% (1)
  • D
    5% (2)

Why each option

Yum or DNF repository configuration files are typically stored in the `/etc/yum.repos.d/` directory, with each repository usually having a `.repo` extension.

A/etc/yum.reps.d/repo10.RepoCorrect

On Red Hat-based Linux systems, YUM (and DNF) repository configuration files are stored in the `/etc/yum.repos.d/` directory. Each individual repository configuration is usually defined in a separate file within this directory, conventionally ending with a `.repo` extension.

B/etc/yum_repo.d/repo10

`/etc/yum_repo.d/` is not the standard directory for yum repository configurations; the correct directory uses periods, not underscores. C: While the directory is close (`yum.reps.d` is likely a typo for `yum.repos.d`), a repository configuration file conventionally uses the `.repo` extension, which is missing here. D: `/etc/yum.conf` is the main global configuration file for yum, not the location for individual repository definitions.

C/etc/yum.reps.d/repo10
D/etc/yum.conf

Concept tested: YUM/DNF repository configuration

Source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sec-setting_up_yum_repositories

Topics

#Linux package management#YUM repository#Configuration files

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice