Linux - How to download packages with dependencies without installing them on Centos 8
Last updated: Jul 14, 2022
Colleagues hello to all.
In today's article, we'll talk about how to download packages without installing them on Linux, which in our case is Centos 8. There are times when you just need to download a package, but not install it. There are several ways to download package through the yum package manager without installing it. The two most commonly used options will be described below in the article.
The first option to download packages without installing them is to specify the downloadonly parameter which means that you only need to download and additionally you can specify in which directory to download packages, the downloaddir parameter is responsible for this.
$. yum install MariaDB-server --downloadonly --downloaddir=/root
In this option, I specify that I want to download the packages that are related to the Mariadb database and I want these packages to be downloaded to the /root directory.
The second option is to specify multiple packages separated by spaces.
$. yum install MariaDB-server MariaDB-backup --downloadonly --downloaddir=/root
Thank you all, I hope that my article helped you in some way.