Skip to Main Content

General Development Discussions

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!

GCC-Toolset 15 in Oracle Linux 8

32735194 days ago

According to https://docs.oracle.com/en/operating-systems/oracle-linux/product-lifecycle/OL-PRODUCT-LIFECYCLE.pdf , Table 2-6, GCC-Toolset 15 is available in application stream of Oracle Linux 8.10 .

However, with Dockerfile like this:

FROM oraclelinux:8.10

RUN dnf install gcc-toolset-15

ENTRYPOINT ["/bin/bash"]

And and docker build command

docker build -t gcc-docker .

It fails to find gcc-toolset-15 with below error message. However, if I replace it with gcc-toolset-14 , it works fine.

How should I install GCC Toolset 15 to Oracle Linux 8.10 ?

Thanks.

[+] Building 46.6s (5/5) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 177B 0.0s
=> [internal] load metadata for docker.io/library/oraclelinux:8.10 2.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> CACHED [1/2] FROM docker.io/library/oraclelinux:8.10@sha256:27d980babfa4742ea97e189b781fff41a18ebc7db4e5de316152338858a34b9e 0.0s
=> ERROR [2/2] RUN dnf install gcc-toolset-15 44.5s
------
> [2/2] RUN dnf install gcc-toolset-15:
11.11 Oracle Linux 8 BaseOS Latest (x86_64) 11 MB/s | 115 MB 00:10
31.72 Oracle Linux 8 Application Stream (x86_64) 10 MB/s | 73 MB 00:07
41.43 Last metadata expiration check: 0:00:14 ago on Thu Oct 2 09:18:37 2025.
44.32 No match for argument: gcc-toolset-15
44.39 Error: Unable to find a match: gcc-toolset-15
------
Dockerfile:3
--------------------
1 | FROM oraclelinux:8.10
2 |
3 | >>> RUN dnf install gcc-toolset-15
4 |
5 | ENTRYPOINT ["/bin/bash"]
--------------------
ERROR: failed to solve: process "/bin/sh -c dnf install gcc-toolset-15" did not complete successfully: exit code: 1

Comments
Post Details
Added 4 days ago
0 comments
22 views