about the lua version installed on armbian , it seems confusing

45 Views Asked by At

The armbian img is "Armbian_23.05.0_amlogic_s905l3a_bullseye_5.15.110_server_2023.05.02"

I want use luasocket, but it is not support lua 5.4, so lua 5.1 was installed, however......

Which lua version installed? i want lua 5.1 only, and what can i do?

dpkg -l

lua -v

remove lua5.4

which lua

install lua5.1

1

There are 1 best solutions below

0
On

It looks like Lua 5.1 is installed. You can use the lua5.1 command to run it.

You can also use update-alternatives --config lua-interpreter (and similar for lua-compiler) to choose which version should run when you use the lua command without a version number.