Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Is there a good reason to keep old receipts around?

Is there a good reason to keep old receipts around?
Thread Tools
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Sep 16, 2008, 07:40 AM
 
I noticed that old receipts are kept around even if you have a newer version installed. For example my /Library/Receipts/ folder has the following items:

NeoOffice-2.2.3.pkg
NeoOffice-2.2.4.pkg
NeoOffice-2.2.4_patch1.pkg
NeoOffice-2.2.4_patch2.pkg
NeoOffice-2.2.4_patch3.pkg
NeoOffice-2.2.4_patch4.pkg
NeoOffice-2.2.5.pkg

The last item corresponds to the installed version. No older versions are installed. But the receipts are still there.

I noticed some of these actually take up quite some space. And I've also heard (don't know if it's true though) that permission repair takes longer if you have many receipts.

So is there any reason to keep those old receipts around? Or is it safe to delete receipts of old versions you no longer have?
     
Mac Elite
Join Date: May 2002
Location: Home in front of my computer
Status: Offline
Reply With Quote
Sep 17, 2008, 02:23 AM
 
I would like to know this too.

I actually just ran Onyx and it had an option to remove them. So I did. Now my folder is empty except for two folders called "boms" and "db". Both empty. I don't think they're important. I don't see why they need to be kept. I think they're just like a cache or something. Used at the time, but only for quicker access, but can be safely deleted.

Can someone back that up?

Edit: It seems with all the reciepts gone, doing a "Check for Software Updates" takes longer. So it might just be a cache for making software update quicker at checking for updates.
     
Simon  (op)
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Sep 18, 2008, 09:43 AM
 
Nobody?
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Sep 18, 2008, 12:53 PM
 
Receipts are used to determine what you have installed, for the sake of Software Update, and for permissions repair. What permissions repair does is to reset the permissions to whatever they were in that installation package.

What will happen if you delete all but the latest up the update receipts? Hard to say. My guess is that it will be OK, but I don't really know.
     
Mac Elite
Join Date: May 2002
Location: Home in front of my computer
Status: Offline
Reply With Quote
Sep 20, 2008, 03:50 PM
 
It is ok. I deleted all mine and nothing bad happened. Simply a longer first check for new updates. I already posted that.

They're not required for the OS at all. Just for convenience later on.
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Sep 20, 2008, 03:54 PM
 
I don't think Repair Permissions uses the pkg receipts anymore in 10.5. I think it only uses the contents of /Receipts/db and/or /Receipts/boms. The .pkg receipts are only put there by older installers built to target pre-Leopard systems.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Mac Elite
Join Date: May 2002
Location: Home in front of my computer
Status: Offline
Reply With Quote
Sep 20, 2008, 03:57 PM
 
Yeah, and those are the two folders that were left after I cleaned them all out. The actual packages can be removed. (I just used Onyx)
     
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Sep 20, 2008, 04:25 PM
 
But didn't you say above that those folders are now empty. If they are, you just removed the ability to repair permissions.
Vandelay Industries
     
Mac Elite
Join Date: May 2002
Location: Home in front of my computer
Status: Offline
Reply With Quote
Sep 20, 2008, 07:52 PM
 
Empty of PKG files. Not of the two folders the OS requires. "bom" and "db".
     
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Sep 21, 2008, 12:43 AM
 
But are those two folders empty? You said above that they are.
Vandelay Industries
     
Simon  (op)
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Sep 21, 2008, 02:23 AM
 
So if the pkg files in /Library/Receipts are no longer used by DU, is there any reason to delete older receipts apart from space savings?
     
Mac Enthusiast
Join Date: Feb 2006
Status: Offline
Reply With Quote
Sep 21, 2008, 02:43 AM
 
No.
     
Mac Elite
Join Date: May 2002
Location: Home in front of my computer
Status: Offline
Reply With Quote
Sep 21, 2008, 03:18 PM
 
Well, the "bom" and "db" folders are not empty. They are not to be touched. But any .pkg packages in the same directory can safely be deleted. This I have already tested.

/Library/Reciepts/
> /db/
>> a.recieptdb (Mine is 159MB)
> /bom/
>> miscellaneous .bom files (Mine are 43MB)

Software Update will simply check slower the first time next time. But after that initial check and recording of all your software versions it will be as fast as it usually is. The reciepts are simply there to tell SU what has already been installed quicker. Removing them simply saves space, but causes SU to have to manually check all your Apple software's version numbers to see what apps need updating. Once it records this info after the initial check it will be fast again.

A .BOM file is a "Bill of Materials".
"This is a file in binary (non-text) format that describes the contents of an install archive. Apple's OS X Package Maker names this file ARCHIVE.BOM."
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:37 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2