Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

linux local yum server on oracle linux 8

Tim Lin-OracleAug 25 2021

Hi Support:
IHAC follow the article https://oracle-base.com/articles/linux/create-a-local-yum-repository-for-oracle-linux-8 to create local yum repo on oracle linux 8.
But when clients to run dnf update it shows the following errors:
# dnf update
Last metadata expiration check: 0:20:33 ago on Sat 21 Aug 2021 10:32:34 PM CST.
Error:
Problem 1: package cockpit-bridge-238.2-1.0.2.el8.x86_64 conflicts with cockpit-storaged < 233 provided by cockpit-storaged-211.3-1.el8.noarch

  • cannot install the best update candidate for package cockpit-bridge-211.3-1.el8.x86_64
  • problem with installed package cockpit-storaged-211.3-1.el8.noarch
    Problem 2: cannot install both authselect-1.2.2-2.el8.x86_64 and authselect-1.1-2.el8.x86_64
  • package authselect-compat-1.1-2.el8.x86_64 requires authselect(x86-64) = 1.1-2.el8, but none of the providers can be installed
  • cannot install the best update candidate for package authselect-1.1-2.el8.x86_64
  • problem with installed package authselect-compat-1.1-2.el8.x86_64
    Problem 3: cannot install both binutils-2.30-93.0.2.el8.x86_64 and binutils-2.30-73.0.1.el8.x86_64
  • package binutils-devel-2.30-73.0.1.el8.x86_64 requires binutils = 2.30-73.0.1.el8, but none of the providers can be installed
  • cannot install the best update candidate for package binutils-2.30-73.0.1.el8.x86_64
  • problem with installed package binutils-devel-2.30-73.0.1.el8.x86_64
    Problem 4: cannot install both cups-libs-1:2.2.6-38.el8.x86_64 and cups-libs-1:2.2.6-33.el8.x86_64
  • package cups-1:2.2.6-33.el8.x86_64 requires cups-libs(x86-64) = 1:2.2.6-33.el8, but none of the providers can be installed
  • cannot install the best update candidate for package cups-libs-1:2.2.6-33.el8.x86_64
  • problem with installed package cups-1:2.2.6-33.el8.x86_64
    Problem 5: cannot install both dbus-daemon-1:1.12.8-12.0.2.el8_4.2.x86_64 and dbus-daemon-1:1.12.8-9.0.1.el8.x86_64
  • package dbus-x11-1:1.12.8-9.0.1.el8.x86_64 requires dbus-daemon = 1:1.12.8-9.0.1.el8, but none of the providers can be installed
  • cannot install the best update candidate for package dbus-daemon-1:1.12.8-9.0.1.el8.x86_64
  • problem with installed package dbus-x11-1:1.12.8-9.0.1.el8.x86_64
    Problem 6: cannot install both glusterfs-6.0-49.1.el8.x86_64 and glusterfs-6.0-20.el8.x86_64
  • package glusterfs-api-6.0-20.el8.x86_64 requires glusterfs(x86-64) = 6.0-20.el8, but none of the providers can be installed
  • cannot install the best update candidate for package glusterfs-6.0-20.el8.x86_64
  • problem with installed package glusterfs-api-6.0-20.el8.x86_64
    ….skip
    See doc https://www.oracle.com/technical-resources/articles/it-infrastructure/unbreakable-linux-network.html#prerequisites
    Prerequisites

Ensure you have the following prerequisites:

A server running Oracle Linux 6 (x86_64 only) or Oracle Linux 7.

Just want to know that oracle linux 8 support local repository or not ??

Thanks and Best Regards,
Tim

This post has been answered by Avi Miller-Oracle on Aug 26 2021
Jump to Answer

Comments

Avi Miller-Oracle

Hey Tim,
Oracle Linux 8 can support local repos, but it looks like you may have a configuration error.
Can you please provide the output of dnf repolist from this box?
Thanks!

Avi Miller-Oracle

Also, I just reviewed the Oracle-Base article you used as a reference and it is not correct. The repos it creates are not complete.
If you want to sync from yum.oracle.com, just run the following for each repo:

$ dnf reposync --repoid=ol8_baseos_latest --remote-time --download-metadata --downloadcomps --delete --gpgcheck --download-path /path/to/local/repo

That's it. Do not run createrepo or anything else. The reposync process will grab all the required metadata as well. You only need to change ol8_baseos_latest for each repo you want to sync.

Tim Lin-Oracle

Hi Avi:
The output from my local yum server ol84yum:
[root@ol84yum /]# dnf repolist
repo id repo name
ol8_UEKR6 Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)
ol8_addons Oracle Linux 8 Addons (x86_64)
ol8_appstream Oracle Linux 8 Application Stream (x86_64)
ol8_baseos_latest Oracle Linux 8 BaseOS Latest (x86_64)
ol8_u2_baseos_base Oracle Linux 8.2 BaseOS (x86_64)
ol8_u4_baseos_base Oracle Linux 8.4 BaseOS (x86_64)
[root@ol84yum /]#
Actually, I want to use ol84yum as my local yum server and the problem is occurred on my client.
From my client dnf repolist is following:
[root@localhost ~]# dnf repolist
repo id repo name
local_ol8_UEKR6 Latest Unbreakable Enterprise Kernel for Oracle Linux 8 (x86_64)
local_ol8_addons Oracle Linux 8 Addons (x86_64)
local_ol8_appstream Oracle Linux 8 Application Stream (x86_64)
local_ol8_baseos_latest Oracle Linux 8 Latest (x86_64)
local_ol8_u4_baseos_base Oracle Linux 8.4 BaseOS (x86_64)
========================================================================
Base on your word, if I want to use ol84yum as local yum server for my environment. I just use your command to sync repo in my ol84yum and config httpd for other clients, right ?
Thanks and Best Regards,
Tim

Avi Miller-Oracle
Answer

Yes, but keep in mind this will create huge local repos that only get bigger over time. Because of modularity, the AppStream repo has to contain all versions of the modular packages. You can't just keep the latest.
Right now, AppStream requires 225GB of storage, while baseos_latest only needs 25GB.

Marked as Answer by Tim Lin-Oracle · Aug 26 2021
Tim Lin-Oracle

Hi Avi:
Many thanks for your answer. Now I am syncing the repository with -x '*.src' options and I am downloading appstream around 49%.
My filesystem currently is following:
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 150G 43G 108G 29% /u01
I think it should be ok currently. I will test the client after download all of the repositories to see if it is ok or not.
Thanks and Best Regards,
Tim

1 - 5

Post Details

Added on Aug 25 2021
5 comments
2,660 views