Question is pretty simple so instead of writting two commands is there one substitute? eg
gem uninstall subexec
gem install subexec
Is there just re-install, or something similar?
Depending on what you're trying to achieve, the following restores the gem to the contents of the .gem
file:
gem pristine <gem name here>
You can also run that with --all
if you want to clean your entire set of installed gems.
No, there's no such command. You can, however, fit them on one line, if that's what you seek.
gem uninstall subexec && gem install subexec
Nope, you have to do an uninstall and install.
如果您使用bundler进行gem安装,那么您需要做的就是编辑gemfile然后运行bundle install。
gem update <gem-name>
would update to latest available version. or
gem update
would update all gems to latest versions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.