• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: programmatically access pkgutil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programmatically access pkgutil


  • Subject: Re: programmatically access pkgutil
  • From: Julian Devlin <email@hidden>
  • Date: Wed, 14 Nov 2012 10:54:06 -0500

At a basic level, on newer OS's, the info displayed by pkgutil --pkg-info is just certain data from the plist in /var/db/receipts...

It's possible I suppose that pkgutil has special cases that may not be obvious though...

-Julian


On Nov 14, 2012, at 10:28 AM, hagen wrote:

> Thanks Vikram,
> thats what I wanted to avoid though, hence the question here... Seems
> more like a workaround than a solution to me...
>
> But thanks for the suggestion,
> cheers,
> Hagen.
>
>
> On Wed, Nov 14, 2012 at 4:01 PM, Vikram Singh <email@hidden> wrote:
>> If your program is in Objective-C, use NSTask to execute the command and
>> parse the result which is returned. Otherwise, in C,C++, use popen to
>> execute the command, get the handle to the output and parse it.
>>
>>
>> On Wed, Nov 14, 2012 at 8:27 PM, hagen <email@hidden> wrote:
>>>
>>> Hi,
>>> is there an API (or something) to access pkgutil from my Application?
>>> I am especially interested in accessing the info provided by pkgutil:
>>>
>>> pkgutil --pkg-info [pkgid]
>>>
>>> Thanks & cheers,
>>> Hagen.
>>> _______________________________________________
>>> 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
>>
>>
> _______________________________________________
> 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


 _______________________________________________
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

  • Follow-Ups:
    • Re: programmatically access pkgutil
      • From: hagen <email@hidden>
References: 
 >programmatically access pkgutil (From: hagen <email@hidden>)
 >Re: programmatically access pkgutil (From: Vikram Singh <email@hidden>)
 >Re: programmatically access pkgutil (From: hagen <email@hidden>)

  • Prev by Date: Re: programmatically access pkgutil
  • Next by Date: Re: programmatically access pkgutil
  • Previous by thread: Re: programmatically access pkgutil
  • Next by thread: Re: programmatically access pkgutil
  • Index(es):
    • Date
    • Thread