Skip to content

Instantly share code, notes, and snippets.

@farrokhi
Created November 15, 2025 14:06
Show Gist options
  • Select an option

  • Save farrokhi/c14f6466721f4dd4438b8edf8aa02ac7 to your computer and use it in GitHub Desktop.

Select an option

Save farrokhi/c14f6466721f4dd4438b8edf8aa02ac7 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Disable PVE enterprise repository
sed -i 's/^Types:/#Types:/' /etc/apt/sources.list.d/pve-enterprise.sources
sed -i 's/^URIs:/#URIs:/' /etc/apt/sources.list.d/pve-enterprise.sources
sed -i 's/^Suites:/#Suites:/' /etc/apt/sources.list.d/pve-enterprise.sources
sed -i 's/^Components:/#Components:/' /etc/apt/sources.list.d/pve-enterprise.sources
sed -i 's/^Signed-By:/#Signed-By:/' /etc/apt/sources.list.d/pve-enterprise.sources
# Disable Ceph enterprise repository (if it exists)
if [ -f /etc/apt/sources.list.d/ceph.sources ]; then
sed -i 's/^Types:/#Types:/' /etc/apt/sources.list.d/ceph.sources
sed -i 's/^URIs:/#URIs:/' /etc/apt/sources.list.d/ceph.sources
sed -i 's/^Suites:/#Suites:/' /etc/apt/sources.list.d/ceph.sources
sed -i 's/^Components:/#Components:/' /etc/apt/sources.list.d/ceph.sources
sed -i 's/^Signed-By:/#Signed-By:/' /etc/apt/sources.list.d/ceph.sources
fi
cat > /etc/apt/sources.list.d/proxmox.sources << 'EOF'
Types: deb
URIs: http://download.proxmox.com/debian/pve
Suites: trixie
Components: pve-no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment