Add new info about setting repositories for update checks
This commit is contained in:
parent
03f3e5b101
commit
0818bef3ca
9 changed files with 90 additions and 4 deletions
|
@ -0,0 +1,6 @@
|
|||
[id='why-it-is-important-keeping-your-system-up-to-date']
|
||||
= Why it is important keeping your system up-to-date
|
||||
|
||||
This section explains the importance of updating your system on a regular basis.
|
||||
|
||||
_TODO_
|
24
en-US/modules/proc_adding-repositories.adoc
Normal file
24
en-US/modules/proc_adding-repositories.adoc
Normal file
|
@ -0,0 +1,24 @@
|
|||
[id='adding-repositories']
|
||||
= Adding repositories
|
||||
|
||||
This section describes how to add software repositories with the `dnf config-manger` command.
|
||||
|
||||
[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 link:https://docs-old.fedoraproject.org/en-US/Fedora/26/html/System_Administrators_Guide/sec-Setting_repository_Options.html[Setting [repository\] Options] section in the System Administrator's Guide
|
||||
|
||||
. Add the newly created repository.
|
||||
+
|
||||
[literal,subs="+quotes,attributes"]
|
||||
----
|
||||
dnf config-manger --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
|
||||
----
|
20
en-US/modules/proc_disabling-repositories.adoc
Normal file
20
en-US/modules/proc_disabling-repositories.adoc
Normal file
|
@ -0,0 +1,20 @@
|
|||
[id='disabling-repositories']
|
||||
= Disabling repositories
|
||||
|
||||
This section shows how to disable a particular software repository by using the `dnf config-manager` command.
|
||||
|
||||
[discrete]
|
||||
= Procedure
|
||||
|
||||
* To disable a particular repository, use the following command as `root`.
|
||||
+
|
||||
[literal,subs="+quotes,attributes"]
|
||||
----
|
||||
dnf config-manager --set-disabled _repository_
|
||||
----
|
||||
+
|
||||
Replace _repository_ with the unique repository ID, for example:
|
||||
+
|
||||
----
|
||||
dnf config-manager --set-disabled fedora-extras
|
||||
----
|
20
en-US/modules/proc_enabling-repositories.adoc
Normal file
20
en-US/modules/proc_enabling-repositories.adoc
Normal file
|
@ -0,0 +1,20 @@
|
|||
[id='enabling-repositories']
|
||||
= Enabling repositories
|
||||
|
||||
This section shows how to enable a particular software repository by using the `dnf config-manager` command.
|
||||
|
||||
[discrete]
|
||||
= Procedure
|
||||
|
||||
* To enable a particular repository, use the following command as `root`.
|
||||
+
|
||||
[literal,subs="+quotes,attributes"]
|
||||
----
|
||||
dnf config-manager --set-enabled _repository_
|
||||
----
|
||||
+
|
||||
Replace _repository_ with the unique repository ID, for example:
|
||||
+
|
||||
----
|
||||
dnf config-manager --set-enabled fedora-extras
|
||||
----
|
|
@ -46,6 +46,7 @@ Created symlink /etc/systemd/system/basic.target.wants/dnf-automatic-download.ti
|
|||
|
||||
. Ensure that the timer has been successfully enabled and started:
|
||||
+
|
||||
[literal,subs="+quotes,attributes"]
|
||||
----
|
||||
# systemctl status _timer_
|
||||
----
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue