VMware Cloud Community
Pinche
Contributor
Contributor

Merging all patch directories in a repository?

Hey guys,

I downloaded a bunch of patches into my repository and unpackaged them. I'm left with a directory looking like this:

root@remoteServ]# ls

ESX-1001724 ESX-1001728 ESX-1001732 ESX-1001904 ESX-1001908 ESX-1002089

ESX-1001725 ESX-1001729 ESX-1001735 ESX-1001905 ESX-1002086 ESX-1002090

ESX-1001726 ESX-1001730 ESX-1001902 ESX-1001906 ESX-1002087

ESX-1001727 ESX-1001731 ESX-1001903 ESX-1001907 ESX-1002088

These all sit in a directory named "patches."

Rather than iterating through all of these, how can I just merge them all into one so that I can just call something like

esxupdate -l -r ftp://remoteServ/vmware/patches info

and it will list all patches. When I try this now it says "Invalid repository".

0 Kudos
3 Replies
jayolsen
Expert
Expert

Does replacing info with query do what you need?

0 Kudos
Pinche
Contributor
Contributor

No. It looks like that just returns a list of installed rpms:

# esxupdate -l -r ftp://remoteServ/linux/vmware/patches/ query

Installed software bundles:

-


Name -


--- Install Date --- --- Summary ---

3.0.2-52542 13:20:49 11/02/07 Full 3.0.2 release of VMware ESX Server

0 Kudos
jonathanp
Expert
Expert

You may script patch install like this:

#!/bin/bash

tmpdir=/var/updates

esxupdate -nr file:$tmpdir/ESX-5874303 update

esxupdate -nr file:$tmpdir/ESX-1271657 update

esxupdate -nr file:$tmpdir/ESX-1410076 update

esxupdate -nr file:$tmpdir/ESX-1917602 update

esxupdate -nr file:$tmpdir/ESX-2031037 update

esxupdate -nr file:$tmpdir/ESX-2066306 update

esxupdate -nr file:$tmpdir/ESX-.......................

Regards

0 Kudos