* 2022-01-31 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 ]

The running kernel and CPU:

    $ lscpu | head -n2
    Architecture:                    x86_64
    CPU op-mode(s):                  32-bit, 64-bit

    $ uname -m
    x86_64

> 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 ;{ ]

Package manager can tell about installed packages. Kernel package names
include the architecture:

    $ aptitude search ~i~nlinux-image-
    i   linux-image-5.10.0-10-amd64   - Linux 5.10 for 64-bit PCs (signed)      
          
    i   linux-image-5.10.0-11-amd64   - Linux 5.10 for 64-bit PCs (signed)      
          
    i A linux-image-5.10.0-9-amd64    - Linux 5.10 for 64-bit PCs (signed)      
          
    i   linux-image-amd64             - Linux for 64-bit PCs (meta-package)     
          

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462

Attachment: signature.asc
Description: PGP signature

Reply via email to