简体   繁体   中英

How to install RVM using 'wget'?

I would like to install RVM to my home folder, and all the installation instructions or scripts use curl , but there is no possibility to install curl on the system (not enough permissions).

Is it possible to install RVM with wget ?

Is it possible? Sure, you can clone the repository and make all necessary changes in Wayne's code. It is just a bash script.

But it is listed as a requirement, and use internally, and so might be more than what you would be willing to do for this. Here is a snippet from his RVM installer file to show you how he is using it in addition to the initial curl command to kick things off, to give you an idea of the things you would need to change.

{
  curl -s https://api.github.com/repos/wayneeseguin/rvm/tags |
    sed -n '/"name": / {s/^.*".*": "\(.*\)".*$/\1/; p;}' |
    sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n |
    GREP_OPTIONS="" \grep "^${1:-}" | tail -n 1
}

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM