Skip to content

Package Manager

Repository Installation

sudo curl -fsSL https://deb.sagernet.org/gpg.key -o /etc/apt/keyrings/sagernet.asc
sudo chmod a+r /etc/apt/keyrings/sagernet.asc
echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/sagernet.asc] https://deb.sagernet.org/ * *" | \
  sudo tee /etc/apt/sources.list.d/sagernet.list > /dev/null
sudo apt-get update
sudo apt-get install serenity
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://sing-box.app/rpm.repo
sudo dnf install serenity
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://sing-box.app/rpm.repo
sudo yum install serenity

Manual Installation

bash <(curl -fsSL https://serenity.app/serenity/deb-install.sh)
bash <(curl -fsSL https://sing-box.app/serenity/rpm-install.sh)
bash <(curl -fsSL https://sing-box.app/serenity/arch-install.sh)

Service Management

For Linux systems with systemd, usually the installation already includes a serenity service, you can manage the service using the following command:

Operation Command
Enable sudo systemctl enable serenity
Disable sudo systemctl disable serenity
Start sudo systemctl start serenity
Stop sudo systemctl stop serenity
Kill sudo systemctl kill serenity
Restart sudo systemctl restart serenity
Logs sudo journalctl -u serenity --output cat -e
New Logs sudo journalctl -u serenity --output cat -f