---
name: "rpmgraph"
section: "1"
platform: "linux"
package: "rpm-tools"
version: "6.0.1-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/rpmgraph"
---

# rpmgraph(1)

Generate an RPM Package Dependency Graph

## NAME

rpmgraph - Generate an RPM Package Dependency Graph

## SYNOPSIS

**rpmgraph** \[options\] *PACKAGE\_FILE* ...

## DESCRIPTION

**rpmgraph** reads **rpm** packages passed as arguments, sorts them as for installation with [**rpm**(8)](/rpm/8.md), and produces a dependency graph on the standard output.

Nodes in the dependency graph are package names, and edges in the directed graph point to the parent of each node. The parent node is defined as the last predecessor of a package when partially ordered using the package dependencies as a relation. That means that the parent of a given package is the package's last prerequisite.

The output is in [**dot**(1)](/dot/1.md) directed graph format, and can be displayed or printed using the [**dotty**(1)](/dotty/1.md) graph editor from the **Graphviz** project.

## ARGUMENTS

*PACKAGE\_FILE*

Either an **rpm** package or an [**rpm-manifest**(5)](/rpm-manifest/5.md) file.

## OPTIONS

See [**rpm-common**(8)](/rpm-common/8.md) for the options common to all rpm commands.

## EXIT STATUS

On success, 0 is returned, a nonzero failure code otherwise.

## SEE ALSO

[**dot**(1)](/dot/1.md), [**dotty**(1)](/dotty/1.md)

**http://www.graphviz.org/**
