

How can I found out what packages are installed?
Repeatedly option-tapping the x in the inspector's title bar will cycle through the contexts known to the system (including the system itself).
You could also do this from code if you want to. Below is a code fragment which shows how to iterate over all the installed package contexts.
Private ObjectID
ReportOneContext(ObjectID context, Parameters* header)
{
Str255 nameStr;
char packageStr[512];
ObjectID softwarePackage;
ObjectID citation;
softwarePackage = Import(context, iSoftwarePackage);
citation = Citation(softwarePackage);
GetName(Title(citation), nameStr);
SPrintF(packageStr, "%P Edition %d.%d", nameStr, MajorEdition(citation),
MinorEdition(citation));
Log((packageStr));
return nilObject;
}
Method void
PackageReporterScene_ReportPackages(ObjectID self)
{
#pragma unused (self)
OpenLog();
EachContext(PackageContext_, (EachFunction)ReportOneContext, nil);
CloseLog();
}