by apex » Thu Jan 03, 2002 8:56 am
I'm not sure what runs when one of the packages from this site is installed. Most packages from apple will have some interesting files in them;
<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr><pre>
package.pkg/Contents/Resources/preflight
</pre>[/quote]
This is a script which runs before the package is installed.
<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr><pre>
package.pkg/Contents/Resources/postflight
</pre>[/quote]
This runs after the pax archive is installed.
You can check these out to see what apples packages are doing. There are usually some other scripts in this directory which determine the osx version you are running and lots of other things.
You can run any of Apples installers manually like this:
<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr><pre>
su
(enter root password)
cd package.pkg/Contents/Resources
cp package*gz /
cp postflight /
cd /
gunzip package*gz
pax -r -f package*pax
chmod 755 postflight
./postflight
</pre>[/quote]
This will let you install updates even if you have a beta osx version, are downgrading, etc.
[ January 03, 2002: Message edited by: apex ]</p>