An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Topic Options
#39983 - 04/18/16 01:40 PM Any Harm in this Terminal Command?
Ira L Online


Registered: 08/13/09
Loc: California
I have an application that keeps asking me for the registration code every time I open it. The application functions properly, but on the next opening, same request.

The developer said I should enter the following into Terminal, which I am willing to do if it is not too broad and encompassing of a command. They said it would repair permissions on the boot disk.

sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /

Safe? Equivalently do it with Repair Permissions in OnyX?
_________________________
On a Mac since 1984.
Currently: 27" iMacs, Macbook Air, macOS 10.14.x,; iPhones, iPods and iPads galore!

Top
#39984 - 04/18/16 04:14 PM Re: Any Harm in this Terminal Command? [Re: Ira L]
tacit Offline


Registered: 08/03/09
Loc: Portland, Oregon, USA
repair_packages is an Apple tool for making sure that the permissions and flags on a package (a sort of record of a program's installation) are correct.

It will not harm anything. At worst it will do nothing. At best it can repair certain kinds of troubles with installed software.
_________________________
Photo gallery, all about me, and more: www.xeromag.com/franklin.html

Top
#39990 - 04/19/16 09:09 AM Re: Any Harm in this Terminal Command? [Re: tacit]
Ira L Online


Registered: 08/13/09
Loc: California
Thanks for the feedback. Ran it, no problem, but did not fix the original issue. Back to the developer. crazy
_________________________
On a Mac since 1984.
Currently: 27" iMacs, Macbook Air, macOS 10.14.x,; iPhones, iPods and iPads galore!

Top
#40004 - 04/20/16 08:35 AM Re: Any Harm in this Terminal Command? [Re: Ira L]
Ira L Online


Registered: 08/13/09
Loc: California
Just for the record, the developer suggested deleting the preference file for this application and that solved the problem.
_________________________
On a Mac since 1984.
Currently: 27" iMacs, Macbook Air, macOS 10.14.x,; iPhones, iPods and iPads galore!

Top
#40007 - 04/20/16 08:50 AM Re: Any Harm in this Terminal Command? [Re: Ira L]
Virtual1 Offline


Registered: 08/04/09
Loc: Iowa
Originally Posted By: Ira L
Just for the record, the developer suggested deleting the preference file for this application and that solved the problem.

That's a fairly common fix on the mac. It's pretty standard that if your prefs files doesn't exist, you make a new one.

Newer OS X has an evil thing called "CFPREFSD", a daemon that runs in the background and serves as a "buffer" for prefs reads and writes. I suspect this is to help with wear leveling SSDs. If an app elects to write a pref value every second (no change, same value over and over) the prefsd will just cache the change and only write it to file once the app lays off the trigger for awhile. So don't be terribly surprised if one grows back 10-20 seconds AFTER you have quit the app and THEN deleted the prefs file. I was working on a prefs corruption problem with remote desktop last fall and this was really grinding my gears, UNfixing the prefs file after I fixed it. So... you may need to wait awhile, or even reboot the computer sometimes. It doesn't bother files until you launch the app, so if you haven't launched it since login you should be able to delete it. But you may have problems deleting it right after you've quit the app.

(segway... keychain has the exact same issue, and is MUCH more persistent and problematic about it, persisting even after logout and typically requiring moving (but not deleting!) the keychain files and then RESTARTING before you can shake the pitbull daemon off the file and delete it)

_________________________
I work for the Department of Redundancy Department

Top

Moderator:  alternaut, dkmarsh, joemikeb