[R] how to update R10.0 to R11.0 in Ubuntu linux

Michael Bibo michael_bibo at health.qld.gov.au
Tue May 25 16:04:03 CEST 2010


Mao Jianfeng <jianfeng.mao <at> gmail.com> writes:

> 
> Dear R-listers,
> 
> I am new to R in linux. And, I am now confused by updating R in Ubuntu
> 9.10 linux system. I would like to seek some advice on that problem.
> 
> I have done what are listed in CRAN linux installation guide:
> 
> 1. add an entry like "deb
> http://cran.cnr.berkeley.edu/bin/linux/ubuntu karmic/" in
> /etc/apt/sources.list file in my computer.
> 
> 2. To install the complete R system, use
> 
>    sudo apt-get update
>    sudo apt-get install r-base
> 
> I can correctly install R 10.0 monthes ago. But now I do know how to
> update R 10.0 to a higher R version.

Hi Mao,

The beauty of installing R (and indeed most Linux software) this way is that all
software upgrades are taken care of via a unified interface.  So, if you upgrade
your system, R should be upgraded automatically.

sudo apt-get update
sudo apt-get upgrade

should take care of it.

However, if you want to check a few things using the graphical interface, open
Synaptic Package Manager (System > Administration menu).  Choose Settings >
Repositories, and select the 'Third-Party Software' tab in the 'Software
Sources' dialogue.  Check that your Cran repository is still listed and the
checkbox is ticked.  If not, you will have to add it again.  Exit from the
'Software Sources' dialogue, and click 'Reload', 'Mark all Upgrades' then
'Apply' on the main menubar.  These last few steps are the equivalent of the
commands above.  You can also mark individual software packages for upgrade if
you do not wish to upgrade your whole system.

Finally, note that R-2.11.1 is only days away.

Michael Bibo
Queensland Health



More information about the R-help mailing list