Package Management & Program Installation Flashcards

1
Q

Why do you need a package manager?

A

A Package Manager is used to simplify the installation and the removal of programs.

If one package requires another one, it is automatically installed as well.

Typically, package managers can handle updates and system upgrades, too.

=> a package manager presents a complete, centralised installation system

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

Which package form does the Debian package manager accept?

A

.deb

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

Which package manager uses ubuntu?

A

Uses the debian package management system

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

What is contained in a .deb package?

A

Such a package is, in principle, a compressed archive containing the program in binary form along with special control files that are interpreted by the package manager. These files contain information about the package, including its dependencies.

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

What’s the command name for the Debian package manager?

A

dpkg

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

What does APT stand for?

A

Advanced Packaging Tool

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

What is APT? What does it do?

A

The Advanced Packaging Tool (APT) is a frontend to dpkg. It handles package retrieval and package querying, as well as the resolution of dependencies. Internally, APT calls “dpkg” to install or remove packages.

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

Name a console-based package manager

A

aptitude

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

Name a GUI package manager

A

Synaptics

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

Which tool is the most convenient for Ubuntu home users for their software installation?

A

Ubuntu Software Center

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

From which sources can software be installed?

A

any removable (CD, USB) or non-removable media (internet)

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

How can you search within the package database?

A

APT maintains a package database, where meta information (name, dependencies and description) is stored. The option “search” allows to search within the database

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

How do you keep your package database up-to-date?

A

If you are connected to the Internet:

The tool “apt-get” is responsible for updating the database.

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

What could happen if your database is not up-to-date?

A

Program downloads may fail due to outdated information

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

In which 2 ways can programs be installed?

A
  • if locally available via the debian package using dpkg -I

- if found via apt-cache, it can be installed using apt-get (download from the internet or a CD-Rom)

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

Which two options do you have if you want to remove a program?

A

You can either leave the configuration files in place (remove) or by deleting the configuration files as well (purge).

Both methods are provided and handled by tools already discussed, apt-get and dpkg

17
Q

How does the updating process work?

A

Whenever a new version of a program is released, the local package database is updated. BUT no installation is performed. In order to install those updates, the command apt-get upgrade installs the new version of all available packages.

18
Q

What can you do if there is no package available for a required program?

A

Build the program from source. The build process, involving the compilation of the source files, creates a binary, runable program.

19
Q

How does the compiling a program from source work?

A

At first, some necessary prerequisites, for instance libraries needed by the program to build, have to be installed. This can be done either via the package manager or by building them from source as well. Then, the source code has to be downloaded and unpacked to a local directory. Afterwards, the actual compilation process can be started and after completion, the program can be installed and/or executed.

20
Q

How can you get a program’s source code?

A

Download from the internet:

  • as a compressed archive directly from the homepage
  • repositories for version control, like Subversion (SVN), git or Mercurial (hg).
  • websites to look for open source projects are github.com and sourceforge.net
21
Q

Where can you find information on how to build the program?

A

INSTALL, README files

22
Q

What does tar stand for?

A

The name “tar” is short for “tape archive” and comes out of historic reasons when backups of files were performed on tapes.

23
Q

What are patches?

A

Fixes to errors or new features not made by the original author.