在Ubuntu系统下,更新Compton版本主要有以下两种方法:
sudo apt update。sudo apt upgrade compton。sudo add-apt-repository ppa:compton-compositor/stable,然后再执行sudo apt update和sudo apt upgrade compton。sudo apt install cmake libx11-dev libwayland-dev libxrandr-dev mesa-common-dev。git clone https://github.com/compton-compositor/compton.git,然后cd compton。mkdir build && cd build,cmake ..,make,sudo make install。更新完成后,可通过compton --version检查版本,也可使用killall compton && compton &或sudo systemctl restart compton重启Compton服务。