【发布时间】: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 等