Chapter 2 - Managing Software Flashcards

1
Q

what are the two major Linux package management tools?

2-48

A

RPM Package Manager

Debian

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

what are checksums used for?

2-49

A

to verify the validity of the installed software

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

true/false: rpm packages are compatible with debian-based systems

2-49

A

false

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

true/false: rpm supports ANY cpu architecture

2-50

A

true

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

what is the convention for naming rpm packages?

2-51

A

package name version number architecture.rpm

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

common rpm operations:

  • i
  • U
  • F or –freshen
  • q
  • V or –verify
  • e
  • b
  • -rebuild
  • -rebuilddb

2-53

A

installs a package
installs a new package or upgrades existing one
upgrades a package only if an earlier version already exists
queries a package
verifies a package has unchanged since installation
uninstalls a package
builds a binary package by using source code and configuration files
builds a binary package by using a source RPM file
rebuilds the rpm database to fix errors

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

which command do you use to verify that the package installed?

2-55

A

rpm -qi

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

how would you create a cpio archive file?

2-56

A

redirect the output by using rpm2cpio

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

what is yum?

2-57

A

a meta-packager that enables you to install a package and all its dependencies easily using a single command line

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

tell me the syntax of the yum command

2-57

A

yum options command package

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

you are using yum. you want to obtain a package but don’t want to install it. what do you do?

2-59

A

use the yumdownloader

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

what is the main rpm configuration file?

2-61

A

/usr/lib/rpm/rpmrc

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

why are rpm and debian packages not interchangeable?

2-63

A

because their database formats are different

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

what is the syntax for installing a debian package?

2-64

A

dpkg [options] [action] [package-files | package-name]

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

what is the apt-cache for?

2-67

A

provide information about the debian package database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
match meta-packaging tools with their corresponding distributions:
apt
debian
yum
rpm

2-68

A

apt - debian

yum - rpm

17
Q

why is it not a good idea to upgrade all packages on your system automatically by using APT?

2-70

A

because you’re effectively giving control of your computer to the distribution maintainer

18
Q

what is dselect?

2-72

A

a high level package browser

19
Q

how do you get the alien utility?

2-75

A

apt-get install alien

20
Q

which version of the c library does linux use?

2-81

A

the GNU C library

21
Q

what is a dll?

2-82

A

dynamic link library

22
Q

what are the 2 trusted library directories?

2-84

A

/lib and /usr/lib

23
Q

what is the syntax for ps?

2-89

A

ps options

24
Q

what does the top command show?

2-93

A

system summary information and information about the most cpu-intensive processes on a computer

25
Q

what is the syntax for kill?

2-97

A

kill -s signal pid