... So change your ln command accordingly: Code: ln -s /opt/foopackage/foo /home/user/foopackage/usr/bin/foo If you check this link in your testing environment it won't work because you have no /opt/foopackage/foo but it will work after installing the package.
ln -s /opt/foopackage/foo /home/user/foopackage/usr/bin/foo