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

摘要:
[ root@centos79software]#yuminstalldnfLoadedplugins:faststmirror,langpacksLoadingmirrorspeedsfromcachedhostfileepel/x86_64/metalink|6.8kB00:00:00*base:mirrors.huaweicloud.com*epel:mirrors.bfsu.edu.cn*extra:mirrors.huaweicloud.com*updates:mirrors.huaweicloud.commepel|4.7kB00:00-00(1/3):epel/x86-64/group_gz|96kB00:0:00:00(2/3):epel/x86_64/updateinfo|1.0MB00:00:00(3/3):eppel/x86_64/primary_db | 6.9MB00:00:01解决依赖项--˃运行事务检查……………………

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...》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Fastjson远程代码执行漏洞复现jQuery Easing动画效果扩展插件下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Postgresql在线备份和恢复

1.实验环境 OS: RedHat Linux Enterprisedb 6.3 DB: postgresql 9.3 PGHOME: /opt/PostgreSQL/9.3 PGDATA: /opt/PostgreSQL/9.3/data 归档目录:/opt/pg_archive 基础备份目录:/opt/base_archive --生产环境中归档和数...

(转)使用Ubuntu下的PyCharm进行ROS开发

然后,正文来了,我将在下面介绍2点环境配置,1.launch文件的关联,2.roslib的导入 launch文件的关联 pycharm自己是不支持launch文件的,但是我们还是希望用ide实现编写,例如这样: 具体做法就是在file/settings里面打开filetypes 然后在registered patterns里面添加*.launch文件...

使用Debian的kernelpackage系统创建自己的内核

使用Debian的kernel-package系统创建自己的内核 1.简介我曾经手动编译内核,这必须按顺序进行一系列的步骤;kernel-package就是写来完成这些所必须的步骤的.(现在他已超出这个范畴,但是实际上, 那正是他所完成的).这对于新手来说是相当重要的:make-kpkg完成了编译一个内核所需的所有步骤,并且内核的安装是一个快照.--...

我用Bash编写了一个扫雷游戏

我在编程教学方面不是专家,但当我想更好掌握某一样东西时,会试着找出让自己乐在其中的方法。比方说,当我想在 shell 编程方面更进一步时,我决定用 Bash 编写一个扫雷游戏来加以练习。 我在编程教学方面不是专家,但当我想更好掌握某一样东西时,会试着找出让自己乐在其中的方法。比方说,当我想在 shell 编程方面更进一步时,我决定用 Bash 编写一个扫雷...

常用CentOS 6/7 扩展源

1、系统自带 baseextrasupdates 2、epel yum install epel-release https://fedoraproject.org/wiki/EPEL 3、el(用于升级内核) rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http:...

Linux:bashd的环境配置文件

当bash启动时,系统自动调用的文件就是配置文件。 注意:用户自定义的命令别名,自订变量,在退出bash后就会失效。如果,你想保留的话,就要将它们写入配置文件中。 bash配置文件分为:全体系统的配置文件,用户个人偏好的配置文件。 一,login与non-login shell 在输入账户和密码后点击确认获得bash其实就执行了login指令 当在bash...