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
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
Copy the following commands to add the GPG key and add M5Stack’s software source information to the system’s software source list.
Execute the apt update command to update the package index.
sudo apt update
3. Install Software Packages
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
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.