0% found this document useful (0 votes)
42 views2 pages

RPM Commands

This document provides information about RPM commands including syntax, descriptions, and examples of commands like rpm -ivh to install packages, rpm -Uvh to upgrade packages, rpm -ev to remove packages, rpm -qa to list installed packages, and more.

Uploaded by

360degree circle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

RPM Commands

This document provides information about RPM commands including syntax, descriptions, and examples of commands like rpm -ivh to install packages, rpm -Uvh to upgrade packages, rpm -ev to remove packages, rpm -qa to list installed packages, and more.

Uploaded by

360degree circle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

rpm commands

Syntax Description Example(s)


rpm -ivh {rpm-file} Install a package rpm -ivh mozilla-mail-1.7.5-
17.i586.rpm
rpm -ivh --test mozilla-mail-1.7.5-
17.i586.rpm
rpm -Uvh {rpm-file} Upgrade package rpm -Uvh mozilla-mail-1.7.6-
12.i586.rpm
rpm -Uvh --test mozilla-mail-1.7.6-
12.i586.rpm
rpm -ev {package} Remove a package rpm -ev mozilla-mail
rpm -ev --nodeps {package}Remove package without checking
rpm -ev --nodeps mozilla-mail
for dependencies
rpm -qa List all installed packages rpm -qa
rpm –qi {package} Show installed package rpm –qi mozilla-mail
information along with
description
rpm –qf {/pathtofile} Find out what package ain/bash
rpm –qf /etc/passwd
File belongs to rpm –qf /bin/bash
rpm –qc {packagename} List configuration file of rpm –qc httpd
a package
rpm –qcf {pathtofile} List configuration files rpm –qcf /usr/X11R6/bin/xeyes
for a command
rpm –qa --list List recently installed rpm –qa --list
rpms
Rjpm –qpR {.rpm-file} List dependencies of a rpm rpm – qpR Mozilla-mail
rpm –qR bash

rpm -qa | grep tiger

yum install tigervnc*

yum remove tigervnc*

Go online and search for tigervnc


Download the tigervnc rpm with wget command
wget http://centos.org/tiger.rpm

rpm –hiv package.rom

yum install tigervnc*

rpm -qa | grep tiger

rpm -qi | grep tiger.rpm

rpm -e tigervnc-license-1.8.0-5.el7.noarch

rpm -e tigervnc-server-1.8.0-5.el7.x86_64
rpm –e tiger-all.rpms

yum install tigervnc*

List configuration files of a package


rpm -qc tigervnc-server-1.8.0-5.el7.x86_64

Find out which package this file/script belongs to


rpm -qf /etc/sysconfig/vncservers

Find out about pwd command


rpm -qf /usr/bin/pwd

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy