2017-04-05 4 views
0

mac system에서 /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ 폴더의 .rb 파일 (cassandra.rb, cassandra @ 2.1.rb 및 [email protected]) 일부를 삭제했습니다. 해당 .rb 파일을 다시 원합니다.
나는 brew upgrade이 내가 삭제 한 .rb 파일을 돌려 줄 것이라고 생각했다. 그러나 그들은 여전히 ​​실종 상태이다. 이러한 .rb 파일은 패키지 설치에 중요합니다.
brew install cassandra
홈브류를 이전 상태로 되 돌리는 방법은 무엇입니까?

Updating Homebrew... 
Error: No available formula with the name "cassandra" 
==> Searching for a previously deleted formula... 
cassandra was deleted from homebrew/core in commit d20fe73: 
    cassandra: update 3.10_1 bottle. 

To show the formula before removal run: 
    git -C "$(brew --repo homebrew/core)" show d20fe73^:Formula/cassandra.rb 

If you still use this formula consider creating your own tap: 
    http://docs.brew.sh/How-to-Create-and-Maintain-a-Tap.html 

내가 솔루션 이 필요하세요 준다 "방법이 .rb 파일을 다시 얻기 위해?" 또는 "cassandra를 설치하는 다른 방법". 여기에 언급 한 바와 같이

답변

0

다시 삭제 된 모든 파일을 가지고이 명령을보십시오.
주 :이 명령은 $(brew --repo homebrew/core)

cd $(brew --repo homebrew/core) && git reset --hard origin/master 

브루 내부적으로 자식을 사용하는 모든 변화를 되 돌리는, 그래서 자식이 어떤 문제를 해결하기 위해 명령을 사용합니다.

관련 문제