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
131
19
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?
 

Shirasaki

macrumors P6
May 16, 2015
16,263
11,764
If you can find that code, change the parameter should be able to reactivate iTunes.
 

chrfr

macrumors G5
Jul 11, 2009
13,709
7,279
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.
 

KALLT

macrumors 603
Sep 23, 2008
5,380
3,415
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.)
 

chrfr

macrumors G5
Jul 11, 2009
13,709
7,279
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.
 

KALLT

macrumors 603
Sep 23, 2008
5,380
3,415
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

smileman

macrumors regular
Original poster
Oct 23, 2011
131
19
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.