Log4j12 Package In CentOS 8
According to the RHEL docs, package log4j was replaced with package log4j12 in RHEL 8.0. However, when I attempt to install the package in CentOS 8, dnf cannot find it. I have the Base, AppStream, Extras and PowerTools repos enabled. What am I doing wrong?
Thanks!
3 thoughts on - Log4j12 Package In CentOS 8
The weird thing is that I can see the package right here in the repo!:
http://mirror.CentOS.org/CentOS/8/AppStream/x86_64/os/Packages/
What am I misunderstanding?
Well, according to https://dnf.readthedocs.io/en/latest/command_ref.html#module-command-label you are supposed to be able to do:
# dnf module provides log4j12
Updating Subscription Management repositories. Last metadata expiration check: 0:04:20 ago on Sat 14 Dec 2019 01:25:00
PM EST. log4j12-1.2.17-22.module+el8+2598+06babf2e.noarch Module : javapackages-tools:201801:820181217165704:dca7b4a4:x86_64
Repo : codeready-builder-for-rhel-8-x86_64-rpms Summary : Tools and macros for Java packaging support
But on EL8.1 and earlier this only works if the module is already enabled, which isn’t much help.
So for this package you need to do:
# dnf module enable javapackages-tools
# dnf install log4j12
That worked, thank you Orion! I’m not enjoying modules that much so far.