---
name: "rpmdeps"
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/rpmdeps"
---

# rpmdeps(1)

Generate RPM Package Dependencies

## NAME

rpmdeps - Generate RPM Package Dependencies

## SYNOPSIS

**rpmdeps** \<operation\> \[options\]

**rpmdeps** \<operation\> \[options\] *FILE* ...

## DESCRIPTION

**rpmdeps** generates package dependencies for one or more files, received either as a list of filenames on the standard input, or command line arguments.

**rpmdeps** is not normally invoked directly, but doing so can be useful for troubleshooting dependency generation and developing new dependency generators. The installation directory of **rpmdeps** can be determined with **rpm -E "%{\_rpmconfigdir}"**.

Note that the actual **rpmdeps** command is only used for automatic dependency generation in a legacy compatibility mode of [**rpmbuild**(1)](/rpmbuild/1.md).

## OPERATIONS

**--alldeps**

Print all the dependencies.

**--conflicts**

Print the conflicts dependencies.

**--enhances**

Print the enhances dependencies.

**--obsoletes**

Print the obsoletes dependencies.

**--orderwithrequires**

Print the orderwithrequires dependencies.

**-P, --provides**

Print the provides dependencies.

**--recommends**

Print the recommends dependencies.

**-R, --requires**

Print the requires dependencies.

**--suggests**

Print the suggests dependencies.

**--supplements**

Print the supplements dependencies.

## ARGUMENTS

*FILE*

Any regular file.

## OPTIONS

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

## ENVIRONMENT

**RPM\_BUILD\_ROOT**

The prefix path to strip out when generating dependencies based on actual paths.

## EXIT STATUS

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

## EXAMPLES

**rpmdeps --requires /bin/ls**

Output the automatic requires dependencies of the [**ls**(1)](/ls/1.md) binary.

**find popt-1.19-build/BUILDROOT -type f \| /usr/lib/rpm/rpmdeps -P**

Output the automatic provides of all files in the *popt-1.19-build/BUILDROOT* directory

## SEE ALSO

[**rpm**(8)](/rpm/8.md), [**rpmbuild**(1)](/rpmbuild/1.md), [**rpm-common**(8)](/rpm-common/8.md)
