...
- Start up a temporary instance of the Opmantek Appliance
It should be the same version of the non-networked Appliance that you want to upgrade/install stuff on, and it should be unchanged and pristine. - Enable yum caching on the temporary system
Use nano or your editor of choice, and change the config file/etc/yum.conf
so that there's a line like this:keepcache=1
This makes yum keep copies of everything it downloads in/var/cache/yum
. - Run the installer for the application you want to add or upgrade, but on the temporary system.
Tell it that Internet access is available, and let it install all missing prerequisites. - Zip up the collected packages on the temporary system
You need the following files and directories:/etc/yum.repos.d,
/var/cache/yum and
/root/.cpan
(primarily if you're upgrading NMIS).
A command to capture that would bezip -r /tmp/captured.zip /etc/yum.repos.d /var/cache/yum /root/.cpan
- Transfer that ZIP file off the temporary system
Use the scp client of your choice (or a shared folder if running in VirtualBox) to save the captured zip file somewhere off the temporary system. - Transfer that ZIP file onto the final, non-internetted system
Likely you will be using scp again. - Unpack the captured files and overwrite the originals
I'd unpack everything in/tmp
, and then replace the originals like this:cd /tmp/; unzip captured.zip; rm -f /etc/yum.repos.d/*; mv ./etc/yum.repos.d/* /etc/yum.repos.d; rm -rf /var/cache/yum/*; mv ./var/cache/yum/* /var/cache/yum/; rm -rf /root/.cpan; mv ./root/.cpan /root
- At this point you should be able to run the installer again, but now on the non-internetted system
It should now be able to find the manually transferred packages, and install from these; However, if yum balks simply install all the packages from that cache before running up the installer (again):yum -C -y install /var/cache/yum/x86_64/6/*/packages/*.rpm
- The installer should now run through without any missing prerequisites.
- Cleanup
You can now remove the termporary system, delete thecaptured.zip
on your non-internetted system (and whereever you may have stored it temporarily).