@Can > My recommendation is to use the backup feature within rekordbox, but be aware that it does NOT backup your music files!
Within rekordbox, go to File > Library > Backup Library and store the file, then on your new computer after installing rekordbox, go to File > Library > Restore Library