ScoopInstaller / Scoop

A command-line installer for Windows.

Home Page:https://scoop.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple PHP versions at the same time?

borekb opened this issue · comments

Would Scoop be able to help me with a use case where I need to have multiple versions of PHP installed, and switch between them? For Node.js, I use nvs but I'm not sure if this is something that Scoop could do.

You should be able to do something like this:

scoop bucket add versions
scoop install php54
... do something with php 5.4
scoop install php73
... do something with php 7.3
scoop reset php54 # Again use php 5.4
scoop reset php73
...

Awesome, thank you, I actually visited that wiki page before but didn't realize that the versions bucket contained also PHP (and many other things!). Maybe the wiki page should mention that for noobs like me :)

Some packages though don't have multiple names perversion. For example:

> scoop search maven
'main' bucket:
    maven (3.8.6)

I assume that if I want an older version of maven that is impossible to get with scoop?

You can try scoop install maven@3.8.5

You can try scoop install maven@3.8.5

Thanks, this worked and is extremely useful.

Is there a command to also list available version? For example I just installed 3.6.3 (which I needed) but am wondering how many versions are available...

Versions other than current are auto-generated from the latest manifest (by replacing the URLs), they are not listed anywhere. For alternative variants of packages, use the https://github.com/ScoopInstaller/Versions bucket.