将R版本从3.2.2升级到3.3.3

时间:2017-09-22 18:37:19

标签: r linux

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

当我安装yum安装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

1 个答案:

答案 0 :(得分:0)

<强>更新

您的包裹清单显示R.x86_64 3.3.3-1.el6已安装版本。你确定不是吗?

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

结束

您应首先找到确切的版本名称,然后按照here所述进行安装。像这样:

sudo yum install r-3.3.3-1.el6

将为您提供从您的仓库中获得的版本的确切命名,并将其安装为(将3.3.3替换为您在列表中找到的版本)

$ yum --showduplicates list r | expand