On Mon 31 Jan 2022 at 06:32:23 (-0600), Richard Owlett wrote:
> Due to historical circumstances, I have laptops which multi-boot
> various Debian releases. There be 32 bit and 64 bit versions of the
> same release on a particular machine.
> 
> 1. From current console, how can I determine which is running?
>    [ equivalent of /etc/debian_version would be ideal ]
> 
> 2. As superuser, how can I determine which is installed on a different
>    partition?
>    [ My typical installation routine has been a descriptive label for
>      each root partition. But not always done ;{ ]

Perhaps the best proof of the presence of a Debian system
with a given architecture has to be /usr/bin/dpkg itself,
and   file /usr/bin/dpkg   also has the advantage of being
able to answer the second question, where you obviously
can't run a binary belonging the foreign partition.

Cheers,
David.

Reply via email to