Topic 3 - Installing and running software Flashcards

1
Q

in terms of installing a package, what is a

required package

A

this is a package that is needed to make the selected package work

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

in terms of installing a package, what is a

dependent package

A

the required packages of the selected package may also have required packages

what is the term for this

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

how are

software packages installed / uninstalled

A

this process is handled by a

package manager

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

explain the concept of

shared packages

A

this concept is where two different pieces of software make use of a seperate software package

notes

  • the software package used can be built by the software developers or be third-party
  • this concept brings with it advantages and disadvantages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

name 3 benefits of

shared packages

A

the benefits of this include:

  • saves resources - since the package will not be held inside the any selected package, it means it can be installed once for any other package to use, hence saving disk space
  • consistency - if a package is known to be stable then it can be used again without fear of unexpected behaviour
  • single point of failure - usually a disadvantage but in this case is the opposite. because the package is not held inside the selected package it means that any bugs or vulnerabilities found can be rectified once without every software package having to update or alter their own packages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

name 2 disadvantages of

shared packages

A

the disadvantages of this are:

  • dependency hell - known as dll hell on windows, is a problem where two application programmes require the same package but different versions. Updating or reverting the package causes one of the application programmes to stop working
  • package trees - no matter how much of the package you use the full package must be installed. the problem lies in that that package may have its own required packagaes and so on. the problem is you pull in a lot of outsourced code and your application becomes bloated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what does

package numbering

ensure

A

this helps ensures that a selected software package will always run with a particular version of a package

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

what three key peices of information could

package numbering

convey

A

this can convey:

  • major version - represented as the first number 10.x.x. can tell developers using the package that any change made to the number represents code breaking changes
  • minor version - represented as the second number 10.5.x. can tell developers that minor changes have been made but should have little or no change on the software packages using it
  • security and bug fixes - represented as the third number. can tell developers that improvements have been made to security and the code but should have little or no change on the software packages using it
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what has driven the rise of

software packages and package managers

A

this has been driven by the fact that software is becoming even more complex and relying on many configurations and other software. this is especially the case on linux

note

it was once the case that administrators would handle all configuartions of an installation. however, as mentioned above software has become more complex in many ways

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

what is a

software package

A

this is an archive file that contains the software itself as well as information about any configurations or packages it relies on.

the software package can then be used by the corresponding package manager to install / uninstall the package

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

linux distributions can be based on other linux distributions

briefly describe what this means

A

if a distribution is based on debian for example then it will make use of the debian package file format (.deb). and use the corresponding package manger in this case Advanced Package Mangager (APT).

a distribution based on RPM for example cannot install or use debian packages

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

what does the accronym

APT

stand for

A

this stands for

Advanced Package Manager

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

what is

Advanced Package Tool (APT)

A

this is the package manger that works with debian package file types. It is used to automate the download, update and install of debian packages that are held inside a repository

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

what is the outcome of typing

sudo

with another command

A

using this grants you temporary ‘root’ (administrator) privileges, this is usually used when we need to make any changes to the system

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

what is the outcome of typing

apt update

on a debian based system

A

this downloads and updates the latests package information using the configured sources. This should be used before installing any software to ensure you will get the latest version (requires sudo)

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

what is the outcome of typing

apt upgrade

on a debian based system

A

this is used to upgrade all installed packages to the latest version (requires sudo)

17
Q

what is the outcome of typing

Apt search package name

on a debian based system

A

this will search for the entered package

18
Q

what is the outcome of typing

Apt install package name

on a debian based system

A

this will install the entered package (requires sudo)

19
Q

what is the outcome of typing

Apt remove package name

on a debian based system

A

this will uninstall the entered package

20
Q

what is the outcome of typing

Apt show package name

on a debian based system

A

this will show you information about the entered package such as:

  1. Name and description
  2. Current version
  3. Name of maintainer and url about the software
  4. List of dependencies and the version numbers required
  5. Packages that will break the entered package
21
Q

what is a

repository

A

this is a place on the internet where software packages can be submitted and stored.

package mangers will access this to install or update packages

22
Q

how do

package mangers know where to find repositories

A

on the install of a linux system the address of these are configured and stored so that they can be used by package managers

23
Q

name the two ways in which you can

view the repositories source URL

A

this can be found by:

  • Terminal - Sudo apt update
  • GUI - /etc/apt
24
Q

what is the outcome of

typing a repositories source URL into a browser

A

by doing this you can navigate all the repositories via the browser and view their contents

25
Q

what are the

two key root directories of the debian repository

A

these include:

  • dists/
  • pool/
26
Q

what does the

dists/ directory

of the debian repository contain

A

this contains:

  • different versions of debian (stable, unstable, …)

selcting a version will show:

  • .gz files - these hold the indexes to the packages required that are stored in the pool directory (saves resources since different versions of debian can use the same packages)
  • checksums - hashes such as md5 and sha256 to verify integrity
27
Q

what does the

pool/ directory

of the debian repository contain

A

this holds all the debian packages

28
Q

debian releases

A