Rocky Linux9 安装 Htop

作者: 温新

分类: 【Linux】

阅读: 1797

时间: 2022-08-27 15:18:53

hi,我是温新,一名PHPer

第一步:更新 Rocky Linux

<span style="color: rgb(255, 192, 0);">sudo dnf -y update</span><br></br>

第二步:启用 CRB 存储库

<span style="color: rgb(255, 192, 0);">sudo dnf config-manager --set-enabled crb</span><br></br>

第三步:安装 EPEL

<span style="box-sizing: border-box;color: rgb(171, 178, 191);padding-right: 0.1px"><span style="box-sizing: border-box;color: rgb(232, 191, 106) !important">sudo</span> dnf <span style="box-sizing: border-box;color: rgb(209, 154, 102) !important">-y</span> install \</span><br></br><span style="box-sizing: border-box;color: rgb(171, 178, 191);padding-right: 0.1px">    https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \</span><br></br><span style="box-sizing: border-box;color: rgb(171, 178, 191);padding-right: 0.1px">    https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm</span>

第四步:安装 htop

<span style="box-sizing: border-box;color: rgb(171, 178, 191);padding-right: 0.1px"><span style="box-sizing: border-box;color: rgb(98, 151, 85) !important"># 安装 htop</span></span><br></br><span style="box-sizing: border-box;color: rgb(171, 178, 191);padding-right: 0.1px"><span style="box-sizing: border-box;color: rgb(232, 191, 106) !important">sudo</span> dnf <span style="box-sizing: border-box;color: rgb(209, 154, 102) !important">-y</span> install htop</span><br></br><span style="box-sizing: border-box;color: rgb(171, 178, 191);padding-right: 0.1px"><span style="box-sizing: border-box"></span></span><br></br><span style="box-sizing: border-box;color: rgb(171, 178, 191);padding-right: 0.1px"><span style="box-sizing: border-box;color: rgb(98, 151, 85) !important"># 查看 htop 版本</span></span><br></br><span style="box-sizing: border-box;color: rgb(171, 178, 191);padding-right: 0.1px">htop <span style="box-sizing: border-box;color: rgb(209, 154, 102) !important">--version</span></span>

卸载 htop

<span style="color: rgb(255, 192, 0);">sudo dnf -y autoremove htop</span><br></br>
请登录后再评论