rpm

How can I know which not installed RPM package contains a not installed command?

How can I know which not installed RPM package contains a not installed command? Suse Tumbleweed, I’d like to install tlmgr, I tried sudo zypper install -no-recommends texlive-tlmgr to no avail, I want to know which package contains the command tlmgr or equivalently the file /usr/bin/tlmgr. How can I find the name of the uninstalled …

Total answers: 1

rpm command doesn't show the package config file

rpm command doesn't show the package config file rpm -qc httpd doesn’t show all of the httpd config files.My OS is rocky 9.3.Anybody has suggestion? [root@rocky9 ~]# systemctl status httpd ‚óŹ httpd.service – The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; preset: disabled) Active: active (running) since Fri 2024-03-22 03:26:10 +0330; 19min ago Docs: man:httpd.service(8) …

Total answers: 1

RHEL9: List dependencies of a "rpm" package with "dnf": I wish to see the Repo package name

RHEL9: List dependencies of a "rpm" package with "dnf": I wish to see the Repo package name List dependencies of a "rpm" package with "dnf". dnf repoquery –requires java-17-openjdk-devel Updating Subscription Management repositories. (..) /bin/sh /usr/sbin/alternatives java-17-openjdk(x86-64) = 1:17.0.2.0.8-13.el9 java-17-openjdk(x86-64) = 1:17.0.3.0.7-1.el9_0 java-17-openjdk(x86-64) = 1:17.0.4.0.8-2.el9_0 java-17-openjdk(x86-64) = 1:17.0.4.1.1-2.el9_0 java-17-openjdk(x86-64) = 1:17.0.4.1.1-5.el9 java-17-openjdk(x86-64) = 1:17.0.5.0.8-1.el9_1 java-17-openjdk(x86-64) …

Total answers: 1

Syncronize installed and uninstalled packages between fedora installations

Syncronize installed and uninstalled packages between fedora installations I am planning on basically cloning a fedora installation between two different machines. I am doing clean installation in the new system. However, I would like to know if it is possible to not only copy over the already installed packages, which I know is easily possible. …

Total answers: 1

How does RPM determine whether a symbol is needed and present?

How does RPM determine whether a symbol is needed and present? When I install a rpm package, it sometimes report messages like this: libc.so.6(GLIBC_2.3)(64bit) is needed by xxx.rpm I’m wondering how RPM figures that out, and how can I add my own checkpoints on symbols. It seems to be a fully automatic process during rpmbuild, …

Total answers: 1

How to "grep" a rpm?

How to "grep" a rpm? Find a file provides by rpm is easy dnf provides *bin/vim or yum whatprovides *bin/vim If you have rpm installed or yum..but suppose I want to know the content of rpm for exact file. For example grep -ril bin/vim v* vim-9.0.1572-1.2.ppc64.rpm Too easy but I want to know the EXACT …

Total answers: 2

Do .rpm files installed with rpm get update notices from dnf check-update?

