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.

>
复制代码

 

posted @   小鲨鱼2018  阅读(9528)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2020-06-27 linux系统下安装R-3.5.3
2020-06-27 linux 系统 PCRE(Perl Compatible Regular Expressions) 相关
2020-06-27 linux 系统中 如何安装 R
2020-06-27 linux 系统 安装 gfortran
点击右上角即可分享
微信分享提示