My linux world » RPM Surviral Guide

RPM Surviral Guide


Contents

RPM command

List installed packages

rpm -qa

List files in a rpm package

rpm -ql MYPACKAGENAME

Install a rpm

rpm -ivh MYRPMFILE.rpm

Update a rpm

rpm -Uvh MYRPMFILE.rpm

Remove a rpm

rpm -e MYPACKAGENAME

Extract rpm files

rmp2cpio MYRPMFILE.rpm | cpio -idmv

Yum command

How to list the contents of a package using YUM?

yum -y install yum-utils
repoquery -l MYPACKAGE
 
# example : repoquery -l httpd

Copyright © 2024 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.