KB646014: Difference between revisions

From The LI AO Wiki
THIS>Liaochina
mNo edit summary
m Admin moved page Old Miraheze Wiki Pages:KB646014 to KB646014: This page from the old Miraheze wiki can be promulgated into this new wiki. Please note that some styles requires additional extensions.
 
(2 intermediate revisions by 2 users not shown)
Line 17: Line 17:
</syntaxhighlight>Because YUM automatically searches for every files under this directory and checks for every configuration entries, configuration of unused repositories must be turned off by purposing the option as shown in line 4 above.
</syntaxhighlight>Because YUM automatically searches for every files under this directory and checks for every configuration entries, configuration of unused repositories must be turned off by purposing the option as shown in line 4 above.


Then, add local filesystem-based repositories by specifying a file:/// URI:<syntaxhighlight lang="text">
Then, add local filesystem-based repositories by specifying a file:/// URI:<syntaxhighlight lang="text" line="1">
[BaseOS]
[BaseOS]
name=AlmaLinux - BaseOS
name=AlmaLinux - BaseOS

Latest revision as of 16:48, 29 September 2024


Introduction

This article introduces solution for configuring file-system based software repository to be used by the package manager YUM on systems running Red Hat Enterprise Linux 8 or an equivalent. From a default installation Web based repositories are used by the OS by downloading packages using HTTP.

Symptoms

Web-based repositories are used by the OS which may incur Internet data charges. A filesystem-based repository location needs to be specified instead to prevent additional connection charges from the Internet service provider.

Solution

Make sure to disable unused Web-based software repositories by changing "enabled=1" to "enabled=0" under every item in every file under the default YUM repositories configuration files, which usually comes at /etc/yum.repos.d/ . For example, to disable unused repository which downloads the manifest list from AlmaLinux's server, ensure configurations like this to be set up:<syntaxhighlight lang="text" line="1"> [BaseOS] name=AlmaLinux - BaseOS baseurl=https://nonexistenthosts.liao.media/repo/$releasever enabled=0 gpgkey=https://nonexistenthosts.liao.media/GPG-RHELRELEASE-1 gpgcheck=1 </syntaxhighlight>Because YUM automatically searches for every files under this directory and checks for every configuration entries, configuration of unused repositories must be turned off by purposing the option as shown in line 4 above.

Then, add local filesystem-based repositories by specifying a file:/// URI:<syntaxhighlight lang="text" line="1"> [BaseOS] name=AlmaLinux - BaseOS baseurl=file:///media/CDROM/RHELRELEASE-DVD-Everything-8.9/BaseOS enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ALMALINUX gpgcheck=1


</syntaxhighlight>Make sure the repodata folder is included under the path specified. This is essential for the software repository to be fetched.

By default path to GPG keys which authenticate the software publisher is already specified with a file-based URI, making sure the installation source can be independently verify the authenticity of the provided software from the repository. If not, please specify the path to where the GPG keys are located which contains the keychain that has the signing certificate included, or, disable the "gpgcheck" flag to disable key checking.