RT-Thread provides a package management platform where official or 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.
Click here to view the officially available packages from RT-Thread, most of which have detailed documentation and usage examples.
As of 2019-10-31, the number of packages is 150+
Package tools, as part of Env, provide developers with the management functions such as download, update, delete, and more.
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
Before you can download and update a package, you need to open the package you want to operate in
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.
pkgs --updatethe package will be downloaded automatically;
pkgs --update, the package will be updated locally;
pkgs --update. Packages that have been downloaded locally but are not selected will be deleted.