Article 6HFRR install package in user home directory using apt/dpkg

install package in user home directory using apt/dpkg

by
pankajd
from LinuxQuestions.org on (#6HFRR)
hi,

i hv ubuntu 20.04. I want to install a package using dpkg/apt install, however, in a user's home diretory. It has dependencies as well. How to do it?

dpkg -i --instdir=<user home directory> pkg.deb

apt install --root=<user home directory> <PKG Name>

This is not working
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments