(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?
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
I thank whoever can help me. I just want this ONE thing before I truly start my Linux adventure.
To a first approximation, you never want to add an architecture.
The various cases where you would:
case: you are building a local mirror of multiple architectures.
solution: use real mirroring software.
case: you are switching from x86-32 to amd64
solution: OK, this is where you would want to use
--add-architecture, but a better solution is not to get int
this mess in the first place.
(I am completely new to Linux besides basic stuff with proot-distroHello. That sounds fun and I hope you have a good time.
on Termux on Android):
I simply want to take a text file I have made of specified Debian(I see a hyphen missing between "download" and "only")
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 \u201capt install\u201d.
\u201capt install --download only\u201d
will miss packages that are already installed right?Correct, as long as the already-installed packages in question are the
So that leaves me with making a list using \u201capt-cache depends\u201d or the apt-rdepends package,I had never heard of this package, apt-rdepends. Interesting.
but the apt-rdepends package doesn't show virtual packages,Once a package has been installed, it seems to me that
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,[Much rocket science omitted]
How on earth can I just simply download a list of packages and all# apt-get -d install $whatever
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 IGood luck with your project :D
truly start my Linux adventure.
On Thu, 29 Jan 2026, fireoflegend@gmail.com wrote:[snip]
[snip]\u201capt install --download only\u201d
[snip]will miss packages that are already installed right?
DETAIL 1: I don't use "apt", don't know anything about it. I use...to be DOWNLOADED. Not to be installed (because of option -d).
apt-get, apt-cache, (and occasionally apt-mark). So above I have
assumed we are talking about
# apt-get --download-only install whatever
which I would shorten to
# apt-get -d install whatever
and I would also add -V to improve legibility of the list of packages
to be installed. Hence:
# apt-get -Vd install whatever
(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 depende!ncies 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.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 19:04:10 |
| Calls: | 117 |
| Calls today: | 117 |
| Files: | 367 |
| D/L today: |
540 files (253M bytes) |
| Messages: | 70,845 |
| Posted today: | 26 |