我想知道那里只有Redhat版本4和5,并且我不知道哪个版本最适合我的操作系统. Texinfo问题在这里由于我今天已经问了6个以上的问题. Stackoverflow不喜欢我问更多问题.因此,我将以下问题放入这个问题,对此感到抱歉.您好,我试图使用Expect自动登录到远程服务器并安装R.当我安装R时,他们提出各种提示,询问该软件包将占用xx MB,这样可以吗?"?安装命令:su -c 'yum install R R-core R-core-devel R-devel'您需要输入几次以完成安装.我的问题是: 是否存在yum install的标志,您可以告诉机器安装我要安装的所有内容.不要问我因此,我可以在没有任何提示的情况下安装这四个软件包. 如果很难在安静模式"下安装,如何在Expect中编写while循环,以便它将自动发送Y:Pseudo Code Not Working!send -- "sudo su -c yum install ...."while ("Expect '*Is it OK [Y/N]*'"){send 'Y\r'# if (expect 'user$'){break}}非常感谢.解决方案这可能是由于RHEL6的企业Linux附加软件包(EPEL)仓库中存在R RPM.您可以在 Fedora网站上找到有关EPEL的更多信息.您需要配置yum以使用EPEL.最简单的方法是为您的平台安装epel-release软件包,例如su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'或su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm'例如.您可以使用yum安装R,例如你可能会想要su -c 'yum install R R-core R-core-devel R-devel'以便您获取构建其他附加软件包所需的软件包,因为大多数CRAN软件包不在EPEL中.目前,EPEL中R的最新版本为3.0.1,因此最新版本3.0.2后面有一个补丁发布点.I want to install R on my Red hat cluster which has the version below:$ cat /etc/redhat-releaseRed Hat Enterprise Linux Server release 6.3 (Santiago)When I went to R's homepage and this is what in their repository:I am wondering there is only redhat version 4 and 5 there and I don't know which version will best fit my operating system.Texinfo Problem Goes HereSince I have asked more than 6 questions today. Stackoverflow doesn't like me to ask more questions. So I will put the following questions into this question, sorry about that.Hi, I was trying to use Expect to automatically log into a remote server and install R.When I install R, they came up with all kinds of prompts asking 'The package will take xx MB Is that OK with you'?The command to install:su -c 'yum install R R-core R-core-devel R-devel'You need to type in Yes for a few times to finish the installation.My question is:Is there a flag for yum install that you can tell the machine to install everything I want you to install. Don't ask me. So I can install those four packages without any prompt.If that is hard to install in the 'quiet mode', how to write a while loop in Expect so it will send the Y automatically:Pseudo Code Not Working!send -- "sudo su -c yum install ...."while ("Expect '*Is it OK [Y/N]*'"){send 'Y\r'# if (expect 'user$'){break}}Thanks a lot in advance. 解决方案 This is likely due to there being R RPMs in the Extra Packages for Enterprise Linux (EPEL) repos for RHEL6. You can find out more about EPEL on the Fedora website.You need to configure yum to use EPEL. The easiest way to do this is to install the epel-release package for your platform, egsu -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'orsu -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm'for example. The you can use yum to install R, e.g. you will probably wantsu -c 'yum install R R-core R-core-devel R-devel'so that you pull in the packages needed to build other add-on packages as most CRAN package are not in EPEL.At the moment, the latest version of R in EPEL is 3.0.1, so one patch release point behind the latest version 3.0.2. 这篇关于在Redhat 6.3上安装R 3+的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-01 22:51