Install specfic package version on centos using yum
NickName:chief Ask DateTime:2020-09-02T00:23:08

Install specfic package version on centos using yum

How do I install specific version of a package via yum on centos 8?

I'm creating a dockerfile that needs:

  • maven
  • kubectl
  • git
  • helm

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

More about “Install specfic package version on centos using yum” related questions

Install specfic package version on centos using yum

How do I install specific version of a package via yum on centos 8? I'm creating a dockerfile that needs: maven kubectl git helm I want to install them using yum; however, `yum install [packagena...

Show Detail

how to install specific package and version for centos

ill try to install specific version of php in centos https://www.linuxtechi.com/install-php-7-centos-7-rhel-7-server/ yum install epel-release yum-utils -y yum install http://rpms.remirepo.net/

Show Detail

Mask package version in Yum on CentOS

I can't seem to find anything useful in the man pages etc for this, but it seems like it should be straightforward..? Our servers are running CentOS 6.8 but also have the Atomic repository for some

Show Detail

yum install texinfo on CentOS 6.6 (no package)

To resolve some dependency to one of my programs, I have to install texinfo on my centos 6.6 system yum install texinfo it resulted to Setting up Install Process No package texinfo available Er...

Show Detail

How to install yum on centos

I removed /usr/bin/yum by mistake. How to re install yum on centos6 Please help me ;( I followed website explanation but I got this error Failed dependencies: blah,blah or yum-2.2.1-1.centos4.noa...

Show Detail

How to install latest awscli using yum on CentOS 7?

I installed on CentOS 7 awscli using this command: yum install awscli But it turned out that it is old version of awscli: awscli.noarch 1.14.28-5.el7_5.1 How could I update or install...

Show Detail

Install Mono on Centos 5.5 using YUM

How do I install the Mono 2.6.7 runtime on CentOS 5.5 using YUM? I know how to build Mono from the source. However, according to the page Getting Started With Mono Tools it is possible to install ...

Show Detail

PHP package install on CentOS

I want to figure out some issue in my CentOS server. I have two packages that already installed in my server: php-cli and php-common. I see their details when i use the command yum info. However, ...

Show Detail

install a specific version of kubernetes on centos

I installed kubernetes using these commands on centos7 cat <<EOF > /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=https://packages.cloud.google.com/yum/repos/kuber...

Show Detail

Yum trying to install .el7 release on CentOS 6

I have generated two RPMs. One for CentOS 6 and one for CentOS 7. my-package-0.0.1-1.el6.x86_64 my-package-0.0.1-1.el7.x86_64 When I do a yum info my-package on a CentOS 6 machine, it gives me t...

Show Detail