Chapter 2 Flashcards
Packages
collection of files that are installed on the computer. Once installed, most of these contain many many files
49
Dependency Information
requirements of packages for one another
49
Checksums
Used to verify or validity of the software. Intended to help spot disk errors
49
RPM
RPM Package Monitor… because Linux loves terrible recursive acronyms
Most popular package monitor in Linux. It can even be used in some Unix systems
50
Distros of Red Hat
Red Hat - for pay enterprise
CentOS - Free enterprise
Fedora - Basic home version
50
Filename Components
Package Name
Version Number
Build Number
Architecture
51
Yum
one of several meta-packagers. It enables you to install a package and all its dependencies easily using a single command line
57
rpm operand
-i
Installs a package
53
rpm operand
-U
Installs a new package or upgrades an existing one
53
rpm operand
-F or –freshen
Upgrades a package only if an earlier version already exists
53
rpm operand
-q
Queries a package… is it installed? what files does it contain?
53
rpm operand
-V or –verify
Verifies a package and checks that its files are present and unchanged since installation
53
rpm operand
-e
Uninstalls a package
53
rpm operand
-b
Builds a binary package, given source code and configuration files
53
rpm operand
–rebuild
Builds a binary package, given a source RPM file; moved to the rpmbuild program with RPM v4.2
53
rpm operand
-rebuilddb
Rebuild the RPM database to fix errors
53
rpm option
–root dir
Modifies the Linux systems having a root directory located at dir. This option can be used to maintain one Linux installation discrete from another one
53
rpm option
–force
Used with operands -i, -U, -F
Forces installation of a package even when it means overwriting existing files or packages
53
rpm option
-h or –hash
Used with operands -i, -U, -F
Displays a series of hash marks (#) to indicate the progress of the operation
54
rpm option
-v
Used with operands -i, -U, -F
Used in conjunction with the -h option to produce a uniform number of hash marks for each package
54
rpm option
–nodeps
Used with operands -i, -U, -F, -e
Specifies that no dependency checks be performed. Installs or removes the package even if it relies on a package or file that’s not present or is required by a package that’s not being uninstalled
54
rpm option
–test
Used with operands -i, -U, -F
Checks for dependencies, conflicts, and other problems without actually installing the package
54
rpm option
–prefix path
Used with operands -i, -U, -F
Sets the installation directory to path(works only for some packages)
54
rpm option
-a or –all
Used with operands -q, -V
Queries or verifies all packages
54
rpm option
-f file or –file file
Used with operands -q, -V
Queries or verifies the package that owns file
54
rpm option
-p package-file
Used with operand -q
Queries the uninstalled RPM package-file
54
rpm option
-i
Used with operand -q
Displays package information, including the package maintainer, a short description, and so on
54
rpm option
-R or –requires
Used with operand -q
Displays the packages and files on which this one depends
54
rpm option
-l or –list
Used with operand -q
Displays the files contained in the package
54