Hi, Sorry, if there is already a command to update all locally installed nimble 
packages but I wrote a small nimscript. 
    
    
    import strutils
    
    let (outp, errC) = gorgeEx("nimble list --installed")
    if errC != 0:
      echo outp
      quit(1)
    
    echo "Installed packages:"
    echo outp
    echo ""
    
    let out_lines = splitLines(outp)
    for line in out_lines:
      let package = line.split({' '})[0]
      echo "Updating " & package
      let (outP, errP) = gorgeEx("nimble -y install " & package)
      if errP != 0:
         echo "Error!"
         echo outP
      else:
         echo "Done\n"
    
    
    Run

if you name the file as _update.nims_ , you can run it
    
    
    nim e update.nims
    
    
    Run

I hope it is helpful.

Please let me know if there are problematic sides and if there are better ways. 

Reply via email to