Tmp folder help

Hello everyone
Can someone help with installing some stuff in tmp folder,because every time I want to install something in tmp folder i mean to ram,it install correctly through putty but when I want to launch that program it's says not found.
I know when something is installed in ram it will be gone after next reboot.
I have currently around 25 mb free ram.
I made in /etc/opkg.conf like this:
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /tmp
option check_signature
I don;t know if I do something wrong here.
Thanks forwardly for answers

Hi

the main problem is that your packages will be installed on

/tmp/usr/sbin/

which is out of PATH for binaries / libraries

you could find some useful discussion (and maybe a solution) here:

this is from my original etc/profile:

export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
export HOME=${HOME:-/root}
export PS1='\u@\h:\w$ '
export ENV=/etc/shinit

Please read again my answer and try to understand it

opkg will install in /tmp which is out of PATH

please look at linked article
specially answer #7
you will see the problem

From the readings it needs to be like that:
export PATH=$PATH:/tmp/bin:/tmp/sbin:/tmp/usr/bin:/tmp/usr/sbin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/lib:/tmp/usr/lib
export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
export HOME=${HOME:-/root}
export PS1='\u@\h:\w$ '
export ENV=/etc/shinit