How to install package not to /opt

Short answer: You cannot.

Longer answer:

Download the source code and run the usual comfigure/compile stuff. Something along the lines of an example ./configure && make PREFIX=/usr/local && sudo make install which you should thoroughly research as real world most likely is different.

Whichever method you choose - remember the rule - updating may break your custom build packages.

2 Likes