On Fri 18 Mar 2022 at 10:34:08 (+0100), Hans Åberg wrote:
> On 17 Mar 2022, at 23:39, Hans Aikema wrote:

> > You cannot have both active indeed, but you can install them both (one 
> > active, one inactive). The recipe to end up with stable, but have current 
> > development version at hand for activation:
> > 
> > sudo port install lilypond-devel
> > sudo port deactivate lilypond-devel
> > sudo port install lilypond
> > 
> > then when you want to try develop:
> > sudo port deactivate lilypond
> > sudo port activate lilypond-devel
> > 
> > and the other way around to switch back to stable:
> > sudo port deactivate lilypond-devel
> > sudo port activate lilypond
> 
> This seems simpler than having a separate MacPorts installation. —To avoid 
> having to write 'sudo' all the time, one can start 'sudo -s'.

It might be safer to use, say, an alias, a shell function, or a script
for each version, so that you can just type "lpdev" or "lpprod" to switch.
And if you collect a number of versions, "lp2222", "lp2236", … , maybe?

> > only the active one will be upgraded with a sudo port upgrade outdated 
> > (over time you can even have multiple historical versions side by side at 
> > hand for activation by specifying the explicit version)
> 
> This is something that should be remembered.

Cheers,
David.

Reply via email to