---
name: "pkgs_to_mmin"
section: "1"
platform: "linux"
package: "mirror"
version: "2.9-55"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/pkgs_to_mmin"
---

# pkgs\_to\_mmin(1)

extract mirror-master details from mirror package files

## NAME

pkgs\_to\_mmin - extract mirror-master details from mirror package files

## SYNOPSIS

**pkgs\_to\_mmin** \[-y last\_ok\]  \[-n last\_notok\] \[packages\] package

## DESCRIPTION

**pkgs\_to\_mmin** is a utility perl script which reads  **mirror** package files and for each package found outputs details as one line of text in the form:

filename:packagename  *last\_ok last\_notok*

## OPTIONS

- **-y** *last\_ok*

  where *last\_ok* is an integer (default 8).

- **-n** *last\_notok*

  where *last\_notok* is an integer (default 8).

## EXAMPLES

- **pkgs\_to\_mmin -y** *20 /etc/mirror/packages/debian-dists*

  lists **mirror-master** detail lines for all the **mirror** packages in *debian-dists* with *last\_ok* reset to 20.

- *cmdin=***pkgs\_to\_mmin** */etc/mirror/late/\* \|* **grep** *":patch"*

  *is a line in a* **mirror-master** control file.  When run, **pkgs\_to\_mmin** makes detail lines for all packages found in */etc/mirror/late/*, **grep** selects only lines with *:patch* which **mirror** then runs.  A following line would use **grep -v**. Keep unsuitable package files in another directory. For large archives use a separate directory for each time of day **mirror-master** starts.

## AUTHOR

The author of the **pkgs\_to\_mmin** script is Lee McLoughlin and the source of the script is:

http://sunsite.org.uk/packages/mirror/

## COPYRIGHT

The copyright statement can be found in the file

/usr/share/doc/mirror/copyright.

## SEE ALSO

HTML documentation at **/usr/share/doc/mirror/html/mirror.html**. [**mirror-master**(1)](/mirror-master/1.md), [**mirror**(1)](/mirror/1.md), [**grep**(1)](/grep/1.md), [**uniq**(1)](/uniq/1.md).
