How do I install specific version of a package via yum on centos 8?
I'm creating a dockerfile that needs:
I want to install them using yum; however, `yum install [packagename] did not do the trick for maven. I also need to install specific version of the aforementioned packages.
Errors I got:
Error: Nothing to do
The command '/bin/sh -c yum install maven-3.6.3' returned a non-zero code: 1
Error: Nothing to do
The command '/bin/sh -c yum install [email protected]' returned a non-zero code: 1
The command '/bin/sh -c yum install maven' returned a non-zero code: 1
Dockerfile:
FROM adoptopenjdk/openjdk11:centos-slim
RUN yum install maven-3.6.3
CMD [""]
Copyright Notice:Content Author:「chief」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/63691686/install-specfic-package-version-on-centos-using-yum