because I would lose a lot of files
Smart people have a backup. ;)

To avoid problems you really need to install everything from scratch.