manoj kumar
manoj kumar

Reputation: 93

DNF command to install all the rpms by specifying "*" in the command on centos 7.x

I am using DNF package manager for installing rpms on centos 7.x.The rpms are checked out from the svn private repo. DNF is not able to install the rpm if I throw a command

dnf -y install docker-common-{{docker_version}}*.rpm 

Whereas if I use rpm command to install the packages,its doing fine

rpm -i docker-common-{{docker_version}}*.rpm,its able to install 

Is there any feature in dnf for installing the rpm without specifying whole line of rpm like below:

dnf -y install docker-client-1.12.6-61.git85d7426.el7.centos.x86_64.rpm

Upvotes: 1

Views: 1756

Answers (1)

You can simply say the rpms are in your current directory with a ./* like:

dnf install ./docker-common-*

Upvotes: -1

Related Questions