centos7.9中安装dnf;bash: dnf: command not found...

1、问题

[root@centos79 software]# dnf install R
bash: dnf: command not found...

 

2、安装dnf

[root@centos79 software]# yum install epel-release
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved
…………
…………
Running transaction
  Installing : epel-release-7-11.noarch                                                                                          1/1
  Verifying  : epel-release-7-11.noarch                                                                                          1/1

Installed:
  epel-release.noarch 0:7-11

Complete!
[root@centos79 software]# yum install dnf
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                          | 6.8 kB  00:00:00
 * base: mirrors.huaweicloud.com
 * epel: mirrors.bfsu.edu.cn
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
epel                                                                                                          | 4.7 kB  00:00:00
(1/3): epel/x86_64/group_gz                                                                                   |  96 kB  00:00:00
(2/3): epel/x86_64/updateinfo                                                                                 | 1.0 MB  00:00:00
(3/3): epel/x86_64/primary_db                                                                                 | 6.9 MB  00:00:01
Resolving Dependencies
--> Running transaction check
…………
…………
Installed:
  dnf.noarch 0:4.0.9.2-2.el7_9

Dependency Installed:
  dnf-data.noarch 0:4.0.9.2-2.el7_9           libcomps.x86_64 0:0.1.8-14.el7              libdnf.x86_64 0:0.22.5-2.el7_9
  libmodulemd.x86_64 0:1.6.3-1.el7            librepo.x86_64 0:1.8.1-8.el7_9              libsolv.x86_64 0:0.6.34-4.el7
  python2-dnf.noarch 0:4.0.9.2-2.el7_9        python2-hawkey.x86_64 0:0.22.5-2.el7_9      python2-libcomps.x86_64 0:0.1.8-14.el7
  python2-libdnf.x86_64 0:0.22.5-2.el7_9

Complete!

 

3、测试dnf

[root@centos79 software]# dnf install R
Extra Packages for Enterprise Linux 7 - x86_64                                                        20 MB/s |  17 MB     00:00
CentOS-7 - Base                                                                                       24 MB/s |  10 MB     00:00
CentOS-7 - Updates                                                                                   3.4 MB/s |  10 MB     00:03
CentOS-7 - Extras                                                                                    938 kB/s | 292 kB     00:00
Dependencies resolved.
=====================================================================================================================================
 Package                                         Arch             Version                                       Repository      Size
=====================================================================================================================================
Installing:
 R                                               x86_64           3.6.0-1.el7                                   epel            30 k
Installing dependencies:
 R-core                                          x86_64           3.6.0-1.el7                                   epel            57 M
 R-core-devel                                    x86_64           3.6.0-1.el7                                   epel           109 k
 R-devel                                         x86_64           3.6.0-1.el7                                   epel            30 k
…………
…………
  texlive-xkeyval-2:svn27995.2.6a-45.el7.noarch
  texlive-xunicode-2:svn23897.0.981-45.el7.noarch
  texlive-zapfchan-2:svn28614.0-45.el7.noarch
  texlive-zapfding-2:svn28614.0-45.el7.noarch
  tk-1:8.5.13-6.el7.x86_64
  tk-devel-1:8.5.13-6.el7.x86_64
  xz-devel-5.2.2-1.el7.x86_64
  zziplib-0.13.62-12.el7.x86_64

Complete!

 

4、测试是否安装R成功

[root@centos79 software]# R

R version 3.6.0 (2019-04-26) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type license() or licence() for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type contributors() for more information and
citation() on how to cite R or R packages in publications.

Type demo() for some demos, help() for on-line help, or
help.start() for an HTML browser interface to help.
Type q() to quit R.

>

 

centos7.9中安装dnf;bash: dnf: command not found...

上一篇:google protobuf的原理和思路提炼


下一篇:1030 Travel Plan (30 分)