However, there may be a much easier shortcut for pseudo-optifying this particular package: 1: Remove the installation: dpkg --remove maemotex 2: Make sure there's nothing left in /usr/local 3: Remove the original, leftover /usr/local: rmdir /usr/local (NB: dpkg --remove may have removed it already.) 4: Make a symlink into /opt, like so: Code: mkdir /opt/local cd /usr ln -s local /opt/local 5: Re-install maemotex. Now it'll still unpack and install in /usr/local, but that just happens to really be /opt/local.
mkdir /opt/local cd /usr ln -s local /opt/local