Do .rpm files installed with rpm get update notices from dnf check-update? This (longer set of instructions for ex: https://code.visualstudio.com/docs/setup/linux) shows how to get the repo installed and then goes on to dnf. This direct .rpm (https://code.visualstudio.com/download) info page doesn’t say whether dnf will report updates or whether finding out about avail update notifications is …

Total answers: 1

rpmbuild: handle naming differences of packages in different distributions

rpmbuild: handle naming differences of packages in different distributions I’m writing a RPM spec file for building my software. The software depends on Crypto++. Crypto++ is named differently on different distributions, for example, on OpenSUSE, I should write BuildRequires: libcryptopp-devel But on Fedora, it should be BuildRequires: cryptopp-devel Now, how can I unify the two …

Total answers: 1

grep rpms including summary

grep rpms including summary To grep through rpms I usually do, for example $ rpm -qa | grep gimp gimp-libs-2.10.32-3.fc37.x86_64 gimp-2.10.32-3.fc37.x86_64 gmic-gimp-3.1.6-2.fc37.x86_64 But I would like to include ‘Summary’ description as well: gimp-libs-2.10.32-3.fc37.x86_64 GIMP libraries gimp-2.10.32-3.fc37.x86_64 GNU Image Manipulation Program gmic-gimp-3.1.6-2.fc37.x86_64 G’MIC plugin for GIMP I tried using xargs and awk: $ rpm -qa | …

Total answers: 1

What is the RPM equivalent to `dpkg –compare-versions …`?

What is the RPM equivalent to `dpkg –compare-versions …`? Debian offers a way to compare Debian compatible versions using the dpkg command like so: dpkg –compare-versions <version> <operator> <version> For example, if you want to know whether a given version is before 1.0, then you can use: # gather VERSION from somewhere… VERSION=0.9 if dpkg …

Total answers: 2

SLES15 SP4 | Installation of a rpm package fails when %post scriplet fails with "/usr/lib/1sb/install _initd: No such file or directory"

SLES15 SP4 | Installation of a rpm package fails when %post scriplet fails with "/usr/lib/1sb/install _initd: No such file or directory" I have a .spec file to install a rpm. I have the following snippet in post install (%post scriplet) %post -n %{package_name} # Enable the service at boot time %if %{?suse_version:1}0 /usr/lib/lsb/install_initd %{_initrddir}/%{package_name} %else …

Total answers: 1

On rpmbuild how to start without deleting the build content?

On rpmbuild how to start without deleting the build content? I’m making a rpm .spec for kernel. If an error happen I have to correct and recompile the kernel (1 hour!) Fast question: I want to start the build without rm -fr BUILDDIR How to do? Thanks Asked By: elbarna || Source You should be …

Total answers: 1

how to pass the DMAKE and DUSE flags to cmake in a spec file (rpmbuild)

how to pass the DMAKE and DUSE flags to cmake in a spec file (rpmbuild) A fast question about cmake and spec. If I compile manually with those commands: export CFLAGS="-O2 -fpic" cmake . -DCMAKE_CXX_FLAGS:STRING="$CFLAGS" -DCMAKE_C_FLAGS:STRING="$CFLAGS" -DCMAKE_VERBOSE_MAKEFILE:BOOL="TRUE" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_MANDIR=/usr/man -DSYSCONF_INSTALL_DIR=/etc -DUSE_SSL=1 -DUSE_KRB5=1 make make install all works fine. I want to create an rpm, so …

Total answers: 1

What is the best way to distribute a kernel module with the source code?

What is the best way to distribute a kernel module with the source code? I have a kernel module and I would like to distribute it (ie. package it). I’d like to distribute it so that the user doesn’t need to do anything other than yum/dnf install kmod-mymodule. SRPM: The user must have to build …

Total answers: 1

How do you build an in-tree kernel module as if it were an out-of-tree kernel module?

How do you build an in-tree kernel module as if it were an out-of-tree kernel module? I would like to use the Oracle Linux UEK7 Kernel but UEK7 disabled DRBD , which we rely on heavily. However, the .src.rpm is available so theoretically the drbd.ko module could be built against /lib/modules/$(uname -r)/build from their original …

Total answers: 3

find rpms installed in an Archived root filesystem

find rpms installed in an Archived root filesystem I have archive of a root filesystem, is there is any way I can find installed rpms in that archive. It is a tar archive, exported from docker image. I have exported docker image using save command and it is root fs from one of layer inside …

Total answers: 1

What URL "prefix" should be used to install RPM packages on RedHat 8?

What URL "prefix" should be used to install RPM packages on RedHat 8? I know you can install RPMs using URLs, for example rpm -i http://mirror.alpha-labs.net/centos/7/os/x86_64/Packages/rpm-4.11.3-40.el7.x86_64.rpm However, this URL is for CentOS 7. What URL "prefix" should be used for RedHat 8 x86_64? Asked By: Shane Bishop || Source I am not sure why you …

Total answers: 1

Read installed rpm packages from damaged installation

Read installed rpm packages from damaged installation The SSD of my notebook gave up and the fedora 36 system is not bootable any more. Although the home partition is fully backupped, I have no recent list of installed packages. The root partition is still readable from a live system and I would like to know …

Total answers: 1

How is the "glibc-common" dependency of "glibc.i686" in OracleLinux 8.6 fulfilled?

How is the "glibc-common" dependency of "glibc.i686" in OracleLinux 8.6 fulfilled? OracleLinux 8.6 contains the 32-bit package glibc-2.28-189.1.0.1.el8.i686.rpm. This package requires glibc-common in exactly that version: $ rpm -qpv –requires glibc-2.28-189.1.0.1.el8.i686.rpm … manual: glibc-common = 2.28-189.1.0.1.el8 … However, the repositories don’t contain glibc-common-2.28-189.1.0.1.el8.i686.rpm, only glibc-common-2.28-189.1.0.1.el8.x86_64.rpm. Can the 64-Bit version of glibc-common fulfill the dependency requirement …

Total answers: 1