Skip to content

Folder USER/src - can be deleted safely? #436

Answered by postmodern
xdeama asked this question in Q&A
Discussion options

You must be logged in to vote

You technically can delete them, however there are reasons why it's a good idea to keep it around.

  1. It allows re-installing without re-downloading.
  2. It leaves a papertrail for how you installed the ruby version.
  3. It allows you to apply one-off patches and re-compile/re-install; might be necessary for an emergency security release or if you want to mess around with patches.
  4. If you ever need to debug a ruby segfault using gdb, gdb can print the actual lines of the source code where the crash is occurring by reading them from the source files. If the source code which ruby was compiled from is deleted, gdb will only print the filename/line number.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@xdeama
Comment options

Answer selected by xdeama
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants