One thing to note: as developers are more and more keeping their
programs totally inside of the application bundle, the problem you are
referring to (i.e. two different programs installing the same "Y"
thingy in /usr/local/bin/) is becoming less and less of a problem for
un-installers to ponder, which is actually a very good thing as this
same problem has never been completely dealt with in the *nix world.
Jerry
On Wednesday, May 21, 2003, at 04:41 PM, Bill Rising wrote:
> On 5/21/03 15:31, Jerry Yeager wrote
>
>> It may be possible, depending on whether or not the install put a BOM
>> (bill of materials) in the receipts directory. If it did, then try the
>> following:
>>
>> lsbom -f -l -s
>> /Library/Receipts/program_name_goes_here/Contents/Archive.bom | (cd /;
>> sudo xargs rm)
>>
>> But first make sure that:
>>
>> 1) A receipt was put there.
>> 2) The BOM was also put there (jump over to the Receipts directory,
>> find the program listing, control-click to open it (Contents) as a
>> folder and look for the Archive.bom or something very similar.
>
> Slick. The BOM is there, alright. I'll just use the first part of the
> command to remove the stuff I don't need. Thanks for the tip - this is
> really good to know! Here's a followup question: suppose application X
> has file Y in its BOM and application Z also has file Y in its BOM. Is
> there a mechanism for keeping track of shared resources, or does the
> BOM
> list only those items actually installed?
>
> Bill
> P.S.
>
> For those wondering what
> lsbom -f -l -s
> /Library/Receipts/program_name_goes_here/Contents/Archive.bom
> | (cd /; sudo xargs rm)
>
> could possibly mean:
>
> lsbom is the command for listing the items in a bill of materials
> (BOM).
> [ls is the unix command for listing the contents of a folder]
>
> -f -l -s are flags which tell lsbom to list files, symlinks and paths.
> [a
> symlink in the unix world is very similar to an alias in the Mac world]
>
> /Library/yadayada is the full path to the BOM for the application.
>
> | is a pipe which takes the output of the lsbom and feeds it as an
> input
> to the right hand side of the pipe
>
> (xx;yy) is a way to combine multiple commands on one line, so
> cd / tells the computer to act as though it is sitting at the top of
> the startup partition
> sudo says to run the next command as a super user (the Big Cheese
> administrator)
> xargs says to pass each chunk (here: file name) to the following
> command
> rm says to remove (erase) the files [the scariest command in unix]
>
>
>
>
> | The next meeting of the Louisville Computer Society will
> | be May 27. The LCS Web page is <http://www.kymac.org>.
> | This list's page is <http://erdos.math.louisville.edu/macgroup>.
>
>
>
| The next meeting of the Louisville Computer Society will
| be May 27. The LCS Web page is <http://www.kymac.org>.
| This list's page is <http://erdos.math.louisville.edu/macgroup>.