Ruby
Gem
bash
# 列出所有源
gem sources -l
# 添加国内镜像源
gem sources -a https://gems.ruby-china.com
# 更新源
gem sources -u
# 删除源
gem sources -r https://gems.ruby-china.com
gem sources -r https://rubygems.org/
#
gem update --system
#
gem update
# 查看所有已安装的包sss
gem list
#
gem install cocoapods
CocoaPods
bash
# 官方镜像
source 'https://github.com/CocoaPods/Specs.git'
# 开源中国镜像
source 'https://gitee.com/mirrors/CocoaPods/Specs.git'
# 清华大学镜像
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'