essay | tech | year-summary | about

返回上级菜单

Install Ruby Gems Locally


日期:2021-10-04T00:00:00Z

install rvm

https://rvm.io/rvm/install

$ gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
$ \curl -sSL https://get.rvm.io | bash
$ rvm install 3.0

download gem locally

https://bundler.io/man/bundle-install.1.html
https://superuser.com/questions/325338/what-is-the-simplest-way-to-download-a-gem-without-installing-rubygems

$ bundle package

it will store gems in vendor/cache

upload your gems

use ftp/sftp

install gems offline

use gem install or bundle

$ bundle install --local