Originally Posted by archtoad6
I assume "spin" the ISO means burn it to a CD.
I don't do rpm's (deb's instead), but I've done a lot of scripting. Perhaps if you'd put the commands for the key steps in a code block, I could suggest ways to automate them.
- find the new package on a Cent mirror in the updates dir
- delete the old version out of my dir
- download the new version into it
- regen the hdlist
Sounds to me like you need a list & a loop.
When you do it by hand, how to you know which packages need updating?
My goal for the weekend is to script this; if you can offer any insight that would be helpful.
When I do it by hand, I look at a Cent mirror's "update" dir, and then check to see if any of the programs in there match what I've included in the ISO. Here's a link to one of the update dirs:
In my ISO dir, I check to see if the version is the same or if there is a newer version on the Cent mirror. Here's a sample snippet of my dir:
-rw-r--r-- 1 root root 32819 Feb 28 11:29 ypbind-1.17.2-8.i386.rpm
-rw-r--r-- 1 root root 64352 Feb 28 11:29 yp-tools-2.8-7.i386.rpm
-rw-r--r-- 1 root root 393768 Feb 28 11:29 yum-2.4.3-1.c4.noarch.rpm
-rw-r--r-- 1 root root 116262 Feb 28 11:29 zip-2.3-27.i386.rpm
-rw-r--r-- 1 root root 44560 Feb 28 11:29 zlib-18.104.22.168-1.2.i386.rpm
-rw-r--r-- 1 root root 91272 Feb 28 11:29 zlib-devel-22.214.171.124-1.2.i386.rpm
If there's a newer version on the mirror, I delete the old version out of my dir, and then wget the new version into it. I do this for any of the RPMs that have updates. Once that's done I run a little script I threw together that runs the genhdlist commands I need to rebuild the hdlist.
I'm imaging I'll have to get a dir listing from the mirror and break the filenames into parts (probably separated by the hyphens) and put them in an array. That seems the easiest way to compare version numbers to me, but I'm sure there's another way to do it.