How to find and download all the dependencies of a package?
Hi all,
I am trying to find a way to install docker-ce on a CentOS box with no internet connection (government box). I have gone down the dependency hole years ago while trying to install another package so this time I am trying to cover all my bases. I found several commands which can show or download all the dependencies for each given package and I will list them below. But the result of each command is not the same as the other ones. There are some common packages, but not all the same. I was just wondering if someone could please help me figure out a way to download all the dependencies so I can burn them on a DVD and take it to the remote location and install Docker successfully. Thank you Code:
repoquery --requires --resolve docker-ce |
I think what you're asking would mean you setup your own local yum repo.
Have a look at this. Some very good research there BTW, well done. |
I don't think there is a way to download a package file and automatically download the dependencies. But you can download the package file, list the dependencies, and download each dependency. Then, the only problem is, what order to install them in.
|
Quote:
Code:
sudo dnf install * Code:
sudo yum localinstall * |
I don't think that will work unless you do it with 'rpm'.
Code:
$ rpm -uvH *.rpm |
Quote:
But, it maybe the following that would be better; Code:
yum install <string_here>* There's no need to use "sudo" as by default, it's not configured in CentOS, as you would switch to the "root" user instead. |
Quote:
Thank you |
Quote:
Thank you |
Quote:
Quote:
Did you read my post #6 ? And your very welcome too. |
Code:
yum install --downloadonly --downloaddir=/tmp/test docker Here what you are going to have to do. Get yourself the Deplist readout on the system with internet access. Go to the target system where you want to install Docker and see what packages are missing from that list. With that list you then return to the system that has internet access and run the above command. Once all the packages are downloaded compare them to the list you got from the target machine. Download any missing packages and you should be good to go then. Copy all packages over to the target machine and run the yum install local command to install everything. Just remember to vet your packages before install. |
Quote:
How To Install and Use Docker on CentOS 7 Get Docker CE for CentOS https://hub.docker.com/_/centos/ How to install and setup Docker on RHEL 7/CentOS 7 Have fun running those bases! |
Quote:
|
Quote:
wait, i know! the same way you do: with a windows machine! |
Quote:
|
|
All times are GMT -5. The time now is 08:38 AM. |