#339 Modified 'Adding Repository' section to look like Enabling/Disabling
Closed 2 years ago by ankursinha. Opened 3 years ago by harshmangal.
fedora-docs/ harshmangal/quick-docs master  into  master

@@ -3,7 +3,10 @@ 

  

  This section describes how to add software repositories with the `dnf config-manager` command.

  

- Use the following commands as the `root` user or under the `sudo` utility.

+ [discrete]

+ = Procedure

+ 

+ * Use the following commands as the `root` user or under the `sudo` utility.

  

  . Define a new repository by adding a new file with the `.repo` suffix to the [filename]`/etc/yum.repos.d/` directory. For details about various options to use in the `.repo` file, see the xref:f{MAJOROSVER}@fedora:system-administrators-guide:package-management/DNF.adoc#sec-Setting_repository_Options[Setting [repository\] Options] section in the System Administrator's Guide

  
@@ -11,11 +14,11 @@ 

  +

  [literal,subs="+quotes,attributes"]

  ----

- dnf config-manager --add-repo _repository_

+ # dnf config-manager --add-repo _repository_

  ----

  +

  Replace `_repository_` with the path to the created `.repo` file, for example:

  +

  ----

- dnf config-manager --add-repo /etc/yum.repos.d/fedora_extras.repo

+ # dnf config-manager --add-repo /etc/yum.repos.d/fedora_extras.repo

  ----

Reviewed and Modified the section "Adding Repositories" as there was no "Procedure" keyword present which in other sections "Enabling" and "Disabling" have.

Metadata Update from @pbokoc:
- Request assigned

3 years ago

rebased onto 8b0ff0d

3 years ago

Hi, thanks for the PR. However, let's actually do the opposite of what you did, and remove the = Procedure heading and the # and $ prompts from command examples from the latter two sections as well, instead of adding them to the first one. Both are unnecessary and we've been slowly removing the prompts from other pages.

To make an update, just make another commit on the same branch and push it, it will automatically appear here.

Metadata Update from @pbokoc:
- Pull-request tagged with: needs changes

2 years ago

@harshmangal are you able to address the feedback on this pull request?

Closing this too, the changes suggested here have already been made to the page.

Pull-Request has been closed by ankursinha

2 years ago