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?

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
What are package search commands for red hat style distributions?
yum search search_string
26
Give an example of searching for a yum repository for the emacs text editor:
yum search emacs
27
What are the Debian style package installation commands?
1. apt-get update | 2. apt-get install package_name
28
What are the Red Hat Style Package Installation Commands for Yum?
yum install package_name
29
Show an example of installing the emacs text editor from an apt repository on a Debian system:
apt-get update; apt-get install emacs
30
What are the conditions and consequences of installing a package using a low-level tool?
Conditions: If the package file has been downloaded from a source other than a repository. Consequence: it will be installed without dependency resolution
31
Low Level package installation command for Debian Style?
dpkg -1 package_file
32
Low Level Package Installation command Red Hat Style?
rpm -i package_file
33
Package Removal Commands for Debian Style?
apt-get remove package_name
34
Package Removal Commands for Red Hat Style?
yum erase package_name
35
Give an example of uninstalling the emacs package from a Debian-Style system:
apt-get remove emacs
36
What is the most common package management task?
Keeping the system up-to-date
37
Package Update Commands in Debian style
apt-get update; apt-get upgrade
38
Package Update Commands Red Hat Style for Yum
yum update
39
give an example of applying all available updates to the installed packages on a Debian-style system:
apt-get update; apt-get upgrade
40
What vital task can high-level tools perform in a single step?
Keeping the system up-to-date with the latest versions of packages.
41
What does dpkg -i package_file do?
it installs packages, but it will also install upgrades.
42
how do you upgrade with low-level tools in red hat style?
rpm -U package_file
43
What does a Package Listing Command do?
Displays a list of all the packages installed on the system
44
Package listing command for Debian Style
dpkg -l
45
package listing command for Red Hat Style
rpm -qa
46
How do you display whether a specified package is installed?
With Package Status Commands
47
Package Status Command for Debian Style
dpkg -s package_name
48
Package status command for Red Hat Style
rpm -q package_name
49
Package Information Command for Debian style
apt-cache show package_name
50
Package Information Commands for Red Hat Style yum
yum info package_name
51
How do we find which package installed a file?
With Package File Identification Commands
52
Package File Identification Commands for Debian Style
dpkg -S file_name
53
Package File Identification Command for Red Hat Style
rpm -qf file_name