From 444f40d806ca7ad5c126d79221b5b4fbeebc9e04 Mon Sep 17 00:00:00 2001 From: PerseoGI Date: Fri, 5 Dec 2025 10:14:12 +0100 Subject: [PATCH 1/2] Added new format output to cache check-integrity --- reference/commands/cache.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/reference/commands/cache.rst b/reference/commands/cache.rst index d2c87815da5b..7e453e75221f 100644 --- a/reference/commands/cache.rst +++ b/reference/commands/cache.rst @@ -212,6 +212,16 @@ For example, to verify the integrity of the whole Conan local cache, do: zlib/1.3.1:6fe7fa69f760aee504e0be85c12b2327c716f9e7: Integrity checked: ok +This command can also return a pkglist when the ``--format=json`` option is used. +This is useful for generating a list of packages that can later be used, for example, +to remove all potentially corrupted packages in a single operation: + +.. code-block:: text + + $ conan cache check-integrity "*" --format=json --out-file pkglist.json + $ conan remove --list pkglist.json + + conan cache backup-upload ------------------------- From d0e6310071882d43d1303c416877aa7ee14a7075 Mon Sep 17 00:00:00 2001 From: PerseoGI Date: Fri, 5 Dec 2025 11:38:46 +0100 Subject: [PATCH 2/2] Update reference/commands/cache.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Abril Rincón Blanco <5364255+AbrilRBS@users.noreply.github.com> --- reference/commands/cache.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/commands/cache.rst b/reference/commands/cache.rst index 7e453e75221f..6122b68c3122 100644 --- a/reference/commands/cache.rst +++ b/reference/commands/cache.rst @@ -213,7 +213,7 @@ For example, to verify the integrity of the whole Conan local cache, do: This command can also return a pkglist when the ``--format=json`` option is used. -This is useful for generating a list of packages that can later be used, for example, +This returns the packages the are corrupted, which is useful for generating a list of packages that can later be used, for example, to remove all potentially corrupted packages in a single operation: .. code-block:: text