# CentOS 8 如何安装 htop

**URL:** <https://www.isharkfly.com/t/centos-8-htop/547>\
**Category:** DevOps\
**Tags:** centos\
**Created:** [October 4, 2020, 2:21pm UTC](https://www.isharkfly.com/t/centos-8-htop/547 "2020-10-04T14:21:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 4, 2020, 2:21pm UTC](https://www.isharkfly.com/t/centos-8-htop/547/1 "2020-10-04T14:21:12Z")

</div>

如果你安装使用的是 CentOS 的话，你可能没有办法直接安装 htop。

你会得到下面的信息：

```auto
[root@vps-f2a02f66 discourse]# htop
-bash: htop: command not found

```

## 解决办法

你可以将 RHEL 添加到你的仓库中。

运行下面的命令：

```auto
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

```

上面的命令将会添加 RHEL 到仓库中，在过程中你需要输入 Y 来同意校验。

在完成上面的操作后，再执行

```auto
yum install htop

```

来执行安装。

在完整完成后，可使用 htop 命令来查看系统的运行情况。

![htop-install-01](https://www.isharkfly.com/images/transparent.png)

如果你可以看到上面的界面，则表明 htop 已经安装成功。
