rpm Flashcards

1
Q

rpm

A

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]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

rpm –checksig

A

–checksig, The –checksig option checks all the digests and signatures in a package to ensure the integrity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

rpm -ivh

  • i
  • v
  • h
A
  • i, This installs a new package.
  • v, Prints verbose informtation.
  • h, –hash, Prints 50 hash marks showing the progress as a package is unpacked.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

rpm -qpR

  • q
  • p
  • R
A
  • q, Query’s a package.
  • p, –package package_file, Query’s an uninstalled package.
  • R, –requires, List capabilities on which this package depends.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

rpm -ivh –nodeps

–nodeps

A

–nodeps, Doesn’t verify dependencies of packages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

rpm-q

rpm-ql

  • q
  • l
A
  • q, Query’s a package.
  • l, –list, List files in package.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

rpm -qa –last

-a

–last

A

-a, –all, Query all installed packages.

–last, Orders the package listing by install time such that the latest packages are at the top.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

rpm -Uvh

-U

A

-U, This upgrades or installs the package currently installed to a newer version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

rpm -evv

  • e
  • vv
A
  • e, Erases the file from the computer.
  • vv, Prints debugging information.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

rpm -ev –nodeps

A

Removes a package without checking its dependencies.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

rpm -qf

-f

A

-f, –file FILE, Query package owning FILE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

rpm -qi

-i

A

-i, –info, Display package information, including name, version, and description.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

rpm -qdf

-d

A

-d, –docfiles, List only documentation files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

rpm -Vp

-V

A

-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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

rpm -Va

A

Verifies all installed packages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

rpm –import

A

–import PUBKEY, Imports a public key to the rpm database to be used when checking signatures.

17
Q

rpm -qa gpg-pubkey*

A

Lists all imported keys on the system.

18
Q

rpm –rebuilddb

A

–rebuilddb, Rebuilds the database indices from the installed package headers.