async def METHOD_NAME(package_entity_db: PackageEntityDb) -> None:
    name = InfraAppName("cleanup-untagged")
    enabled_aliases: Dict[str, InfraAppAlias] = {}
    def enable_alias(alias: InfraAppAlias) -> None:
        enabled_aliases[alias.name] = alias
    def disable_alias(name: str) -> None:
        enabled_aliases.pop(name)
    package_manager = PackageManager(
        package_entity_db,
        config_handler,
        enable_alias,
        disable_alias,
    )
    await package_manager.start()
    manifest = await package_manager.install(name, None)
    assert manifest is not None
    assert manifest.name == name
    # check that it is installed
    installed_apps = [name async for name in package_manager.list()]
    assert installed_apps == [name]
    installed_app = await package_manager.get_manifest(name)
    assert installed_app is not None
    assert installed_app.name == name
    # check that the alias is created
    alias_template = enabled_aliases.get(name)
    assert alias_template is not None
    assert alias_template.name == manifest.name
    assert alias_template.template() == f"apps run {manifest.name}" + r" {{args}}"
    assert alias_template.description == manifest.description
    assert alias_template.readme == manifest.readme
    # update is possible
    updated_manifest = await package_manager.update(name)
    assert updated_manifest is not None
    assert updated_manifest.name == name
    # update all is possible
    updated_apps = [name async for name, manifest in package_manager.update_all() if isinstance(manifest, AppManifest)]
    installed_apps = [name async for name in package_manager.list()]
    assert installed_apps == updated_apps == [name]
    # check that it can be deleted
    await package_manager.delete(name)
    # check that it is not installed anymore
    installed_apps_after_deletion = [name async for name in package_manager.list()]
    assert installed_apps_after_deletion == []
    # check that the alias is deleted
    alias_template = enabled_aliases.get(name)
    assert alias_template is None