TIP 722: Improve ≺strong≻package names≺/strong≻ subcommand

Login
 Author:         Christian Werner <[email protected]>
 Tcl-Version:    9.1
 State:          Draft
 Type:           Project
 Created:        19-May-2025
 Keywords:       Tcl,package

Abstract

This TIP proposes to improve the package names subcommand such that its result list can be filtered with respect to packages which are provided (i.e. present) and packages which are not provided, but for which a package ifneeded script is available.

Rationale

Although the package names subcommand returns a list of all currently provided and available packages there's no equivalent to retrieve only the list of currently provided (i.e. present) packages. However, the latter can be of use e.g. to build a software bill of materials of an application or to help in generating a package dependency graph.

Specification

For package names without any further arguments (current default mode of operation) the result list is made up of package names which are provided or for which a package ifneeded script is available.

For package names available the list contains only the packages which are not provided (i.e. not present) but for which a package ifneeded script is available.

For package names provided the list contains only the currently provided (i.e. present) packages.

Implementation

TBD.

Copyright

This document has been placed in the public domain.