Set install path using dpkg

debian, dpkg

Solution

dpkg-deb -x $DEBFILE $TARGET_DIRECTORY

or if you don't have any debian tools at hand

ar p $DEBFILE data.tar.gz | tar -C $TARGET_DIRECTORY -xz

With more recent packages it might be `data.tar.xz` or something else though.

Problem

I'd like to install some deb package dpkg -i modeller_9.13-1_amd64.deb consisted of some python modules. What frag should I provide to dpkg to set the install path during installation instead of default dir (on default to python dir(? Thanks for help, Gleb

Original source