7.1 Functions for raco pkg

► |  | Package Management in Racket

1 | Getting Started with Packages
2 | Package Concepts
3 | Using raco pkg
4 | Package Metadata
5 | Source, Binary, and Built Packages
6 | Developing Packages with Git
7 | Package APIs
8 | Package Catalog Protocol
9 | PLane T Compatibility
10 | FAQ
11 | Future Plans
12 | How Package Installation and Distribution Works

▼ | 7 | Package APIs

7.1 | Functions for raco pkg
7.2 | Package Management Functions
7.3 | Package Paths and Database
7.4 | Package Source Parsing
7.5 | Package Catalog Database
7.6 | Package Directories Catalog
7.7 | Package Management Environment Variables

On this page:

pkg-install-command
pkg-update-command
pkg-uninstall-command
pkg-remove-command
pkg-new-command
pkg-show-command
pkg-migrate-command
pkg-config-command
pkg-create-command
pkg-catalog-show-command
pkg-catalog-copy-command
pkg-catalog-archive-command
pkg-archive-command
pkg-empty-trash-command

Racket
top contents ← prev up next →

### 7.1 Functions for raco pkg🔗ℹ

(require pkg) | package: base

The pkg module provides a programmatic interface to the raco pkg sub-subcommands.

Each-long form option of the command-line interface is a keyword argument to the functions described below. An argument corresponding to --type, --deps, --format, --scope, or --multi-clone accepts its argument as a symbol, while other flags that take text arguments expect strings, and flags that expect number arguments expect exact integers. An argument corresponding to --scope is also allowed to be a path string, as would be provided to --scope-dir. Options without argument correspond to keyword arguments that accept booleans, where #t is equivalent to the presence of the option. When a flag can be used multiple times, its keyword-argument form can hold a single value, a list of values, or #f to indicate the default implied by zero instances of the flag.

The parameters current-pkg-catalogs, current-pkg-scope, current-pkg-scope-version, and current-pkg-error do not to affect command functions, because the functions explicitly configure parameters based on their arguments.

> value pkg-install-command : procedure?

Implements raco pkg install.

> value pkg-update-command : procedure?

Implements raco pkg update.

> value pkg-uninstall-command : procedure?

Implements raco pkg uninstall.

> value pkg-remove-command : procedure?

Implements raco pkg remove.

> value pkg-new-command : procedure?

Implements raco pkg new.

> value pkg-show-command : procedure?

Implements raco pkg show.

> value pkg-migrate-command : procedure?

Implements raco pkg migrate.

> value pkg-config-command : procedure?

Implements raco pkg config.

> value pkg-create-command : procedure?

Implements raco pkg create.

> value pkg-catalog-show-command : procedure?

Implements raco pkg catalog-show.

> value pkg-catalog-copy-command : procedure?

Implements raco pkg catalog-copy.

> value pkg-catalog-archive-command : procedure?

Implements raco pkg catalog-archive.

Added in version 6.0.17 of package base.

> value pkg-archive-command : procedure?

Implements raco pkg archive.

Added in version 6.1.0.8 of package base.

> value pkg-empty-trash-command : procedure?

Implements raco pkg empty-trash.

Added in version 6.1.1.6 of package base.

top contents ← prev up next →