pdf-icon

Raspberry Software Package Acquisition

Software Package Update
Used for application installation and upgrade. The apt package management tool is used to download and update functional units. Please refer to the following operations.

1. Preparation

  • Connect to the Raspberry Pi device terminal via SSH or similar methods.

2. Update Software Sources

  1. Use the lsb_release -a command to obtain the Raspberry system version.
lsb_release -a

The command execution result is as follows:
bookworm:

No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:    12
Codename:    bookworm

trixie:

No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 13 (trixie)
Release:    13
Codename:    trixie
  1. Copy the following commands to add the GPG key and add M5Stack’s software source information to the system’s software source list.

bookworm:

sudo wget -qO /etc/apt/keyrings/StackFlow.gpg https://repo.llm.m5stack.com/m5stack-apt-repo/key/StackFlow.gpg
echo 'deb [arch=arm64 signed-by=/etc/apt/keyrings/StackFlow.gpg] https://repo.llm.m5stack.com/m5stack-apt-repo bookworm llm8850' \
| sudo tee /etc/apt/sources.list.d/StackFlow.list > /dev/null

trixie:

sudo wget -qO /etc/apt/keyrings/StackFlow.gpg https://repo.llm.m5stack.com/m5stack-apt-repo/key/StackFlow.gpg
echo 'deb [arch=arm64 signed-by=/etc/apt/keyrings/StackFlow.gpg] https://repo.llm.m5stack.com/m5stack-apt-repo trixie llm8850' \
| sudo tee /etc/apt/sources.list.d/StackFlow.list > /dev/null
  1. Execute the apt update command to update the package index.
sudo apt update

3. Install Software Packages

  1. View the list of available LLM deb packages. Packages named in the format llm-model-name are model packages, while those named llm-name are functional unit packages.
apt list | grep llm
  1. Install software packages as needed. For example, to install the llm-whisper package.
    Note: Models occupy a large amount of space, so installation is recommended as needed.
sudo apt install llm-whisper

For detailed package information, please visit the StackFlow Github package list. It contains model configuration JSON files that show the model source (homepage), functionality, and data format.

4. Dependency Packages

lib-llm

  • Provides the environment required for software operation.
sudo apt install lib-llm

llm-sys

  • Provides the basic functionality of StackFlow.
sudo apt install llm-sys

5. Functional Modules

llm-whisper

  • Provides speech-to-text functionality.
sudo apt install llm-whisper

llm-llm

  • Provides text generation capability.
sudo apt install llm-llm

llm-vlm

  • Provides multimodal text generation capability.
sudo apt install llm-vlm

llm-melotts

  • Provides text-to-speech functionality.
sudo apt install llm-melotts

llm-openai-api

  • Provides OpenAI API interface.
sudo apt install llm-openai-api
On This Page