中科大映象源 Mac 下 brew 切換為國內源

2021-10-16 02:40:42 字數 2251 閱讀 5726

homebrew 是一款自由及開放源**的軟體包管理系統,用以簡化 macos 和 linux 系統上的軟體安裝過程。它擁有安裝、解除安裝、更新、檢視、搜尋等很多實用的功能,通過簡單的一條指令,就可以實現包管理,十分方便快捷。

homebrew 主要有四個部分組成: brew、homebrew-core 、homebrew-bottles、homebrew-cask。

# 檢視 brew.git 當前源$ cd "$(brew --repo)" && git remote -vorigin     (fetch)origin     (push)# 檢視 homebrew-core.git 當前源$ cd "$(brew --repo homebrew/core)" && git remote -vorigin     (fetch)origin     (push)# 修改 brew.git 為阿里源$ git -c "$(brew --repo)" remote set-url origin  修改 homebrew-core.git 為阿里源$ git -c "$(brew --repo homebrew/core)" remote set-url origin  zsh 替換 brew bintray 映象$ echo 'export homebrew_bottle_domain=' >> ~/.zshrc$ source ~/.zshrc# bash 替換 brew bintray 映象$ echo 'export homebrew_bottle_domain=' >> ~/.bash_profile$ source ~/.bash_profile# 重新整理源$ brew update
# 替換各個源$ git -c "$(brew --repo)" remote set-url origin  git -c "$(brew --repo homebrew/core)" remote set-url origin  git -c "$(brew --repo homebrew/cask)" remote set-url origin  zsh 替換 brew bintray 映象$ echo 'export homebrew_bottle_domain=' >> ~/.zshrc$ source ~/.zshrc# bash 替換 brew bintray 映象$ echo 'export homebrew_bottle_domain=' >> ~/.bash_profile$ source ~/.bash_profile# 重新整理源$ brew update
# 替換各個源$ git -c "$(brew --repo)" remote set-url origin  git -c "$(brew --repo homebrew/core)" remote set-url origin  git -c "$(brew --repo homebrew/cask)" remote set-url origin  zsh 替換 brew bintray 映象$ echo 'export homebrew_bottle_domain=' >> ~/.zshrc$ source ~/.zshrc# bash 替換 brew bintray 映象$ echo 'export homebrew_bottle_domain=' >> ~/.bash_profile$ source ~/.bash_profile# 重新整理源$ brew update
# 重置 brew.git 為官方源$ git -c "$(brew --repo)" remote set-url origin # 重置 homebrew-core.git 為官方源$ git -c "$(brew --repo homebrew/core)" remote set-url origin # 重置 homebrew-cask.git 為官方源$ git -c "$(brew --repo homebrew/cask)" remote set-url origin  zsh 注釋掉 homebrew_bottle_domain 配置$ vi ~/.zshrc# export homebrew_bottle_domain=*********# bash 注釋掉 homebrew_bottle_domain 配置$ vi ~/.bash_profile# export homebrew_bottle_domain=*********# 重新整理源$ brew update

anaconda中科大映象

清華的anaconda映象掛了,用中科大的映象吧 conda config add channels conda config set show channel urls yes 加個小tip 要刪除.condarc檔案。condarc以點開頭,一般表示 conda 應用程式的配置檔案,在使用者的根...

ubuntu下用命令將源設定為中科大源

第一步 備份原來的源 可有可無,一般不需要備份 sudo cp etc apt sources.list etc apt sources.list backup 第二步 編輯源列表 sudo gedit etc apt sources.list 將科大的源列表加入檔案中。第三步 更新列表 sudo ...

中科大宣布 Anaconda 映象無限期停止服務

4月25日,中國科技大學開源軟體映象站發布公告表示,決定無限期停止 anaconda 映象服務。目前,其 的 anaconda 映象已被直接重定向至官方映象倉庫。公告內容如下 anaconda 映象停止服務由於 anaconda 的軟體源設計缺陷,其缺少正常發行版軟體源所包含的簽名校驗功能,任何非官...