Hi! On Thu, 2024-03-07 at 04:25:03 +0100, Vincent Lefevre wrote: > On 2024-03-07 03:34:08 +0100, Guillem Jover wrote: > > > "apt-cache show libc6-dev" also lists this package. > > > > apt behaves differently, this has been also a known discrepancy, but > > then they operate in general differently when it comes to their CLI > > arguments anyway. > > The difference is bad for the user, making simple copy-paste > impossible, and usage more difficult: the user doesn't know > in advance whether the package name given by apt needs to be > completed for dpkg (systematically adding the main architecture > does not work for "Architecture: all" packages).
That's why dpkg is and has always been internally consistent, and always arch-qualifies Multi-Arch:any packages (and more recently also foreign arch:any packages), so that its output can always be used as its input, even during a cross-upgrade of dpkg itself. As mentioned above, it's unfortunate that apt implemented a different interface. Thanks, Guillem