Cocuhbase new rpm install is not reading old cluster data

I have installed a couchbase rpm 5.1.0 and run the traffic. I want to unistall the rpm(with keeping data in disk) and install new latest rpm 6.1.o instead of rpm upgrade . I would like to read cluster information like bucket details from old cluster and data from disk.
Please let me know any procedure to accomplish this,