2016-02-16 20:26:44 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Put the base packages to unhold
|
|
|
|
for package in r-base r-base-core r-base-dev r-base-html r-cran-boot r-cran-class r-cran-cluster r-cran-codetools r-cran-foreign r-cran-kernsmooth r-cran-lattice r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-doc-html r-recommended ; do apt-mark unhold $package; done
|
|
|
|
|
|
|
|
# Remove the old r packages
|
2016-02-17 17:05:38 +01:00
|
|
|
apt-get purge r-base-* r-cran-* -y --force-yes
|
|
|
|
apt-get autoremove -y
|
2016-02-18 02:14:31 +01:00
|
|
|
apt-get update
|
2016-02-16 20:26:44 +01:00
|
|
|
|
|
|
|
# Remove the CRAN packages
|
2016-02-17 17:05:38 +01:00
|
|
|
rm -fr /usr/lib/R/site-library /usr/local/lib/R/site-library
|
2016-02-16 20:26:44 +01:00
|
|
|
rm -fr /var/cache/R/*
|
|
|
|
|
|
|
|
exit 0
|