Closed
Description
The install script picks the standalone version instead of the rpm based version when installing on an Amazon Linux 2 ec2 instance. I manually had to use rpm to install, which is included in Amazon Linux 2. The script should also use rpm so that the systemctl service is installed as well
Running: curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run
gives the following output
Amazon Linux 2
Unsupported package manager.
Installing standalone release archive v3.7.2 from GitHub releases.
+ Reusing ~/.cache/code-server/code-server-3.7.2-linux-amd64.tar.gz
+ mkdir -p ~/.local/lib ~/.local/bin
+ tar -C ~/.local/lib -xzf ~/.cache/code-server/code-server-3.7.2-linux-amd64.tar.gz
+ mv -f ~/.local/lib/code-server-3.7.2-linux-amd64 ~/.local/lib/code-server-3.7.2
+ ln -fs ~/.local/lib/code-server-3.7.2/bin/code-server ~/.local/bin/code-server
Standalone release has been installed into ~/.local/lib/code-server-3.7.2
Please extend your path to use code-server:
PATH="$HOME/.local/bin:$PATH"
Then you can run:
code-server