Cowardly refusing to `sudo brew update` or failure

来源:互联网 发布:易云网络加速器 编辑:程序博客网 时间:2024/05/18 03:16


First find out what is the current ownership of the installed package of brew (you will need this info in the last step)

ls -al `which brew`

Change the user and group of brew to root and wheel respectively:

sudo chown root:wheel `which brew`

Now execute your brew command as root, for eg. sudo brew link mcrypt. Lastly, revert back the ownership of brew to what you had found out in step 1 above

sudo chown : `chown brew`

brew update failure while executing git checkout

$ cd `brew --prefix`$ git remote add origin https://github.com/Homebrew/homebrew.git$ git fetch origin$ git reset --hard origin/master$ brew updateAlready up-to-date.



0 0
原创粉丝点击