where does macports store it's installed application database?

Panayotis Katsaloulis panayotis at panayotis.com
Wed Dec 9 15:28:38 PST 2009


On 10 Δεκ 2009, at 1:04 π.μ., Joshua Root wrote:

> On 2009-12-10 09:29 , Panayotis Katsaloulis wrote:
>> I am in the process of creating a front-end for macports, and I wanted to know where does it store the list of installed applications.
> 
> ${prefix}/var/macports/receipts ... but surely you're not planning on
> parsing the registry yourself?

LOL, that's exactly what I did: I parse directory structure.
I am doing this since java is much much faster than tk, so loading & updating is very fast.


>> What about the applications that are installed or need to be upgraded, or are obsolete?
> 
> We compare the epoch/version/revision installed with that in the index.

Does this mean that the .bz2 file needs to be unzipped and searched?
hmmm that's not really a fast solution, but I'll go with it, if this is the only thing I have.


More information about the macports-users mailing list