rpm

Reading Time: 2 minutes

First Published: 10/8/2024
Last Update: 10/11/2024

This is going to be a basic update. In writing other posts I might need to refer back to this. This will be like a lot of my posts – which is going to be a work in progress. It’s where I know I can keep notes, that are going to answer the kinds of questions that I want answered. And if I needed the answer once, I am probably going to need it again in the future. If the fictional character Leroy Jethro Gibbs (from NCIS ) has a famous numbered set of rules to live by, then I work with a similar one. On my list Rule #1 is, Know thy inventory (which is related to Sharpen the saw (Covey) but only by an adjacent means; you have to know your tools in order to and sharpen them (practice)

Package Managers:

There are more than a few packagemanegers out there. In most cases the package managers are strongly tied to the distribution of Ubuntu linux the default distro is going to be of type .deb and use tools like apt. Enough said about deb for the moment (we are focused on rpm at the moment) for RPM their is yum and zypper

Finding RPMS

For SUSE you can use: https://scc.suse.com/packages/ However it may not find all things. Somethings might not b in the scope of the subscribed packages.

https://scc.suse.com/packages/

For others you many need to resort to google or https://www.rpmfind.net/

LIST PACKAGES INSTALLED

rpm -qa 


REMOVE PACKAGE

To remove a package you can call rpm -e and the name of the package to be removed.

rpm -e hello


INQUIRING WHAT A PACKAGE REQUIRES

localhost:~/rpms # rpm -qp git-2.35.3-150300.10.15.1.x86_64.rpm --requires
/usr/bin/perl
git-core = 2.35.3
perl-Git = 2.35.3
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


QUERIING INFORMATION ABOUT A PACKAGE

localhost:~/rpms # rpm -qi git-2.35.3-150300.10.15.1.x86_64.rpm
Name        : git
Version     : 2.35.3
Release     : 150300.10.15.1
Architecture: x86_64
Install Date: (not installed)
Group       : Development/Tools/Version Control
Size        : 51081
License     : GPL-2.0-only
Signature   : RSA/SHA256, Thu Jul 14 03:49:23 2022, Key ID 70af9e8139db7c82
Source RPM  : git-2.35.3-150300.10.15.1.src.rpm
Build Date  : Thu Jul 14 03:48:07 2022
Build Host  : goat06
Relocations : (not relocatable)
Packager    : https://www.suse.com/
Vendor      : SUSE LLC <https://www.suse.com/>
URL         : https://git-scm.com/
Summary     : Fast, scalable, distributed revision control system
Description :
Git is a fast, scalable, distributed revision control system with an
unusually rich command set that provides both high-level operations and
full access to internals.

This package itself only provides the README of git but with the
packages it requires, it brings you a complete Git environment
including GTK and email interfaces and tools for importing source code
repositories from other revision control systems such as subversion,
CVS, and GNU arch.
Distribution: SUSE Linux Enterprise 15


References:
https://www.baeldung.com/linux/rpm-package-remove
https://rpm-packaging-guide.github.io/
https://blog.packagecloud.io/inspect-extract-contents-rpm-packages/

This entry was posted in RPM. Bookmark the permalink.