Chapter 2: Managing Software Flashcards

1
Q

Package

A

A collection of files that are installed on the computer

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

Dependency Information

A

Lists other packages that are required to install a package.

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

RPM Package Manager (RPM)

A
  • The most popular package manager in the Linux world.

- Cross-platform and supports any CPU architecture

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

Convention for naming RPM packages

A

packagename-a.b.c-x.arch.rpm

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

packagename

A

The name of the package

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

a.b.c

A

The package version number

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

x (as in packagename-a.b.c-x.arch.rpm)

A

The build/release number, representing changes made by the package maintainer.

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

arch (as in packagename-a.b.c-x.arch.rpm)

A

A code for the package’s architecture.

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

Architecture Code for x86 CPU

A

i386

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

If a package is independent of CPU, what is put in the arch field?

A

noarch

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

What is the architecture code for source RPMs?

A

src

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

Compatibility Issues between RPM-based Distributions

A
  • Different package dependencies
  • Difference in names of dependent packages
  • Slightly different files it depends on
  • Basically dependencies!
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

rpm [operation][options] [package-files|package-names]

A

Used to install or upgrade a package at the shell prompt

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

rpm -i

A

Installs a package; note that the system must not contain a package of the same name

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

rpm -U

A

Installs a new package or upgrades an existing one

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

rpm -f
or
rpm –freshen

A

Upgrades a package only if an earlier version already exists

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

rpm -q

A

Finds whether a package is installed, what files it contains, and so on

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

rpm -e

A

Uninstalls a package

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

rpm -b

A

Builds a binary package, given source code and configuration files
(moved to rpmbuild with RPM version 4.2)

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

rpm –rebuild

A

Builds a binary package, given source RPM file

moved to rpmbuild with RPM version 4.2

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

rpm –rebuilddb

A

Rebuilds the RPM database to fix errors

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

rpm –root [dir]

A

Modifies the Linux system having a root directory located at dir.
Used with any operation.

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

rpm –force

A
  • Forces installation of a package even when it means overwriting existing files or packages.
  • Used with -i, -U, -F
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

rpm -h
or
rpm–hash

A
  • Displays a series of hash marks (#) to indicate the progress of the operation
  • Used with -i, -U, -F
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
rpm -v
-Used in conjunction with the -h option to produce a uniform number of hash marks for each package
26
rpm --nodeps
- Specifies that no dependency checks be performed | - Used with -i, -U, -F, -e
27
rpm --test
- Checks for dependencies, conflicts, and other problems without actually installing the package - Used with -i, -U, -F
28
rpm --prefix [path]
- Sets the installation directory to path. | - Used with -i, -U, -F
29
rpm -a or rpm -all
- Queries or verifies all packages | - Used with -q, -V
30
rpm -f file or rpm --file file
- Queries or verifies the package that owns file. | - Used with -q, -V
31
rpm -p [package-file]
- Queries the uninstalled RPM package-file | - Used with -q
32
rpm -qi
Displays extra package info, and used to verify the package has been installed correctly
33
rpm -R or rpm --requires
-Displays the packages and files on which this depends
34
rpm -l or rpm --list
- Displays the files contained in the package | - Used with -q
35
If you want to do rpm on multiple packages, how do you list them?
Just separated by spaces on the command line yo
36
Which rpm operations require a package filename as opposed to a package name?
-i, -U, -F and rebuild operations
37
Which rpm operations take a package name as opposed to a package filename?
-q, -V, -e
38
Which commands must you use to extract info from an rpm command?
rpm2cpio to convert it to a cpio file, then pipe it to cpio -i --makedirectories to extract the data Note: always do this is in an empty subdirectory that is created for this purpose only
39
Yum
Enables you to install a package and all its dependencies easily using a single command line.
40
Three popular Linux distributions that use Yum
Red Hat, CentOS, and Fedora
41
yum [options] [command] [package...]
The command you use to use Yum
42
yum install
Installs one or more packages by package name, and the dependencies
43
yum update
Updates the specified package or packages
44
yum check-update
Checks to see whether updates are available and displays them if they are
45
yum remove or yum erase
Deletes a package from the system and depended-on packages
46
yum list
Displays information about a package
47
yum provides or yum whatprovides
Displays info about packages that provide a specified program or feature
48
yum search
Searches the repositories' package names, summaries, packagers, and descriptions for a specific keyword
49
yum info
Displays info about a package, similar to | rpm -qi
50
yum clean
Cleans up the Yum cache directory to keep packages from chewing up too much disk space
51
yum shell
Enters the Yum shell mode, in which you can enter multiple Yum commands one after another.
52
yum resolvedep
Displays packages matching the specified dependency
53
yum localinstall
Installs the specified local RPM files
54
yum localupdate
Updates the system using the specified local RPM files
55
yum deplist
Displays the dependencies of the specified package
56
How to download a package but not install it with Yum?
yumdownloader [packagename]
57
Two GUIs for Yum
yumex and kyum
58
What is the main RPM configuration file?
/usr/lib/rpm/rpmrc
59
Which file should you create to make global RPM changes?
/etc/rpmrc
60
Which file should you create to make per-user RPM changes?
~/.rpmrc
61
What is the line you should add to a RPM configuration file to optimize architecture?
optflags or buildarchtranslate
62
What is the Yum configuration file?
/etc/yum.conf with additional config files in /etc/yum.repos.d
63
Livna
A Yum repository that hosts multimedia tools
64
KDE Red Hat
A Yum repository that provides improved KDE RPMs
65
Fresh RPMs
A Yum repository that provides additional RPMs, mostly focusing on multimedia applications and drivers.
66
How do RPM and Debian relate to OS and CPU type?
Their package formats are neutral with respect to em!
67
What was the original architecture of the Debian distribution?
x86
68
dpkg [options][action] [package-files|package-name]
Command used to install a Debian package
69
dpkg -i or dpkg --install (action)
Installs a package
70
dpkg --configure | action
Reconfigures an installed package
71
dpkg -r or dpkg --remove (action)
Removes a package but leaves the configuration files intact
72
dpkg -P or dpkg --purge (action)
Removes a package, including configuration files
73
dpkg --get-selections | action
Displays currently installed packages
74
dpkg -p or dpkg --print-avail (action)
Displays information about an installed package
75
dpkg -I (that is an i) or dpkg --info (action)
Displays information about an uninstalled package file
76
dpkg - l [pattern] or dpkg --list [pattern] (action)
Lists all installed packages whose names match pattern
77
dpkg -L or dpkg --listfiles (action)
Lists the installed files associated with the package
78
dpkg -S [pattern] or dpkg --search [pattern] (action)
Locates the package(s) that own the file(s) specified by pattern
79
dpkg -C or dpkg --audit
Searches for partially installed packages and suggests what to do with them
80
dpkg --root=[dir]
- Modifies the Linux system using a root directory located at "dir" - Can be used with all actions
81
dpkg -B or dpkg --auto-deconfigure
- Disables packages that rely on one that is being removed | - Used with -r
82
dpkg --force-things
Overrides defaults that would normally cause dpkg to abort
83
dpkg --ignore-depends=[package]
- Ignores dependency information for the specified package | - Used with -i,-r
84
dpkg --no-act
- Checks for dependencies, conflicts, or other problems without actually installing or removing the package - Used with -i, -r
85
dpkg --recursive
- Installs all packages that match the package-name wildcard in the specified directory and all subdirectories. - Used with -i
86
dpkg -G
- Doesn't install the package if a newer version of the same package is already installed - Used with -i
87
dpkg -E or dpkg --skip-same-version
- Doesn't install the package if the same version of the package is already installed - Used with -i