fredag, augusti 01, 2008

Extract several VMware ESX patches within one directory (ESX 3.0.1 Console)

I wanted to extract all archives with one line.

First mounting my NFS share (R/W)
#mount 172.16.1.20:\ESXPatches /mnt/ESXPatches
#cd /mnt/patches
#ls
..
ESX-9986131.tgz
ESX-8173580.tgz
..

Action begins here;

root@esx1 patches]# for i in *.tgz; do tar -xzvf $i;done
ESX-1000039/
ESX-1000039/VMware-esx-scripts-3.0.1-42368.i386.rpm
ESX-1000039/VMware-esx-vmkernel-3.0.1-47426.i386.rpm
ESX-1000039/headers/
ESX-1000039/headers/VMware-esx-scripts-0-3.0.1-42368.i386.hdr
ESX-1000039/headers/VMware-esx-vmkernel-0-3.0.1-47426.i386.hdr
ESX-1000039/headers/header.info
ESX-1000039/descriptor.xml
ESX-1000070/
ESX-1000070/VMware-esx-scripts-3.0.1-42368.i386.rpm
ESX-1000070/VMware-esx-tools-3.0.1-47426.i386.rpm
ESX-1000070/VMware-esx-vmx-3.0.1-47426.i386.rpm
..
..

Seems OK!

Now I just need to wait for rest of 118 archives untaring..

Cheers!