【问题标题】:Upgrade R version from 3.2.2 to 3.3.3将 R 版本从 3.2.2 升级到 3.3.3
【发布时间】:2017-09-26 14:11:37
【问题描述】:

我目前在我的 linux 服务器上安装了 R-3.2.2 版本。有没有办法使用 yum install 命令将 R 版本升级到 R-3.3.3 版本。

当我执行 yum install R 时,我看到安装了最新版本 3.4.1。但我只想安装 R-3.3.3 版本。

yum --showduplicates list r | expand
*Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositories.
Loaded plugins: aliases, presto, product-id, refresh-packagekit, rhnplugin,
              : security, tmprepo, verify, versionlock
Installed Packages
R.x86_64                     3.3.3-1.el6                     @epel
Available Packages
R.x86_64                     3.2.3-4.el6                     HDP-UTILS-1.1.0.21
R.x86_64                     3.2.3-4.el6                     HDP-UTILS-2.5.0.0
R.x86_64                     3.2.3-4.el6                     HDP-UTILS-2.6.0.3
R.x86_64                     3.2.3-4.el6                     HDP-UTILS-2.6.0.3-8
R.x86_64                     3.4.1-1.el6                     epel

--------------------------------------------
sudo yum install R-3.3.3-1
Loaded plugins: aliases, presto, product-id, refresh-packagekit, rhnplugin, security, tmprepo, verify, versionlock
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
No package R-3.3.3-1 available.
Error: Nothing to do


sudo yum install r-3.3.3-1.el6
Loaded plugins: aliases, presto, product-id, refresh-packagekit, rhnplugin, security, tmprepo, verify, versionlock
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
No package r-3.3.3-1.el6 available.
  * Maybe you meant: R
Error: Nothing to do
sudo yum install R-3.3.3-1.el6
Loaded plugins: aliases, presto, product-id, refresh-packagekit, rhnplugin, security, tmprepo, verify, versionlock
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Nothing to do

【问题讨论】:

  • 源列表中的存储库地址是什么?上面有3.4吗?将其更改为 3,卸载 R,执行 apt-get update,然后重新安装。这应该工作
  • 我应该在哪里寻找存储库地址?
  • /etc/apt/sources.list 看看仓库地址旁边有没有'3.4'
  • 我的操作系统是 linux。我猜 /etc/apt/sources.list 与 ubuntu 有关。
  • 您的发行版到底是什么? Linux 是一个操作系统家族,Ubuntu 就是其中之一。该位置适用于 Ubuntu、Debian 和 Mint,这是我所知道的发行版。可能不适用于 CentOS、RedHat 等

标签: r linux


【解决方案1】:

更新

您的软件包列表显示R.x86_64 3.3.3-1.el6 是安装版本。你确定不是吗?

您可以从命令行使用R --version 或在R 中使用R.version.string 检查版本。如果不是3.3.3,我建议尝试sudo yum remove r 并重新安装所需的版本sudo yum install r-3.3.3-1.el6

更新结束

您应该首先找出确切的版本名称,然后按照here 的说明进行安装。像这样的:

$ yum --showduplicates list r | expand

将为您提供 repo 中可用版本的准确命名,并将其安装为(将 3.3.3 替换为您在列表中找到的版本)

$ sudo yum install r-3.3.3

【讨论】:

  • 我添加了 yum --showduplicates 命令的输出。但我无法安装 3.3.3 版本。
  • 没有,甚至 sudo yum install r-3.3.3-1.el6 都不起作用。
  • @bigdata,您的软件包列表显示 R.x86_64 3.3.3-1.el6 已安装版本。你确定不是吗? R --version 在 R 中说什么或 R.version.string 是什么?
猜你喜欢
  • 2020-09-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-03-14
  • 2010-12-09
  • 2020-05-23
  • 2012-04-20
  • 2017-05-24
相关资源
最近更新 更多