Xray-install is a Bash script that automates installation and upgrades of Xray on Linux systems.
The tool solves the problem of deploying Xray across different Linux distributions by providing a single installation script that handles systemd-based systems including CentOS, Debian, and OpenSUSE. It manages the installation of Xray-core binaries, geodata files (geoip.dat and geosite.dat), and systemd service configuration. The script supports both standard Linux distributions and Alpine or Gentoo Linux through separate OpenRC-specific installation paths. Users can perform basic operations like installing, upgrading, and removing Xray, with options to update only geodata files or to preserve configuration during removal.
Developers should choose this tool if they need to deploy Xray across multiple Linux systems without manually handling binary downloads, service file creation, and configuration management. It suits environments where systemd is available, or Alpine and Gentoo systems using OpenRC. The script offers flexibility through command options that control whether to use root or unprivileged user accounts, whether to include geodata updates, whether to install pre-release versions, and whether to configure log rotation.
The project shows consistent maintenance with regular updates to support new Xray releases and geodata versions. Development activity indicates active engagement with user needs through support for multiple Linux distributions and initialization systems. The maintainers have established clear documentation in multiple languages and provide specialized installation paths for less common distributions, demonstrating attention to edge cases beyond the most popular platforms.