Adicionar/remover repositórios apt
#!/bin/bash
NAME="$1"
KEY="$2"
REPO="$3"
sudo sh -c "curl -s -L $KEY | gpg --dearmor > /etc/apt/trusted.gpg.d/$NAME.gpg"
echo $REPO | sudo tee /etc/apt/sources.list.d/$NAME.list
sudo apt update -qq
#!/bin/bash
NAME="$1"
sudo rm -rfv /etc/apt/trusted.gpg.d/$NAME.gpg /etc/apt/sources.list.d/$NAME.list
sudo apt update -qq