Re: programmatically access pkgutil
Re: programmatically access pkgutil
- Subject: Re: programmatically access pkgutil
- From: Per Olofsson <email@hidden>
- Date: Thu, 15 Nov 2012 10:09:05 +0000
- Thread-topic: programmatically access pkgutil
14 nov 2012 kl. 15:57 skrev hagen:
> Hi,
> is there an API (or something) to access pkgutil from my Application?
otool -L /usr/sbin/pkgutil indicates that /System/Library/PrivateFrameworks/PackageKit.framework is a likely candidate. Hic sunt dracones, etc.
> I am especially interested in accessing the info provided by pkgutil:
>
> pkgutil --pkg-info [pkgid]
A class-dump of PackageKit brings up this class:
@interface PKReceipt : NSObject
{
NSMutableDictionary *_receiptDictionary;
NSString *_bomPath;
void *_cachedBOM;
NSString *_bundlePath;
}
+ (id)__findReceiptsFromBOMsDirectory:(id)arg1;
+ (id)__findBundleReceiptsFromDirectory:(id)arg1;
+ (id)_findReceiptsOnVolumeAtPath:(id)arg1;
+ (id)_sharedReceiptsCache;
+ (id)receiptsOnVolumeAtPath:(id)arg1;
+ (id)receiptWithIdentifier:(id)arg1 volume:(id)arg2;
+ (id)receiptWithPackageFileName:(id)arg1 volume:(id)arg2;
+ (id)receiptsAtPath:(id)arg1;
+ (void)_clearCache;
+ (id)_receiptsDirectoryPathForDestination:(id)arg1;
+ (id)_receiptsDirectoryPathForSandboxRoot:(id)arg1 destination:(id)arg2;
+ (id)_searchDirectoriesForBOMReceiptsOnDestination:(id)arg1;
+ (id)_searchDirectoriesForBundleReceiptsOnDestination:(id)arg1;
+ (id)_receiptDictionaryPathFromBOMPath:(id)arg1;
- (id)init;
- (void)dealloc;
- (id)initWithBOMPath:(id)arg1;
- (id)initWithBundlePkgPath:(id)arg1;
- (id)description;
- (id)packageIdentifier;
- (id)packageVersion;
- (id)installDate;
- (id)installProcessName;
- (id)installPrefixPath;
- (BOOL)_removeReceiptInDirectory:(id)arg1 error:(id *)arg2;
- (id)packageGroups;
- (void)_setPackageGroups:(id)arg1;
- (id)_packageName;
- (void)_setPackageName:(id)arg1;
- (void)_setInstallProcessName:(id)arg1;
- (void)_setInstallPrefixPath:(id)arg1;
- (id)receiptStoragePaths;
- (id)_BOM;
- (void)_freeBOM;
- (id)_directoryEnumerator;
- (id)_attributesOfItemAtPath:(id)arg1;
- (id)_SHA1ChecksumDataOfItemAtPath:(id)arg1;
- (void)_setSHA1ChecksumData:(id)arg1 forItemAtPath:(id)arg2;
- (id)_ACLStringOfItemAtPath:(id)arg1;
- (void)_setACLString:(id)arg1 forItemAtPath:(id)arg2;
- (BOOL)_updateSHA1ChecksumOfItemAtPath:(id)arg1 withFile:(id)arg2;
- (BOOL)_updateACLsOfItemAtPath:(id)arg1 withFile:(id)arg2;
@end
--
Per Olofsson, IT-service, University of Gothenburg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden