Couchbase custom installation using yum

I am trying to install couchbase server into a custom location. Able to do that using rpm, but want try using yum. Is there any option doing that using yum.

I tried yum installation and moved the /opt/couchbase to other location and changed the paths in couchbase-server.service, audit.json, memcached.json. but no luck.

is there any other way that we do yum installation to custom directory.