{"id":13595681,"url":"https://github.com/DhavalKapil/luaver","last_synced_at":"2025-04-09T13:33:09.790Z","repository":{"id":49275381,"uuid":"58576657","full_name":"DhavalKapil/luaver","owner":"DhavalKapil","description":"Lua Version Manager - Managing and switching between different versions of Lua, LuaJIT and Luarocks made easy","archived":false,"fork":false,"pushed_at":"2022-09-12T22:06:43.000Z","size":175,"stargazers_count":269,"open_issues_count":21,"forks_count":33,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-10-29T22:36:40.923Z","etag":null,"topics":["lua","luajit","luarocks","version"],"latest_commit_sha":null,"homepage":"https://dhavalkapil.com/luaver","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DhavalKapil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-11T20:01:07.000Z","updated_at":"2024-10-28T18:01:26.000Z","dependencies_parsed_at":"2022-08-20T15:00:22.753Z","dependency_job_id":null,"html_url":"https://github.com/DhavalKapil/luaver","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhavalKapil%2Fluaver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhavalKapil%2Fluaver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhavalKapil%2Fluaver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhavalKapil%2Fluaver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DhavalKapil","download_url":"https://codeload.github.com/DhavalKapil/luaver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223394695,"owners_count":17138598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","luajit","luarocks","version"],"created_at":"2024-08-01T16:01:55.436Z","updated_at":"2024-11-06T18:31:29.266Z","avatar_url":"https://github.com/DhavalKapil.png","language":"Shell","readme":"# Lua Version Manager - luaver\n\n[![Build Status](https://travis-ci.org/DhavalKapil/luaver.svg?branch=master)](https://travis-ci.org/DhavalKapil/luaver) [![Join the chat at https://gitter.im/DhavalKapil/luaver](https://badges.gitter.im/DhavalKapil/luaver.svg)](https://gitter.im/DhavalKapil/luaver?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge) [![License](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE.md)\n\n**luaver** helps to manage and switch between different versions of Lua, LuaJIT and Luarocks.\n\n## Features\n\n1. Installs/Uninstalls any version of Lua, LuaJIT or luarocks with a single command.\n2. Switches between different versions of 'Lua', 'LuaJIT' or 'Luarocks' easily, without glitches.\n3. Consistency between 'Lua' and 'Luarocks' maintained - Rocks and configurations for different lua versions are stored differently.\n4. Every terminal session can have a different environment configured. Default versions can also be configured.\n\n![gif animation showing usage of luaver](http://i.imgur.com/dCCvNfR.gif)\n\n## Requirements\n\nRequires `make`, either of `wget` or `curl`.\n\nYou may need to install some dependencies:\n\n```sh\nsudo apt-get install libreadline-dev \n```\n\nAlso, if you are planning to install older versions of Lua(which are 32-bit) on 64-bit machines, you may need to install some 32-bit libraries: \n\n```sh\nsudo apt-get install lib32ncurses5-dev\n```\n\n## Installation\n\n### Install script\n\nYou can install from the script directly:\n\n```sh\ncurl -fsSL https://raw.githubusercontent.com/dhavalkapil/luaver/master/install.sh | sh -s - -r v1.1.0\n```\n\nFollow the instructions which appears after the luaver installation.\n\n### Install using `git`\n\n1. Clone this repository into `~/.luaver`:\n\n    ```sh\n    $ git clone https://github.com/DhavalKapil/luaver.git ~/.luaver\n    ```\n\n2. Add `. ~/.luaver/luaver` to your profile such as `.bashrc` or `.zshrc`:\n\n    ```sh\n    $ echo \"[ -s ~/.luaver/luaver ] \u0026\u0026 . ~/.luaver/luaver\" \u003e\u003e ~/.bashrc\n    $ echo \"[ -s ~/.luaver/completions/luaver.bash ] \u0026\u0026 . ~/.luaver/completions/luaver.bash\" \u003e\u003e ~/.bashrc\n    ```\n\n3. Reload `.bashrc` or restart the shell to load `luaver`:\n\n   ```sh\n   $ . ~/.bashrc\n   ```\n\n### Update using `git`\n\n_Note: This method only works if luaver was installed using `git`._\n\n```\n$ cd ~/.luaver \u0026\u0026 git fetch origin \u0026\u0026 git reset --hard origin/master\n```\n\nAdditional works may be required.\n\n## Usage\n\n### Sample usage:\n\n```sh\nluaver install 5.3.1             # Installs Lua version 5.3.1\nluaver install 5.3.0             # Installs Lua version 5.3.0\nluaver use 5.3.1                 # Switches to Lua version 5.3.1\nluaver install-luarocks 2.3.0    # Installs Luarocks version 2.3.0\nluaver uninstall 5.3.0           # Uninstalls Lua version 5.3.0\n```\n\n### Complete usage:\n\n```sh\nluaver help\n\nUsage:\n   luaver help                              Displays this message\n   luaver install \u003cversion\u003e                 Installs lua-\u003cversion\u003e\n   luaver use \u003cversion\u003e                     Switches to lua-\u003cversion\u003e\n   luaver set-default \u003cversion\u003e             Sets \u003cversion\u003e as default for lua\n   luaver unset-default                     Unsets the default lua version\n   luaver uninstall \u003cversion\u003e               Uninstalls lua-\u003cversion\u003e\n   luaver list                              Lists installed lua versions\n   luaver install-luajit \u003cversion\u003e          Installs luajit-\u003cversion\u003e\n   luaver use-luajit \u003cversion\u003e              Switches to luajit-\u003cversion\u003e\n   luaver set-default-luajit \u003cversion\u003e      Sets \u003cversion\u003e as default for luajit\n   luaver unset-default-luajit              Unsets the default luajit version\n   luaver uninstall-luajit \u003cversion\u003e        Uninstalls luajit-\u003cversion\u003e\n   luaver list-luajit                       Lists installed luajit versions\n   luaver install-luarocks \u003cversion\u003e        Installs luarocks\u003cversion\u003e\n   luaver use-luarocks \u003cversion\u003e            Switches to luarocks-\u003cversion\u003e\n   luaver set-default-luarocks \u003cversion\u003e    Sets \u003cversion\u003e as default for luarocks\n   luaver unset-default-luarocks            Unsets the default luarocks version\n   luaver uninstall-luarocks \u003cversion\u003e      Uninstalls luarocks-\u003cversion\u003e\n   luaver list-luarocks                     Lists all installed luarocks versions\n   luaver current                           Lists present versions being used\n   luaver version                           Displays luaver version\n```\n\n## Contribution\n\nFeel free to [file issues](https://github.com/DhavalKapil/luaver/issues) and submit [pull requests](https://github.com/DhavalKapil/luaver/pulls) – contributions are welcome.\n\n## License\n\nluaver is licensed under the [MIT license](http://dhaval.mit-license.org/).\n","funding_links":[],"categories":["Shell","Version Managers"],"sub_categories":["Lua"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDhavalKapil%2Fluaver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDhavalKapil%2Fluaver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDhavalKapil%2Fluaver/lists"}