Package Management in Project
The package management command $ xmake require
can be used to manually display the download, install, uninstall, retrieve, and view package information.
xmake require
is only used for the current project. We also provide a more convenient independent xrepo
package manager command to install, uninstall, find and manage packages globally.
For detailed documentation, see: Getting Started with Xrepo Commands
Install the specified package
$ xmake require tbox
Install the specified version package:
$ xmake require tbox "~1.6"
Force a re-download of the installation and display detailed installation information:
$ xmake require -f -v tbox "1.5.x"
Pass additional setup information:
$ xmake require --extra="{debug=true,config={small=true}}" tbox
Install the debug package and pass the compilation configuration information of small=true
to the package.
Uninstall the specified package
$ xmake require --uninstall tbox
This will completely uninstall the removal package file.
Show package information
$ xmake require --info tbox
Search for packages in the current repository
$ xmake require --search tbox
This is to support fuzzy search and lua pattern matching search:
$ xmake require --search pcr
Will also search for pcre, pcre2 and other packages.
List the currently installed packages
$ xmake require --list