Changing R release to legacy version

Hello all,

I am needing to change my current running R version (4.3) to an older version (4.2 or 4.1.2). I have not found any useful information online on how to do this. I am running Ubuntu 22.04 and any tutorials on how it could be done don't work on my system or IDE.


Although it's possible to compile an earlier version from source (I've done it when apt was lagging), it's inadvisable from a sysadm perspective. The lagging problem is gone, so the drill from the terminal

sudo apt-get remove r-base-core
sudo apt-get autoremove
sudo apt-get update
sudo apt-get install r-base=4.2.*
sudo apt-mark hold r-base
R --version

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.