feat: update Xanmod repository setup with secure key handling and add jq package

This commit is contained in:
kake26 2025-06-07 22:47:20 -05:00
parent 59198cb6b4
commit ac31a224a2
Signed by: kake26
GPG key ID: E0A989B571D1F99F

View file

@ -51,12 +51,16 @@ download_latest_deb() {
echo "Updating system and installing base tools..."
sudo apt update
sudo apt upgrade -y
sudo apt install curl git wget btrfs-progs -y
sudo apt install curl git wget btrfs-progs jq -y
# Install Xanmod kernel
echo "Installing Xanmod kernel..."
echo 'deb http://deb.xanmod.org releases main' | sudo tee /etc/apt/sources.list.d/xanmod-kernel.list
wget -qO - https://dl.xanmod.org/gpg.key | sudo apt-key add -
# Ensure gnupg is installed for key management
sudo apt install gnupg -y
# Download and store the Xanmod GPG key in /etc/apt/keyrings
wget -qO - https://dl.xanmod.org/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/xanmod-keyring.gpg
# Add the Xanmod repository with signed-by
echo "deb [signed-by=/etc/apt/keyrings/xanmod-keyring.gpg] http://deb.xanmod.org releases main" | sudo tee /etc/apt/sources.list.d/xanmod-kernel.list
sudo apt update
sudo apt install linux-xanmod-x64v3 -y
# sudo update-grub Grok addded this but its not needed