zoukankan      html  css  js  c++  java
  • 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.
    
    >
  • 相关阅读:
    CentOS系统一键部署jdk,maven,tomcat,mysql
    使用sed在源文件上直接替换某一行的内容,只替换第一次找到的那行
    MLPerf 机器学习基准测试实战入门(一)NAVIDA-GNMT
    SpringBoot Controller接收参数的几种常用方式(转)
    使用延时队列DelayQueue
    Oracle、MySql、SQLServer 数据分页查询(转)
    SqlServer收缩日志
    防火墙升级导致产环境服务中止20小时的问题
    NFS相关
    jquery.validate不使用submit提交,而是使用button按钮提交
  • 原文地址:https://www.cnblogs.com/liujiaxin2018/p/14942564.html
Copyright © 2011-2022 走看看