Aira
Aira

Reputation: 179

Install yum packages without internet connection

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

Upvotes: 6

Views: 22320

Answers (1)

user3788685
user3788685

Reputation: 3093

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.

Upvotes: 9

Related Questions