linux - How to install a package in user defined directory using apt-get? -


i'm using ubuntu, whenever install package gets installed in standard directories /usr/lib /usr/local/lib etc.

i want install package in non standard directory. there way this?

it discouraged you'll run many complications dependencies , they're located , linked at, if still want give shot, either 2 of following:

1. compile source

this allow modify want each package go , contents, require more work next option.

2. chroot

chroot 'jail' run inside it. create special directory , sets root run inside it. it's been used test applications or test upgrade/downgrade systems. however, note not security feature executable can still possibly break out of 'jail' , affect main system. purposes might want at. here's how use chroot , why isn't security feature.

these 2 discussed in detail in this askubuntu link. in fact question more suited there if answers question not give answer seek.

other suppose packages dockerized allow different path deployment tutorial here or vm, isn't question alternative might acceptable you.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -