I'm using fpm to create a deb package, but when I install that deb package, it is installed into the wrong location, my fpm command is:
fpm -f -s "dir" -t "deb" -a "all" -n "my_project" -v 1 -C "/tmp/tmpjWTuVp" /tmp/tmpjWTuVp/my_project
The folder i want to package up exists at /tmp/tmpjWTuVp/my_project
, but every time i install it with:
dpkg -i my_package.deb
it installs it into /tmp/tmpjWTuVp/my_project
, ideally i'd like it to install into /var/lib/my_project
. I have tried --installdir
and --root
with my dpkg
command, but it complains with cannot access archive: No such file or directory
Other information:
- I'm installing onto an ubuntu box
- I'm very new to deb packaging, so may have missed something obvious
- I'm not bound to
fpm
and happy to hear other viable suggestions - inside
my_project
is a pythonvirtualenv
and my django project