PT. 3 Ch. 14 Common Tasks and Essential Tools Flashcards

1
Q

What’s the most important determinant of distribution quality for Linux?

A

The packaging system and the vitality of the distribution’s support community

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

Why and how do we need to keep up with Linux updates?

A

They update every six months, with individuals software on the daily. We need good tools.

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

What is Package Management?

A

A method of installing and maintaining software on the system

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

What is a general rule of packaging systems?

A

A package intended for one distribution is not compatible with another distribution.

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

What are the two basic camps of packaging technologies?

A

Debian (.deb) and Red Hat (.rpm)

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

What are four distributions for the packaging system Debian?

A

Debian, Ubuntu, Linux Mint, Raspbian

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

What are 4 distributions for the packaging system Red Hat?

A

Fedora, CentOS, Red Hat Enterprise Linux, OpenSUSE

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

What is the basic unit of software in a packaging system?

A

Package File

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

What is a package file?

A

a compressed collection of files that comprise the software package.

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

What can a package file consist of?

A
  1. numerous program files 2. data files 3. metadata 4. pre-installation scripts 5. post-installation scripts (for configuration)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the name of the person who creates the package files?

A

The Package Maintainer (may or may not be an employee of the distribution vendor)

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

What steps does a package maintainer take?

A
  1. Gets the software in source code from the upstream provider (author), 2. Compiles it, 3. Creates the package metadata and any necessary installation scripts.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Where are packages made available to the users of a distribution?

A

Central Repositories

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

Why would a distribution maintain several different repositories?

A

For different stages of the software development life cycle. i.e. “testing” repository, development repository

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

If a package requires a shared resource such a s a shared library, what is it said to have?

A

a dependency

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

Why is some method of dependency resolution provided on all modern package management systems?

A

to ensure that when a package is installed, all of its dependencies are installed, too?

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

What are the two types of tools package management systems consist of?

A
  1. Low-level tools 2. High-level tools
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What do low-level tools in package management systems do?

A

they handles tasks such as installing and removing package files

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

What do High-Level package management system tools do?

A

They perform metadata searching and dependency resolution

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

What is the low level tool for the Debian style distribution?

A

dpkg

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

what are the High-Level tools for Debian style distributions?

A

apt, apt-get, aptitude

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

What are the low-level tools for red hat style distributions?

A

rpm

23
Q

What sets Red Hat style distributions High-Level tools apart from Debian’s?

A

RH uses different high-level tools (such as yum, or dnf)

24
Q

What are package search commands for Debian Style Distributions?

A
  1. apt-get update

2. apt-cache search search_string

25
Q

What are package search commands for red hat style distributions?

A

yum search search_string

26
Q

Give an example of searching for a yum repository for the emacs text editor:

A

yum search emacs

27
Q

What are the Debian style package installation commands?

A
  1. apt-get update

2. apt-get install package_name

28
Q

What are the Red Hat Style Package Installation Commands for Yum?

A

yum install package_name

29
Q

Show an example of installing the emacs text editor from an apt repository on a Debian system:

A

apt-get update; apt-get install emacs

30
Q

What are the conditions and consequences of installing a package using a low-level tool?

A

Conditions: If the package file has been downloaded from a source other than a repository.
Consequence: it will be installed without dependency resolution

31
Q

Low Level package installation command for Debian Style?

A

dpkg -1 package_file

32
Q

Low Level Package Installation command Red Hat Style?

A

rpm -i package_file

33
Q

Package Removal Commands for Debian Style?

A

apt-get remove package_name

34
Q

Package Removal Commands for Red Hat Style?

A

yum erase package_name

35
Q

Give an example of uninstalling the emacs package from a Debian-Style system:

A

apt-get remove emacs

36
Q

What is the most common package management task?

A

Keeping the system up-to-date

37
Q

Package Update Commands in Debian style

A

apt-get update; apt-get upgrade

38
Q

Package Update Commands Red Hat Style for Yum

A

yum update

39
Q

give an example of applying all available updates to the installed packages on a Debian-style system:

A

apt-get update; apt-get upgrade

40
Q

What vital task can high-level tools perform in a single step?

A

Keeping the system up-to-date with the latest versions of packages.

41
Q

What does dpkg -i package_file do?

A

it installs packages, but it will also install upgrades.

42
Q

how do you upgrade with low-level tools in red hat style?

A

rpm -U package_file

43
Q

What does a Package Listing Command do?

A

Displays a list of all the packages installed on the system

44
Q

Package listing command for Debian Style

A

dpkg -l

45
Q

package listing command for Red Hat Style

A

rpm -qa

46
Q

How do you display whether a specified package is installed?

A

With Package Status Commands

47
Q

Package Status Command for Debian Style

A

dpkg -s package_name

48
Q

Package status command for Red Hat Style

A

rpm -q package_name

49
Q

Package Information Command for Debian style

A

apt-cache show package_name

50
Q

Package Information Commands for Red Hat Style yum

A

yum info package_name

51
Q

How do we find which package installed a file?

A

With Package File Identification Commands

52
Q

Package File Identification Commands for Debian Style

A

dpkg -S file_name

53
Q

Package File Identification Command for Red Hat Style

A

rpm -qf file_name