RPM Examples
Query the RPM database to find Emacs-related packages:
$ rpm -q -a | grep emacs
Query an uninstalled package, printing information about the package and listing the files it contains:
$ rpm -qpil ˜/downloads/bash-3.2-29.fc10.x86_64.rpm
Install a package (assumes superuser privileges):
$ rpm -i sudo-1.6.9p17-2.fc10.x86_64.rpm
Do the same thing, but report on the progress of the installation:
$ rpm -ivh sudo-1.6. 9p17-2.fc10.x86_64.rpm
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.