Tip for installing programs outside “default” location

Since stepping to ubuntu, I have the habit of installing stuffkeeper/gmpc/mpd/etc outside the “default” location like /usr or /usr/local.

I have install everything in /opt/mpd/.
The following steps make that work:
* To make libs load I have added “/opt/mpd/lib/” to /etc/ld.so.conf .
* Add “/opt/mpd/bin/” to PATH. (depends on distro).
* Add “/opt/mpd/share” to XDG_DATA_DIRS.

Now programs installed there will work, and correctly show up in your gnome-menu.
Now you can easily install programs manually withouth the fear of overwriting distribution files, and if you want to return to “stock”, just remove the dir + the environment settings.

A shame gnome-do does not pick this up.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>