Debian / Ubuntu
在 Debian、Ubuntu 及其他使用 APT 的發行版上,從 Dae Universe 套件來源安裝 honk。
已設定 sudo 的一般使用者選擇 sudo 標籤;已進入 root shell 時選擇 root 標籤。
以下步驟需要 systemd 和 Linux 6.12 或更新版本。以 uname -r 查看核心版本,其餘需求見核心需求。
1. 安裝 curl
sh
sudo apt update
sudo apt install curlsh
apt update
apt install curl2. 新增套件來源
直接下載來源設定檔,它是純文字的 deb822 格式,APT 1.1 起即可讀取。
sh
sudo curl -fsSL -o /etc/apt/sources.list.d/daeuniverse.sources https://daeuniverse.pages.dev/daeuniverse.sourcessh
curl -fsSL -o /etc/apt/sources.list.d/daeuniverse.sources https://daeuniverse.pages.dev/daeuniverse.sources3. 匯入 GPG 公鑰
sh
sudo curl -fsSL -o /usr/share/keyrings/daeuniverse-archive-goose.gpg https://daeuniverse.pages.dev/daeuniverse-archive-goose.gpgsh
curl -fsSL -o /usr/share/keyrings/daeuniverse-archive-goose.gpg https://daeuniverse.pages.dev/daeuniverse-archive-goose.gpg4. 安裝 honk
sh
sudo apt update
sudo apt install honksh
apt update
apt install honk繼續閱讀首次執行。
升級
升級套件後,重新啟動 honk 並檢查狀態。套件的安裝指令碼只重新載入 systemd 服務定義,不會重新啟動正在執行的程序。
sh
sudo apt update && sudo apt install --only-upgrade honk
sudo systemctl restart honk.service
sudo systemctl status honk.service --no-pagersh
apt update && apt install --only-upgrade honk
systemctl restart honk.service
systemctl status honk.service --no-pager解除安裝
sh
sudo systemctl disable --now honk.service
sudo apt remove honksh
systemctl disable --now honk.service
apt remove honk主機上的設定目錄 /etc/honk 和執行時狀態目錄 /var/lib/honk 會保留。如果修改過 data_dir,該目錄也會保留。
