rpm Flashcards
rpm
rpm is a package manager that can be used to build, install, query, verify, update, and erase packages.
rpm - RPM Package Manager SYNOPSIS QUERYING AND VERIFYING PACKAGES: rpm {-q|–query} [select-options] [query-options] rpm {-V|–verify} [select-options] [verify-options] rpm [–nosignature] [–nodigest] PACKAGE_FILE … INSTALLING, UPGRADING, AND REMOVING PACKAGES: rpm {-i|–install} [install-options] PACKAGE_FILE … rpm {-U|–upgrade} [install-options] PACKAGE_FILE … rpm {-F|–freshen} [install-options] PACKAGE_FILE … rpm {-e|–erase} [–allmatches] [–nodeps] [–noscripts] [–notriggers] [–test] PACKAGE_NAME … MISCELLANEOUS: rpm {–querytags|–showrc} rpm {–setperms|–setugids} PACKAGE_NAME … select-options [PACKAGE_NAME] [-a,–all] [-f,–file FILE] [-g,–group GROUP] {-p,–package PACKAGE_FILE] [–hdrid SHA1] [–pkgid MD5] [–tid TID] [–querybynumber HDRNUM] [–triggeredby PACKAGE_NAME] [–whatprovides CAPABILITY] [–whatrequires CAPABILITY] query-options [–changelog] [-c,–configfiles] [–conflicts] [-d,–docfiles] [–dump] [–filesbypkg] [-i,–info] [–last] [-l,–list] [–provides] [–qf,–queryformat QUERYFMT] [-R,–requires] [–scripts] [-s,–state] [–triggers,–triggerscripts] verify-options [–nodeps] [–nofiles] [–noscripts] [–nodigest] [–nosignature] [–nolinkto] [–nofiledigest] [–nosize] [–nouser] [–nogroup] [–nomtime] [–nomode] [–nordev] [–nocaps] install-options [–allfiles] [–badreloc] [–excludepath OLDPATH] [–excludedocs] [–force] [-h,–hash] [–ignoresize] [–ignorearch] [–ignoreos] [–includedocs] [–justdb] [–nocollections] [–nodeps] [–nodigest] [–nosignature] [–noorder] [–noscripts] [–notriggers] [–oldpackage] [–percent] [–prefix NEWPATH] [–relocate OLDPATH=NEWPATH] [–replacefiles] [–replacepkgs] [–test]
rpm –checksig
–checksig, The –checksig option checks all the digests and signatures in a package to ensure the integrity.
rpm -ivh
- i
- v
- h
- i, This installs a new package.
- v, Prints verbose informtation.
- h, –hash, Prints 50 hash marks showing the progress as a package is unpacked.
rpm -qpR
- q
- p
- R
- q, Query’s a package.
- p, –package package_file, Query’s an uninstalled package.
- R, –requires, List capabilities on which this package depends.
rpm -ivh –nodeps
–nodeps
–nodeps, Doesn’t verify dependencies of packages.
rpm-q
rpm-ql
- q
- l
- q, Query’s a package.
- l, –list, List files in package.
rpm -qa –last
-a
–last
-a, –all, Query all installed packages.
–last, Orders the package listing by install time such that the latest packages are at the top.
rpm -Uvh
-U
-U, This upgrades or installs the package currently installed to a newer version
rpm -evv
- e
- vv
- e, Erases the file from the computer.
- vv, Prints debugging information.
rpm -ev –nodeps
Removes a package without checking its dependencies.
rpm -qf
-f
-f, –file FILE, Query package owning FILE.
rpm -qi
-i
-i, –info, Display package information, including name, version, and description.
rpm -qdf
-d
-d, –docfiles, List only documentation files.
rpm -Vp
-V
-V, –verify, Verifying a package compares information about the installed files in the package with information about the files taken from metadata stored in the rpm database.
rpm -Va
Verifies all installed packages.