安裝必要套件
$ sudo apt-get update
$ sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
新增 GPG key
$ sudo mkdir -p /etc/apt/keyrings
$ curl -fsSL https://danny50610.github.io/apt-repo/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/danny50610.gpg
Use the following command to set up the repository:
$ echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/danny50610.gpg] https://danny50610.github.io/apt-repo \
$(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/danny50610.list > /dev/null
記得先跑一次 update
$ sudo apt-get update