要在Debian上更新Compton,您可以使用以下步驟:
打開終端:按下Ctrl + Alt + T
組合鍵或在應用程序菜單中找到終端。
更新系統包:首先,確保您的系統包是最新的。運行以下命令:
sudo apt update && sudo apt upgrade -y
安裝或更新Compton:如果您還沒有安裝Compton,可以使用以下命令進行安裝:
sudo apt install compton -y
如果您已經安裝了Compton,可以使用以下命令進行更新:
sudo apt install --only-upgrade compton -y
配置自動更新(可選):為了方便起見,您可以配置Compton的自動更新。首先,安裝unattended-upgrades
包:
sudo apt install unattended-upgrades -y
然后,啟用自動更新功能:
sudo dpkg-reconfigure unattended-upgrades
在提示時選擇“Yes”以啟用自動更新。
通過以上步驟,您可以確保Compton及其依賴項在Debian系統上保持最新狀態。