On this page:
get-package
get-all-packages
get-dependency-graph
get-transitive-dependencies
get-transitive-clients
8.16

1 Querying Package CatalogsπŸ”—β„Ή

procedure

(get-package name [#:client client]) β†’ (option/c package-details?)

  name : immutable-string?
  client : package-client? = (current-package-client)
Looks up the package name using client and returns information about the package, or absent if it doesn’t exist.

procedure

(get-all-packages [#:client client]) β†’ (set/c package-details?)

  client : package-client? = (current-package-client)
Returns all packages in the package catalog that client connects to.

procedure

(get-dependency-graph [#:client client]) β†’ multidict?

  client : package-client? = (current-package-client)
Returns all dependency relationships in the package catalog, in the form of a multidict mapping package names to the names of their dependencies.

procedure

(get-transitive-dependencies pkg 
  [#:client client]) 
 β†’ (set/c immutable-string?)
  pkg : immutable-string?
  client : package-client? = (current-package-client)
Queries the package catalog with client and returns a set of all dependencies of pkg, including both direct and indirect dependencies.

procedure

(get-transitive-clients pkg 
  [#:client client]) 
 β†’ (set/c immutable-string?)
  pkg : immutable-string?
  client : package-client? = (current-package-client)
Queries the package catalog with client and returns a set of all clients of pkg β€” that is, all packages that depend on pkg β€” including both direct and indirect clients.