(I am completely new to Linux besides basic stuff with proot-distro on Termux 
on Android): I simply want to take a text file I have made of specified Debian 
packages I want for my local repository (one for AMD64, the other for ARM64), 
and download those packages as well as their depends, predepends recursively, 
and whatever other packages that would have been installed with “apt install”. 
“apt install --download only” will miss packages that are already installed 
right? So that leaves me with making a list using “apt-cache depends” or the 
apt-rdepends package , but the apt-rdepends package doesn't show virtual 
packages, apt-cache depends does but does not resolved the virtual package with 
what apt install would've defaulted to resolving to. Then, if I try to target a 
different architecture, first adding with dpkg --add-architecture command then 
apt update, I can list other packages, but apt-rdepends only lists the 
specified architecture for first set of dependencies and after tries to recurse 
with current native architecture packages; apt-cache depends will work if 
typing “package:<arch>” but for some reason will include duplicates of certain 
packages where one will have the ending :<arch> and the other will not, and for 
the native architecture packages, now apt-cache depends will show both the 
unmarked native packages and some :<arch> marked packages of the foreign 
architecture along with it. Modifying sources.list for [ arch=<arch> ] fixes 
only when looking up native packages, but the foreign architecture packages 
still do that weird duplicate thing.

How on earth can I just simply download a list of packages and all their base 
needed packages like how apt install would have while ALSO including already 
installed packages in the downloading process.

I thank whoever can help me. I just want this ONE thing before I truly start my 
Linux adventure.

Reply via email to