[email protected] wrote:
[reformatting]
> (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”.
1. Why?
2. On an AMD64 machine, run:
sudo apt clean
sudo apt -d install --reinstall package1 package2 ... packageN
Now /var/cache/apt/archives holds all those packages and their
dependencies.
3. Repeat on an ARM64 machine.
> “apt install
> --download only” will miss packages that are already installed
> right?
You are confused. "apt install" won't install a package that is
already installed, unless you specify --reinstall.
apt install -d ... stops the install process after the packages
are downloaded.
> 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
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 thank whoever can help me. I just want this ONE thing before I truly start
> my Linux adventure.
I repeat question 1: Why are you doing this? What do you want to
accomplish?
-dsr-