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!
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? On Thu, Dec 12, 2019 at 8:04 PM Richard G <grainger at gmail.com> wrote:> > 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!
On 12/12/19 1:04 PM, Richard G wrote:> 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! > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >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 -- Orion Poplawski Manager of NWRA Technical Systems 720-772-5637 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion at nwra.com Boulder, CO 80301 https://www.nwra.com/
On Sat, Dec 14, 2019 at 6:33 PM Orion Poplawski <orion at nwra.com> wrote:> 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 log4j12That worked, thank you Orion! I'm not enjoying modules that much so far.
Maybe Matching Threads
- log4j12 package in CentOS 8
- CEBA-2014:1055 CentOS 7 javapackages-tools BugFix Update
- CentOS-announce Digest, Vol 114, Issue 8
- CentOS 8: several packages have unresolved dependencies after "dnf update all "
- Unable to execute Java MapReduce (Hadoop) code from R using rJava