Is there any way to download all packages from this line, save them locally and then install them to a machine without an internet connection?
yum install -y qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-utils
To carry out a yum command without a network connection, add the -C command-line option. With this option, yum proceeds without checking any network repositories, and uses only cached files. In this mode, yum may only install packages that have been downloaded and cached by a previous operation.
To install a particular package from a specific enabled or disabled repository, you must use --enablerepo an option in your yum command.
Yes, you can use the --downloadonly
command.
Run yum install qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-utils --downloadonly
it will prompt to install but it wont and will instead show;
yum install procmail --downloadonly
Installed size: 385 k
Is this ok [y/N]: y
Downloading Packages:
exiting because --downloadonly specified
By default the downloaded files are in; /var/cache/yum/
There are some more details here on the RedHat page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With