---
name: "stream-pubmed"
section: "1"
platform: "linux"
package: "ncbi-entrez-direct"
version: "19.0.20230216+dfsg-2+b1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/stream-pubmed"
---

# stream-pubmed(1)

dump a local NCBI PubMed archive in compressed form

## NAME

stream-pubmed - dump a local NCBI PubMed archive in compressed form

## SYNOPSIS

**stream-pubmed** \[\[**-path\]** *dir***\]** **\[-asn\|-xml\]**

## DESCRIPTION

**fetch-pubmed reads a list of record IDs from standard input** **and prints to standard output the corresponding portions of** **a local NCBI PubMed archive produced by [archive-pubmed(1)](/archive-pubmed/1.md).** **Unlike [fetch-pubmed(1)](/fetch-pubmed/1.md), it leaves the contents compressed** **(and as such does not support any cleanup along the way).**

## OPTIONS

- **\[-path\]** *dir*

  **Place the local archive in** *dir***.**

- **-asn**

  **Stream ASN.1.**

- **-xml**

  **Stream XML (default).**

## ENVIRONMENT

- **EDIRECT\_PUBMED\_MASTER**

  **Local archive directory to use in the absence of -path.** **Expected to hold an absolute path;** **mandatory when not supplying a path on the command line.**

## SEE ALSO

[**archive-pubmed**(1)](/archive-pubmed/1.md), [**edict**(1)](/edict/1.md), [**fetch-pubmed**(1)](/fetch-pubmed/1.md), [**phrase-search**(1)](/phrase-search/1.md), [**rchive**(1)](/rchive/1.md).
