# htop 高级的top 网站:https://htop.dev/ 开源:https://github.com/htop-dev/htop ## Usage 通过yum源安装: ``` yum install htop ``` 源码编译: ``` git clone https://github.com/htop-dev/htop ./autogen.sh && ./configure && make ``` ## 源码分析 编译分析: 注意关注 cofigure.ac 和 Makefile.am 两个文件,检测系统类型,编译依赖是否满足, 拼凑编译参数。 ``` dist-hook: $(top_distdir)/configure @if grep 'pkg_m4_absent' '$(top_distdir)/configure'; then \ echo 'configure is generated without pkg.m4. Please supply pkg.m4 and run ./autogen.sh to rebuild the configure script.'>&2; \ (exit 1); \ else :; \ fi ```