You can install SWI-Prolog add-ons, also known as packs, with the following command:
Install or upgrade a Prolog pack.
This command prompts from a pack name, with completion, and installs it or upgrades it to the latest available version. (See also Packs in the SWI-Prolog manual.)