【Linux】解决Linux资料库没有htop rpm问题。安装htop监控

核心

yum install epel-release -y

yum install htop -y

[root@localhost ~]# wget -c https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm
--2020-11-14 03:23:20--  https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm
Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.8.193, 2402:f000:1:408:8100::1
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.8.193|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15264 (15K) [application/x-redhat-package-manager]
Saving to: ‘epel-release-7-12.noarch.rpm’

100%[===================================================================================>] 15,264      --.-K/s   in 0s      

2020-11-14 03:23:20 (208 MB/s) - ‘epel-release-7-12.noarch.rpm’ saved [15264/15264]

[root@localhost ~]# ll
total 24
-rw-------. 1 root root  2586 Nov 12 06:54 anaconda-ks.cfg
-rw-r--r--. 1 root root 15264 Sep 18  2019 epel-release-7-12.noarch.rpm
-rw-------. 1 root root  1866 Nov 12 06:54 original-ks.cfg
[root@localhost ~]# yum install epel-release-7-12.noarch.rpm 
Loaded plugins: fastestmirror, product-id, search-disabled-repos
Examining epel-release-7-12.noarch.rpm: epel-release-7-12.noarch
Marking epel-release-7-12.noarch.rpm as an update to epel-release-7-11.noarch
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be updated
---> Package epel-release.noarch 0:7-12 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                      Arch                   Version                 Repository                                 Size
=============================================================================================================================
Updating:
 epel-release                 noarch                 7-12                    /epel-release-7-12.noarch                  24 k

Transaction Summary
=============================================================================================================================
Upgrade  1 Package

Total size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : epel-release-7-12.noarch                                                                                  1/2 
  Cleanup    : epel-release-7-11.noarch                                                                                  2/2 
  Verifying  : epel-release-7-12.noarch                                                                                  1/2 
  Verifying  : epel-release-7-11.noarch                                                                                  2/2 
base/x86_64                                                                                           | 3.6 kB  00:00:00     
epel/x86_64/metalink                                                                                  | 6.7 kB  00:00:00     
epel/x86_64                                                                                           | 4.7 kB  00:00:00     
epel/x86_64/group_gz                                                                                  |  95 kB  00:00:00     
epel/x86_64/updateinfo                                                                                | 1.0 MB  00:00:03     
epel/x86_64/primary_db                                                                                | 6.9 MB  00:00:46     
extras/x86_64                                                                                         | 2.9 kB  00:00:00     
updates/x86_64                                                                                        | 2.9 kB  00:00:00     
zabbix                                                                                                | 2.9 kB  00:00:00     
zabbix-non-supported/x86_64                                                                           |  951 B  00:00:00     

Updated:
  epel-release.noarch 0:7-12                                                                                                 

Complete!
[root@localhost ~]# yum install htop
Loaded plugins: fastestmirror, product-id, search-disabled-repos
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: mirrors.bfsu.edu.cn
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package htop.x86_64 0:2.2.0-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                    Arch                         Version                            Repository                  Size
=============================================================================================================================
Installing:
 htop                       x86_64                       2.2.0-3.el7                        epel                       103 k

Transaction Summary
=============================================================================================================================
Install  1 Package

Total download size: 103 k
Installed size: 218 k
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/$releasever/epel/packages/htop-2.2.0-3.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for htop-2.2.0-3.el7.x86_64.rpm is not installed
htop-2.2.0-3.el7.x86_64.rpm                                                                           | 103 kB  00:00:00     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-12.noarch (@/epel-release-7-12.noarch)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : htop-2.2.0-3.el7.x86_64                                                                                   1/1 
  Verifying  : htop-2.2.0-3.el7.x86_64                                                                                   1/1 

Installed:
  htop.x86_64 0:2.2.0-3.el7                                                                                                  

Complete!
[root@localhost ~]#

以上即可完成。

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Powered By Z-BlogPHP 1.5.2 Zero

粤ICP备18035038号