2012-09-29 24 views
25

È possibile aggiornare l'elenco dei rubini noti (cosa si ottiene con rvm list known) senza aggiornare l'intero rvm?Aggiornamento elenco RVM noto

+0

@sawa reply Pubblicato in http://chat.stackexchange.com/transcript/message/6319864#6319864 –

+0

vedo. Bene che tu possa convincerlo. Sembra che tu sia stato in molti posti. – sawa

risposta

55

No, non è, alcune delle versioni cambiamenti richiedono modifiche nel codice, si dovrebbe essere pronti con attaccare a stabile per mantenere una maggiore stabilità (se questa è la preoccupazione):

rvm get stable 

si dovrebbe essere pronti con attaccare da padroneggiare (come è stabile) per ottenere le versioni più recenti:

rvm get master 
+0

Non capisco: ho eseguito il comando 'rvm get stable', ma' ruby-2.2.3' viene mostrato al più tardi, e ora '2.3.0' è disponibile. – nipponese

+0

aggiornato per il master – mpapis

0

mpapis risposta e di opinione è corretta al 100%. Le impostazioni che avevo nel mio portatile sono sotto.

Aggiungere la riga rvm_autoupdate_flag=2 a ~/.rvmrc. Aggiornerà automaticamente Rvm, sempre, ogni volta che lo farai come rvm list known.

Esempio:

[email protected]:~> rvm list known 
Warning, new version of rvm available '1.26.0', you are using older version '1.25.33'. 
You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc 
You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc 
[email protected]:~> echo rvm_autoupdate_flag=2 >> ~/.rvmrc 
[email protected]:~> rvm list known 
Found old RVM 1.25.33 - updating. 
Downloading https://get.rvm.io 
Downloading https://github.com/wayneeseguin/rvm/archive/1.26.0.tar.gz 
Downloading https://github.com/wayneeseguin/rvm/releases/download/1.26.0/1.26.0.tar.gz.asc 
gpg: Signature made Wed 29 Oct 2014 06:22:06 PM IST using RSA key ID BF04FF17 
gpg: Can't check signature: No public key 
Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found. 
Assuming you trust Michal Papis import the mpapis public key (downloading the signatures). 
#.................... 
#.....................