ts-apt - v1.1.2
    Preparing search index...

    Interface PackageName

    Package name that optionally supports version and release codename.

    NOTE: No validation is performed on the name, version, or architecture. The actual APT commands will handle this and provide errors if validation fails.

    interface PackageName {
        name: string;
        version?: string;
        arch?: string;
        compareTo(other: PackageName): number;
        serialize(): string;
    }
    Index
    name: string

    Required name.

    version?: string

    Optional version of package.

    arch?: string

    Optional architecture of the package (e.g. amd64, arm64).

    • Serializes the package name, architecture, and version into an APT string representation.

      Format: name[:arch][=version]

      Example outputs:

      • "curl" (only name)
      • "curl:amd64" (name and architecture)
      • "curl=8.5.0-2ubuntu10.6" (name and version)
      • "curl:amd64=8.5.0-2ubuntu10.6" (name, architecture, and version)

      Returns string