Linux - How to download packages with dependencies without installing them on Centos 8

Linux - How to download packages with dependencies without installing them on Centos 8

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

linux_downloadonly

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

linux_downloadonly


 

Thank you all, I hope that my article helped you in some way.

 

SIMILAR ARTICLES

tar utility - how to zip and unzip files in linux
tar utility - how to zip and unzip files in linux
LINUX
Read more
How to find out the size of a file and directory in Linux
How to find out the size of a file and directory in Linux
LINUX
Read more
bzip2 utility - how to compress and decompress files in Linux
bzip2 utility - how to compress and decompress files in Linux
LINUX
Read more