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?

A

deplist

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
Q

What is the package system prerequiste for alien?

A

Both RPM and Debian package management should be installed.

26
Q

What is important to remember when installing a tarball with alien?

A

It converts the files in directory using the system root as the base directory.

27
Q

What are four main package dependency problems?

A

Missing library, incompatible library, duplicate files, mismatched package names

28
Q

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?

A

rpm -i name.rpm –force or –nodeps

29
Q

What would resolve the issue of a package being built on a computer with uneeded dependencies?

A

Rebuild the package from source code with rpmbuild –rebuild

30
Q

What RPM option defines the root folder?

A

–root dir

31
Q

What RPM option shows the progress of the installation?

A

-h –hash

32
Q

What RPM option produces a uniform number of hashes for each installed component?

A

-v

33
Q

What RPM option checks for dependencies and other problems without installing?

A

–test

34
Q

What RPM option sets the installation directory?

A

–prefix path

35
Q

What RPM option queries or verifies all packages?

A

-a or –all

36
Q

What RPM option queries what package owns a file?

A

-f or –file filename

37
Q

What RPM option displays package information?

A

-i

38
Q

What RPM option queries a package file not yet installed?

A

-p package_file

39
Q

What RPM option displays packages and files which depend on this package?

A

-R or –requires

40
Q

What RPM option displays the files in the package?

A

-l or –list