Use RPM and YUM package management Flashcards

1
Q

What RPM switch intalls a package?

A

-i

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

What RPM switch installs a new package or upgrades an existing one?

A

-U

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

What RPM switch upgrades a package only if an earlier version exisits?

A

-F –freshen

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

What RPM switch queries a package, is it installed etc?

A

-q

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

What RPM switch uninstalls a package?

A

-e

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

What RPM switch builds a binary package given source code and configuration files?

A

-b

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

What RPM switch builds a binary package given a source RPM flle?

A

–rebuild

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

What RPM switch rebuilds the RPM database?

A

–rebuilddb

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

What command will convert RPM to cpio archives?

A

rpm2cpio

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

What command extracts a cpio archive?

A

cpio -i –make-directories

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

What YUM command deletes a package from the system?

A

remove or delete

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

What YUM command displays information about a package?

A

list or info

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

What YUM command displays information about packages that provide a specified program or feature?

A

provides or whatprovides

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

What YUM command cleans the Yum cache directory?

A

clean

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

What YUM command enters CLI mode?

A

shell

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

What YUM command installs the specified local RPM files?

A

localinstall

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

What YUM command updates the system with the specified local RPM files?

A

localupdate

18
Q

What YUM command diplays dependencies?

19
Q

What YUM command will only download the file?

A

yumdownloader

20
Q

Where is the main RPM config file and what is special about it?

A

/usr/lib/rpm/rpmrc - don’t edit

21
Q

What file should be created to make global RPM changes?

A

/etc/rpmrc

22
Q

What is the configuration file for YUM?

A

/etc/yum.conf

23
Q

How does a new repository get added into YUM?

A

When a downloaded package is installed the repository is automatically added.

24
Q

What directory holds the yum repositories?

A

/etc/yum.repos.d/

25
What is the package system prerequiste for alien?
Both RPM and Debian package management should be installed.
26
What is important to remember when installing a tarball with alien?
It converts the files in directory using the system root as the base directory.
27
What are four main package dependency problems?
Missing library, incompatible library, duplicate files, mismatched package names
28
What could you do to if you knew a library was present but the package wouldn't install because it didn't detect the library?
rpm -i name.rpm --force or --nodeps
29
What would resolve the issue of a package being built on a computer with uneeded dependencies?
Rebuild the package from source code with rpmbuild --rebuild
30
What RPM option defines the root folder?
--root dir
31
What RPM option shows the progress of the installation?
-h --hash
32
What RPM option produces a uniform number of hashes for each installed component?
-v
33
What RPM option checks for dependencies and other problems without installing?
--test
34
What RPM option sets the installation directory?
--prefix path
35
What RPM option queries or verifies all packages?
-a or --all
36
What RPM option queries what package owns a file?
-f or --file filename
37
What RPM option displays package information?
-i
38
What RPM option queries a package file not yet installed?
-p package_file
39
What RPM option displays packages and files which depend on this package?
-R or --requires
40
What RPM option displays the files in the package?
-l or --list