Package / system tool

rpm — SUSE family

rpm is used for package management or system administration in the SUSE family. Consult the distribution manual for release-specific behaviour.

Availability: openSUSE and SUSE Linux Enterprise; commands differ by product and transactional mode.中文

Syntax

rpm [options] action package.rpm

Examples

rpm is used for package management or system administration in the SUSE family. Consult the distribution manual for release-specific behaviour.

rpm -qi <package>

Show command help and options where supported.

rpm --help

Parameters, options and clauses

Option / clauseDescription
-q, --query <package>Query installed package information.
-qa / -qi / -qlList packages, show package details or list package files.
-i, --install <file.rpm>Install a local RPM file; dependency resolution may be needed.
-U, --upgrade <file.rpm>Install or upgrade from an RPM file.
-e, --erase <package>Remove an installed package.
Safety note

Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.

Official reference ↗Back to directory