Package Management Flashcards
(23 cards)
Name some of the RPM based distros?
Redhat, Centos
Example of a debian package manager?
“dpkg”, and “apt” is a new front end for the dpkg system
Name some of the debian based distros?
Ubuntu, Debian, Arch Linux
What is a “package” in linux?
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.
What is a package manager in linux?
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.
Which is the base package manager found in Red Hat-
based distributions such as Red Hat Enterprise Linux, CentOS, and Fedora.
RPM
Which is the front-end for the RPM system found
in Red Hat-based distributions.
YUM
Which is the base package manager found in debian
based distributions?
dpkg
Which is the front-end for the dpkg system found
in debian-based distributions.
apt, apt-get
Diagram showing types of packet managers?
What does RPM stand for?
Red hat Packet Manager
What is the file extension for the packages managed by RPM
.rpm
RPM has five basic modes of operation. What are they?
RPM has five basic modes of operation:
1. installing,
2. uninstalling,
3. upgrade,
4. query,
5. verifying
Command to install a package using rpm?
rpm -ivh <package.rpm></package.rpm>
i - install
v - verbose
h -
Command to uninstall a package using rpm?
rpm -e <package.rpm></package.rpm>
Command to upgrade a package using rpm?
rpm -Uvh <package.rpm></package.rpm>
Note: The upper case U
uppercase U. The RPM database stores
information about all RPM packages installed in your
system. Which directory is this details in ?
/var/lib/rpm
What details does the /var/lib/rpm store?
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.
rpm command to get details about an installed package?
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>
What is this command used for rpm -V ?
Note: Upper case V
to verify a package
which command to verify a package?
rpm -V <package.rpm>
Note: Upper case V</package.rpm>
what does verifying a package using rpm -V do?
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