目 录CONTENT

文章目录

Linux 源码安装 htop

TalentQ
2025-11-14 / 0 评论 / 0 点赞 / 0 阅读 / 0 字

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
./autogen.sh && ./configure --prefix=~/.local && make
make install

htop --version

0

评论区