I am currently in need of using apt-get
on a chroot directory.
The setup is the following.
I have a chroot setup with schroot. This chroot environment needs to be stripped down as much as possible. Therefore I am planning to remove apt-get and commin from the chroot environment.
I know that Gentoo has the possibility to use portage on a different root directory. Is this possible to set a different root directory for apt.get to install software into my chroot directory?
Thanks in advance
apt-get -o RootDir=your_dir install some-package
might be what your looking for – Fuseteam Dec 14 '22 at 21:03