View Single Post
Posts: 915 | Thanked: 3,209 times | Joined on Jan 2011 @ Germany
#17
Good start, but your optification link won't work since it points to the wrong directory.

Code:
ln -s /home/user/foopackage/opt/foopackage/foo /home/user/foopackage/usr/bin/foo
You link to /home/user/foopackage/opt/foopackage/foo which works fine during creation but will fail after the package is installed because the link target will still be /home/user/foopackage/opt/foopackage/foo while it actually would have to be /opt/foopackage/foo
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.
 

The Following 3 Users Say Thank You to sulu For This Useful Post: