Comments (11)
This is being tracked as bug 31093269 internally. Thanks for the report.
from container-images.
bash-4.4# ls /etc/yum.repos.d/
oracle-linux-ol8.repo
from container-images.
bash-4.4# head -n6 /etc/yum.repos.d/oracle-linux-ol8.repo
[ol8_baseos_latest]
name=Oracle Linux 8 BaseOS Latest ($basearch)
baseurl=https://yum$ociregion.oracle.com/repo/OracleLinux/OL8/baseos/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
from container-images.
I am trying to install a rpm from a url using the 8-slim image. Microdnf apparently doesn't support this. I am able to install yum, but then all yum commands fail.
I would recommend using the oraclelinux:8
image if you want to install a third-party RPM (as it includes the full DNF client). However, this should work, so let's debug. Do you perhaps need to set a proxy to access yum.oracle.com
from this machine? If so, you should pass a build-time environment variable to set https_proxy
to the right value.
from container-images.
I don't think that's it because I can run the 8
image without the https_proxy.
from container-images.
Can you check the content of /etc/yum/vars/ociregion
on the 8-slim
image (after installing the full yum
client)? It should either be empty (if you're not on OCI) or contain a valid OCI region, e.g. -phx
or -syd
.
from container-images.
The file doesn't even exist.
from container-images.
touch
ing this file makes it work! Is this a bug or a necessary step?
from container-images.
It's half a bug. :) Let me review this with engineering and get back to you. Glad we have a workaround for now though.
from container-images.
Also out of curiosity is there a way to get this to work with dnf
? Based on the docs I've read, dnf relies on either a [repository]
section in /etc/dnf/dnf.conf
or uses /etc/yum.repos.d
. The latter isn't present if I don't install yum, and I can't figure out what I need to do to add ol8_baseos_latest
as a repo to dnf.
from container-images.
Sure, you can add something like this to /etc/dnf/dnf.conf
:
[ol8_baseos_latest]
name=BaseOS
baseurl=http://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64
[ol8_appstream_latest]
name=AppStream
baseurl=http://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64
Essentially, it's identical to the layout of the /etc/yum.repos.d/oracle-linux-ol8.repo
file, though you'd still need to move that one out of the way.
from container-images.
Related Issues (20)
- Can we apply the fixes for ELSA-2021-9528 and update the docker images? HOT 6
- Fix docker pull information on the Docker Hub HOT 3
- Cannot install packages on oraclelinux:8(-slim) HOT 2
- Apply ELSA-2022-4796, ELSA-2022-4799 to oraclelinux:8 HOT 1
- Public Key error installing kubctl using oraclelinux:8-slim as a basic image HOT 1
- jfrog reports several medium and low vulnerabilities for oraclelinux:8-slim HOT 1
- docker scan(synk) reports several HIGH vulnerabilities HOT 2
- stable tags of slim variants not available HOT 2
- OracleLinux:7 image having high vulnerabilities with openssl-libs as per Snyk HOT 1
- Yum commands fail HOT 1
- Package manager missing on 8-slim and 9-slim HOT 1
- oraclelinux/manifests/7-slim broken
- where can i download oraclelinux-9-amd64-rootfs.tar.xz HOT 2
- yum does not work in OL9 containers HOT 1
- README refers to microdnf and slim images HOT 1
- problem with repodata in OL8/baseos/latest for package libnghttp2-1.33.0-5.el8_9.x86_64.rpm HOT 2
- sh: sqlplus: command not found
- Why doesn't the official oraclelinx have any software, it doesn't even seem to have oracle installed, what's the point, HOT 2
- debuginfo files missing for OracleLinux 9.3 HOT 4
- Oraclelinux:8 container with port mapping failure
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from container-images.