Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

smileman

macrumors regular
Original poster
Oct 23, 2011
150
20
While ago iTunes was driving me nuts, opening opening randomly, etc. So I followed someone's suggestion and entered some command line code to disable iTunes. Is there a way to reverse this as I now need to use iTunes?
 
If you can find that code, change the parameter should be able to reactivate iTunes.
 
While ago iTunes was driving me nuts, opening opening randomly, etc. So I followed someone's suggestion and entered some command line code to disable iTunes. Is there a way to reverse this as I now need to use iTunes?
There most likely is a way to reverse whatever it is that you did but you need to know exactly what you did in order to reverse it. There are at least several ways to make it that iTunes won't work.
 
Did that step involve turning off System Integrity Protection? (For that you would have had to reboot into Recovery and enter a command in Terminal.)
 
The instructions in the below link look vaguely familiar, but is there a way to pull up previously entered terminal commands?

http://www.addictivetips.com/mac-os/uninstall-or-disable-itunes-on-mac-os-x/
If you haven't used terminal a lot, you may find it by opening Terminal and pressing the up-arrow key. This will show you the last entered commands, and goes back quite a while by default.
You could also open Terminal and type or paste the following:
Code:
cat ~/.bash_history
This will open up the file that keeps track of your past commands all at once, rather than cycling through step by step with the up-arrow key.
 
The instructions in the below link look vaguely familiar, but is there a way to pull up previously entered terminal commands?

http://www.addictivetips.com/mac-os/uninstall-or-disable-itunes-on-mac-os-x/

If you did this, then you either deleted iTunes entirely or moved it to another location. I was wrong to say that you need to disable System Integrity Protection for this.

If you cannot find it, then you should check the mentioned directory ‘/tmp’ (Finder > Go > Go to Folder and type ‘/tmp’). You can also look for it with this:
Code:
sudo find -x / -iname *itunes -type f


If it is gone, then you have to download it again. It is probably the easiest method anyway.
https://www.apple.com/itunes/download/
 
Last edited:
  • Like
Reactions: NoBoMac
The app is still there so I looked for the commands and added a # in front of them. That seems to have allowed iTunes to open.

Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.