How do you install Percona Server to a specific directory via YUM?
There is no way to do that with yum. The only parameter that can help you is --installroot but it will copy all the file and folders to the directory specified here with full paths.
If you want to have Percona Server on a specific directory I recommend you to install it using the binaries instead of the rpm file so you can move the files wherever you want. You can follow mysql’s documentation procedure: