How to Enable Software Packages with Env Tool?
Introduction
RT-Thread provides a package management platform where RT-Thread official or community developer-provided packages are stored. The platform offers developers a wide selection of reusable packages, which is an important part of the RT-Thread ecosystem. RT-Thread now has 241 software packages that are out-of-box.
Click here to view the officially available packages from RT-Thread, most of which have detailed documentation and usage examples.
How to Enable RT-Thread Software Packages?
Package tools, as part of Env, provide developers with management functions such as download, update, delete, and more.
Entering pkgs
on the Env command line can see the introduction to the command:
> pkgs
usage: env.py package [-h] [--update] [--list] [--wizard] [--upgrade]
[--printenv]
optional arguments:
-h, --help show this help message and exit
--update update packages, install or remove the packages as you set in
menuconfig
--list list target packages
--wizard create a package with wizard
--upgrade update local packages list from git repo
--printenv print environmental variables to check
Download, update, delete packages
Before you can download and update a package, you need to open the package you want to operate in menuconfig
.
These packages are located under the RT-Thread online packages
menu, which you can see the package categories as below:
Select the package you need, save, and exit menuconfig. At this point, the package has been marked but has not been downloaded to the local, so it is not available.
- Download: If the package has been selected locally, but not downloaded, enter:
pkgs --update
the package will be downloaded automatically; - Update: If the selected package has an update on the server-side and the version number selects the latest. Enter:
pkgs --update
, the package will be updated locally; - Delete: If you don’t need to use a package again, uncheck it in menuconfig before you execute:
pkgs --update
. Packages that have been downloaded locally but are not selected will be deleted.
RT-Thread Contact Info: