


Verify whether packages have been downloaded or not, run ls command $ ls -l ~/dev-tools/ $ sudo dnf group install "Development Tools" -downloadonly -downloaddir ~/dev-tools/ -y Let’s suppose we want to download all the packages which comes under the group “ Development Tools”, run beneath command. Now we can make a tar file of these packages and transfer to a remote system where we want to install ansible and don’t have internet and repository connectivity on that system. Once the above command is executed successfully, verify whether ansible rpm package is downloaded or not. $ sudo dnf install ansible -downloadonly -downloaddir ~/packages/ Let’s assume, we want to download ansible rpm along with its dependencies in package directory. $ sudo dnf install –downloadonly –downloaddir We can also instruct dnf command to download rpm in particular folder using ‘ –downloaddir’ flag. Using ‘–downloadonly’ flag in dnf or yum command, rpm package along with its dependencies can be downloaded.

Run $ sudo dnf download nfs-utilsĪbove command will download the nfs-utils package in the present working directory. Let’s assume, we want to download ‘nfs-utils’ package. Dnf or yum command on RHEL 8 or CentOS 8 has download flag which allows to download rpm package.
