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

12/22/2017

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
-- manoj kumar
centos
dnf
kubernetes
rpm

1 Answer

12/22/2017

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

dnf install ./docker-common-*
-- Tuncay Göncüoğlu
Source: StackOverflow