Hi folks: I have a feeling this must be a FAQ, but I did not find the answer in R Installation and Administration manual. Please point me to the right place to look for answer to this question if it's already answered. I am running 1.4.1 on an Alpha PCA56 (aka 164SX) running Redhat Linux 7.1 (kernel 2.4.19-pre4). I built 1.4.1 from sources and it is installed in /usr/local (the default). I did compile and install some additional packages for 1.4.1 besides the recommended ones. I want to upgrade to 1.5.0 now (it is being built now). Do I need to uninstall 1.4.1 before I "make install" 1.5.0? If yes, how exactly? Thanks. Rajiv PS: 1.4.1 info:> version_ platform alphapca56-unknown-linux-gnu arch alphapca56 os linux-gnu system alphapca56, linux-gnu status major 1 minor 4.1 year 2002 month 01 day 30 language R System info: $ uname -a Linux <hostname> 2.4.19-pre4 #1 Mon Apr 1 01:01:11 PST 2002 alpha unknown -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
2002-May-01 07:42 UTC
[R] upgrading to 1.5.0/uninstalling 1.4.1 on Linux
Rajiv Prasad <rajiv.prasad at charter.net> writes:> Hi folks: > > I have a feeling this must be a FAQ, but I did not find the answer in R > Installation and Administration manual. Please point me to the right place > to look for answer to this question if it's already answered. > > I am running 1.4.1 on an Alpha PCA56 (aka 164SX) running Redhat Linux 7.1 > (kernel 2.4.19-pre4). I built 1.4.1 from sources and it is installed in > /usr/local (the default). I did compile and install some additional packages > for 1.4.1 besides the recommended ones. > > I want to upgrade to 1.5.0 now (it is being built now). Do I need to > uninstall 1.4.1 before I "make install" 1.5.0? If yes, how exactly?Most likely, very little harm would come from just installing on top of the old version. It does have the advantage of keeping previously installed packages in place, but also the risk that some of them may be broken with the new version. Removing your current /usr/local/lib/R is a sure kill, but you could also mv /usr/local/lib/R /usr/local/lib/R-1.4.1 mv /usr/local/bin/R /usr/local/bin/R-1.4.1 And -- this is the important bit -- edit the /usr/local/bin/R-1.4.1 shell script and set R_HOME_DIR to the new location. This leaves the old version runnable as "R-1.4.1" until you see fit to remove it. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 30 Apr 2002, Rajiv Prasad wrote: |Hi folks: |I am running 1.4.1 on an Alpha PCA56 (aka 164SX) running Redhat Linux 7.1 |(kernel 2.4.19-pre4). I built 1.4.1 from sources and it is installed in |/usr/local (the default). I did compile and install some additional packages |for 1.4.1 besides the recommended ones. | |I want to upgrade to 1.5.0 now (it is being built now). Do I need to |uninstall 1.4.1 before I "make install" 1.5.0? If yes, how exactly? I am not a specialist with compiling on UNIX but I suggest to remove (or rather rename the subdirectory for safety) the previous files before you install the new ones. Generally, it is not necessary, because (I think) the old files will be overwritten, but in the case that there are not corresponding new file, the old unnecessary file may still stay there and take your disk space. I do not think there is any automatic way to remove the old files. You have to find those yourself and remove them manually. I have R 1.4.0 on RH 7.1 on I686 and I installed it using pre-compiled rpm. The R resides in /usr/lib/R /usr/share/doc/R-base-1.4.0 I think these directories can simply be removed. In addition, there are documentation files in shared directories /usr/share/info /usr/man/man1 here you should remove the files, associated with R1.4.1 only. And be careful, if you are removing directories as root!!!! You might consider making an rpm from the sources first, and thereafter install as rpm. It is much more easy to remove. But I have no experience here. Perhaps it helps. Ott Toomet -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thanks to Peter Dalgaard and Ott Toomet for answering my question. I'd stick with renaming the 1.4.1 R directories and files to have the old version run for a while until I clean out any of my potentially broken R programs/scripts. By the way, it does seem that building an RPM would be better for uninstalling. I have a couple of questions in this regard. (This is getting a bit off-topic, so please reply off the list.) 1. I'd like to get pointers as how to set up my own RPM build from R sources (1.5.0 for now, later versions in future). 2. How would I handle installation/uninstallation of contributed packages? Is it possible to build RPMs for them too? Thanks a lot. Rajiv -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._