# NAME

auristor-client-installable - check whether an AuriStor kernel module is available for the latest kernel

# SYNOPSIS

**auristor-client-installable** \[**-v**\]

# DESCRIPTION

**auristor-client-installable** determines whether a pre-built AuriStor
kernel module package (**auristorfs-modules3-\***) exists in the
configured APT repositories for the most recent kernel that would be
installed by the **linux-image-**_ARCH_ meta-package.

The script performs the following steps:

1. Detects the system architecture via **dpkg --print-architecture**.
2. Resolves the **linux-image-**_ARCH_ meta-package to find the
concrete kernel package it depends on.
3. Checks whether a matching **auristorfs-modules3-**_VERSION_ package
is available in APT.

If a matching module package is found the script exits successfully
and silently (unless **-v** is given).  If no match is found, a
diagnostic message is printed to standard error indicating the kernel
version that lacks a module and, when possible, the most recent
AuriStor module version that _is_ available.

# OPTIONS

- **-v**

    Enable verbose progress messages on standard output.

# EXIT STATUS

- **0**

    An AuriStor module package is available for the latest kernel.

- **1**

    No matching AuriStor module package was found, or the latest kernel
    could not be determined.

- **2**

    Invalid command-line usage.

# DEPENDENCIES

**dpkg**(1), **apt-cache**(1), **grep**(1), **sed**(1), **sort**(1).

# SEE ALSO

**dpkg**(1), **apt-cache**(8)
