0 说明
先执行:
sudo apt install htop如果由于特殊情况不行,那就进行源码安装。
1 源码
最新源码:https://github.com/htop-dev/htop/releases,选择 tar.gz 文件。
2 解压、编译、安装
注意 prefix 参数,用于指定安装目录(默认目录是 /usr/local)。
wget -c https://github.com/htop-dev/htop/archive/refs/tags/3.4.1.tar.gz
tar -zxvf 3.4.1.tar.gz
cd htop-3.4.1
mkdir $HONE/.local
./autogen.sh && ./configure --prefix=$HONE/.local && make
make install
htop --version
评论区