Package Management Flashcards

1
Q

Name some of the RPM based distros?

A

Redhat, Centos

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

Example of a debian package manager?

A

“dpkg”, and “apt” is a new front end for the dpkg system

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

Name some of the debian based distros?

A

Ubuntu, Debian, Arch Linux

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

What is a “package” in linux?

A

A package, in its simplest definition,is a compressed archive that contains all the files that are required by our particular software to run.

For example, let’s consider an Ubuntu system. We want to install a simple image editing software such as GIMP, which stands for GNU Image Manipulation Program in this system. To do this, we can make use of the gimp.deb package. This gimp.deb package contains all
the software binaries and files needed for the image editor to run along with the metadata, which provides information about the software itself.

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

What is a package manager in linux?

A

A package manager is a software in a Linux
system that provides a consistent and automated process of installing, upgrading, configuring, and removing packages from the operating
system.

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

Which is the base package manager found in Red Hat-
based distributions such as Red Hat Enterprise Linux, CentOS, and Fedora.

A

RPM

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

Which is the front-end for the RPM system found
in Red Hat-based distributions.

A

YUM

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

Which is the base package manager found in debian
based distributions?

A

dpkg

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

Which is the front-end for the dpkg system found
in debian-based distributions.

A

apt, apt-get

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

Diagram showing types of packet managers?

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

What does RPM stand for?

A

Red hat Packet Manager

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

What is the file extension for the packages managed by RPM

A

.rpm

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

RPM has five basic modes of operation. What are they?

A

RPM has five basic modes of operation:
1. installing,
2. uninstalling,
3. upgrade,
4. query,
5. verifying

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

Command to install a package using rpm?

A

rpm -ivh <package.rpm></package.rpm>

i - install
v - verbose
h -

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

Command to uninstall a package using rpm?

A

rpm -e <package.rpm></package.rpm>

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

Command to upgrade a package using rpm?

A

rpm -Uvh <package.rpm></package.rpm>

Note: The upper case U

17
Q

uppercase U. The RPM database stores
information about all RPM packages installed in your
system. Which directory is this details in ?

A

/var/lib/rpm

18
Q

What details does the /var/lib/rpm store?

A

The RPM database stores
information about all RPM packages installed in your
system in the /var/lib/rpm directory.

It is used to query what packages are installed,
what versions each package is, and any changes to any files in the package since installation, among others.

19
Q

rpm command to get details about an installed package?

A

To query this database and get details about an installed package, use the Rrpm -q, followed by the package name.

rpm -q <package.rpm></package.rpm>

20
Q

What is this command used for rpm -V ?
Note: Upper case V

A

to verify a package

21
Q

which command to verify a package?

A

rpm -V <package.rpm>
Note: Upper case V</package.rpm>

22
Q

what does verifying a package using rpm -V do?

A

Verifying a package compares information
about files installed from a package with the same
information from the original package. This is
especially useful to make sure that the package has been installed from a trusted and secure source. Despite all

23
Q
A