Skip to content
Prev 11490 / 15075 Next

Removing (completely) TCl/Tk

On 09/12/2015 16:12, Federico Calboli wrote:
You could edit the list to remove directories such as

usr
usr/local
usr/local/bin
usr/local/include
usr/local/lib
usr/local/lib/pkgconfig
usr/local/man
usr/local/man/man1
usr/local/man/man3
usr/local/share
usr/local/share/man
usr/local/share/man/mann

then use a (shell? R?) script on the list.

Also, the R-devel manual sources contains the commented block:

@c Maybe too dangerous for naive users.
@c The second could be uninstalled by an @R{} script like

@c @example
@c lis <- system2("pkgutil", "--files org.r-project.x86_64.texinfo", 
stdout = TRUE)
@c setwd("/")
@c file.remove(rev(lis))
@c @end example

@c @noindent
@c run as the owner of @file{/usr/local}.

where file.remove will remove empty directories (and rev() ensures they 
are emptied first).