repocop-purge-given(1)

REPOCOP-PURGE-GIVEN(1) User Contributed Perl Documentation REPOCOP-PURGE-GIVEN(1)

NAME

repocop-purge-except, repocop-purge-given - purge repocop cache from obsolete results.

SYNOPSIS

repocop-purge-except, repocop-purge-given [--vacuum] [-h|--help] [-v|--verbose] [-q|--quiet] [--workdir workdir] [--pkgcollectors-dir comma separated list of local collectors' dirs] [--srccollectors-dir comma separated list of local collectors' dirs] [--pkgtests-dir comma separated list of local tests' dirs] [--srctests-dir comma separated list of local tests' dirs] [--exclude-test comma separated list of tests] [--include-test comma separated list of tests] [--report warn|fail|skip|experimental|ok] [--report-et|--report-exclude-test comma separated list of tests] [--report-it|--report-include-test comma separated list of tests] [--report-include-distrotests] [--except] [--given] [--last-run] [--by-src-name name ...] [dir|rpm file|repocop_id ...]

DESCRIPTION

repocop-purge-except, repocop-purge-given purge repocop cache from obsolete results. There are two modes of that utility: repocop-purge-except removes all data except about packages given as its arguments (or from last run, -l option). repocop-purge-given removes all data about given packages.

ARGUMENTS

The arguments are the set of repocop ids. Repocop IDs can be extracted from rpm files, so you can use an argument like /path/to/rpm/files/*.rpm or just /path/to/rpm/files.

Note that repocop ids are used for internal representation of rpm packages. They differ from pkgids used in repocop reports.

Repocop report package ids are used in repocop reports to identify packages in a human readable way. The repocop report package ID is a string <NAME>-<VERSION>-<RELEASE>.ARCH for binary rpm packages and is a string <NAME>-<VERSION>-<RELEASE>.src for source rpm packages.

Internal Repocop ids are subject to change; current repocop ID is a string <NAME>-<VERSION>-<RELEASE>.ARCH@timestamp for binary rpm packages and is a string <NAME>-<VERSION>-<RELEASE>.src for source rpm packages.

OPTIONS

--vacuum
Vacuum SQL database after purge. Disabled by --novacuum. Default is to vacuum.
--workdir dir
Provides alternative location for the Repocop workdir. Repocop workdir is a place where test results and packages metadata information are stored. Default is ~/.repocop.
-h, --help
Display this help and exit.
-v, --verbose, -q, --quiet
Verbosity level. Multiple -v increase the verbosity level, -q sets it to 0.
[--pkgcollectors-dir comma separated list of local collectors' dirs]
[--srccollectors-dir comma separated list of local collectors' dirs]
[--pkgtests-dir comma separated list of local tests' dirs]
[--srctests-dir comma separated list of local tests' dirs]
Append user's local tests and collectors to repocop. Those options do not disable or override loading of default tests found in /usr/lib*/repocop and /usr/share/repocop.
[--exclude-test comma separated list of tests]
[--include-test comma separated list of tests]
Include/exclude tests for repocop-run. Those options accept all kinds of repocop tests, including unittests, collectors and distrotests.
--except, --given
Control processing of rpm id arguments. --given (default) means processing only given rpm arguments. --except means processing all data except given rpm arguments.
-l, --last-run
Use the repocop ids of packages processed at last run as an input.
--by-src-name
Input arguments are expected to be src.rpm names, not repocop ids. Repocop ids are calculated from given src.rpm names.

AUTHOR

Written by Igor Vlasenko <viy@altlinux.org>.

ACKNOWLEGEMENTS

To Alexey Torbin <at@altlinux.org>, whose qa-robot package had a strong influence on repocop.

COPYING

Copyright (c) 2008-2022 Igor Vlasenko, ALT Linux Team.

This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

2022-09-15 perl v5.34.1