Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [rpm]

RPM is a package management system intended primarily for Linux distributions.

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

RPM upgrade two servers with same packages on different days

I have two servers called test and prod and they have exactly the same packages installed. On day 1 I dnf upgrade server test and then test if the installation vent good. If the test vent good I do an ...
hschou's user avatar
  • 2,912
0 votes
2 answers
52 views

How to recover from deleted /var/lib/rpm/ SQL database rpm files?

I am on a Fedora Linux machine and made a terrible mistake by accidentally deleting the rpm SQL database files located in /var/lib/rpm. I am not even sure what these files are used for. It seems to be ...
code's user avatar
  • 101
0 votes
0 answers
12 views

Custom package security metadata (RPM)

I'm extremely new to packaging RPM's. I have an internal yum repository that I have RPM's for internal SSL certificates, but a few other programs/utilities that are simple enough to package that I can'...
Mose's user avatar
  • 123
0 votes
0 answers
42 views

RPM libgcc package conflicts with installed libgcc version newer

I am installing gcc4 (http://v14700.1blu.de/aix/index.php?n=Main.Gcc#v4.8.3) on aix. One of the dependencies is libgcc 4.8.3-1.I install it via rpm -i libgcc-4.8.3-1.aix7.1.ppc.rpm and get the error: ...
ibse's user avatar
  • 295
0 votes
1 answer
23 views

How to identify which rpm database is being queried?

Good morning, I have an internal tool that does some requirements checks prior to deploy our software. One of these checks is to check for mandatory packages installed or not. When the client executes ...
Simon's user avatar
  • 101
1 vote
1 answer
22 views

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

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/...
gboffi's user avatar
  • 1,404
2 votes
3 answers
220 views

List files only in rpm package

Launching rpm -ql <somerpm> lists files and directories contained in an rpm package. I am interested in only listing the files strictly speaking, not the directories. Is there any flag or ...
carce-bo's user avatar
  • 145
0 votes
1 answer
21 views

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 ...
Emad Khavaninzadeh's user avatar
0 votes
0 answers
18 views

YUM can't resolve dependency even though yum finds the dependent package

This is driving me crazy. Yum is telling me that it can't resolve a dependency even though it finds the dependent RPM. Yum says that sri-mcstools = 3.0_3_ge35b2fd-master is required and that it's ...
shrewmouse's user avatar
0 votes
2 answers
51 views

How to check the source code of an rpm fusion package?

This answer https://unix.stackexchange.com/a/617937/542871 mentions that one can check the code of an rpm fusion file at https://pkgs.rpmfusion.org/cgit/ but I did not find the file that I was ...
userrandrand's user avatar
0 votes
1 answer
27 views

Create rpm for self-compiled glibc

I have successfully compiled glibc-2.28 and want to know how to package it into an rpm that is identical(except code) to a centos package as created for centos 7 distro. If I had a template for how ...
Steve H's user avatar
  • 15
0 votes
0 answers
23 views

mdadm won't update or install after file conflict: "Unpacking of archive failed on file /usr/sbin/mdadm;65da9dab", "no such file or directory "

I'm trying to update my system with zypper dup but mdadm specifically is having trouble. I'm on openSUSE Tumbleweed and running this in fish, if that matters. I also do not have any form of RAID set ...
corviraptor's user avatar
1 vote
1 answer
1k views

Can't run RPM due to calling hook fsm_file_prepare in selinux plugin on Oracle Linux 9.3

I was doing a standard yum update on my Oracle Linux 9.3 system. Unfortunately it rebooted during the update. Now I can't update anything. I traced it to a problem in RPM. Any time I try to use RPM to ...
user2959589's user avatar
0 votes
1 answer
956 views

yum/dnf install fail

I was using centOS8 and try to execute yum install -y gcc tcl and failed. The error shows it has some problem with signature check or something at rpm install process.The console log is like error: /...
Toxice_w_'s user avatar
0 votes
1 answer
40 views

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 ...
Sybil's user avatar
  • 1,843
0 votes
1 answer
20 views

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 ...
hannes101's user avatar
  • 135
0 votes
0 answers
67 views

TOTP app for SL7 (RHEL7), preferably RPM?

We are unfortunately stuck with Scientific Linux 7 (a RHEL 7 clone) for a while longer, until we prepare our move to Ubuntu later this year. Our organisation is now also starting to require MFA for ...
dave559's user avatar
  • 379
0 votes
0 answers
44 views

MariaDB 10.9.* for Fedora 39 - CPack Error

I have updated my linux-server to Fedora 39 and my MariaDB doesn't work now, because old files have been generated for MariaDB 10.9, but after update it auto-install MariaDB 10.5. What I can do in ...
Timofey Stanskov's user avatar
-1 votes
1 answer
60 views

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 ...
daisy's user avatar
  • 54.7k
0 votes
1 answer
24 views

distribute userspace and kernel component in one RPM

I am writing an application on Linux that has both userspace and kernel component ( in the form of loadable module i.e. .ko). I'd like to provide this as 1 package to the user rather than having to ...
HarperDada's user avatar
0 votes
1 answer
103 views

Centos install exim 4.94 dependency error

I am trying to install exim's specific version on centos... yet the log is like below. To me it seemed like an openssl issue i check it but it seems installed already. [root@vmi1522973 ~]# rpm -ivh ...
Ahmed Can Unbay's user avatar
1 vote
2 answers
348 views

How to create a global variable in RPM spec file

At RPM installation time, I want to determine if the host is UAT or PROD. Once I know, I can then set a variable (say %user, %group) that can be used anywhere in the RPM (our App uses a different Unix ...
Wilko's user avatar
  • 111
0 votes
1 answer
227 views

Can I recreate a corrupted RPM database?

I've experienced corrupt RPM DB. I know the RPM DB has information of packages installed on my system, but I'd like to know: How to rebuild it What happens when it's being rebuilt Consequences of ...
N. J's user avatar
  • 157
0 votes
1 answer
541 views

dnf install self-signed package Error: GPG check FAILED

I have a repository and a package and want to install it from that repository on Fedora 39. The repository is here for (testing purposes, ignore the bucket name ubuntu, it contains rpm repo) https://...
Oleg Antonyan's user avatar
1 vote
0 answers
547 views

What can be done when installing an RPM package results in a digest mismatch error?

fatal: [server_hostname]: FAILED! => { "changed": true, "cmd": [ "rpm", "--install", "--force", "--replacefiles", "--nodigest", ...
jspaine's user avatar
  • 11
0 votes
2 answers
276 views

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 ...
elbarna's user avatar
  • 12.8k
0 votes
1 answer
57 views

Creating RPM for 3rd party software with local site configuration

I download and create RPM packages for 3rd party software. There is a ./config directory that contains various config files that are specific to my company but are not part of the software bundle ...
Wilko's user avatar
  • 111
0 votes
1 answer
85 views

Unable to fild kazam package to remove it

Today I faced serious bug while using kazam (screen recorder) on fedora 38 workstation. The bug was unavailability to stop recording. I tried to reinstall it by running in terminal sudo dnf reinstall ...
Михаил Агафонов's user avatar
0 votes
1 answer
33 views

Inverse dependencies or, why a package was automatically installed?

On SUSE Tumbleweed, just updated (2023-08-20) and I have seen in the log a package that for sure I've never manually installed ... (343/370) Installing: trainwreck-5.109.0-1.1.x86_64 .......... [done] ...
gboffi's user avatar
  • 1,404
1 vote
1 answer
103 views

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/...
iletras's user avatar
  • 432
1 vote
0 answers
42 views

How to create a rpm according a exist one?

I want to create "snapd" rpm on HUAWEI's OS(openEuler OS), but I have no experience with rpmbuild. In snapd's github repository, there are many spec file for other Linux distribution like ...
cookie's user avatar
  • 11
1 vote
1 answer
98 views

How to install package on Airgap Fedora IOT with rpm-ostree

I have installed Fedora IOT 38 on an offline server and I'm attempting to install an RPM package. However, I'm encountering the following error: # rpm-ostree install k3s-selinux-1.4-1.coreos.noarch....
ImranRazaKhan's user avatar
2 votes
1 answer
99 views

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:...
Siyuan Ren's user avatar
  • 1,372
2 votes
0 answers
48 views

Missing mono vbc.exe in AlmaLinux 9

I am running AlmaLinux 9 (clone of RH 9) and installed the available Mono packages. I had to install an RPM from Fedora 38 to get vbnc.exe (from package mono-basic) However, since vbnc.exe is ...
TSG's user avatar
  • 1,738
1 vote
1 answer
90 views

Spec file for rpmbuild to build gdb9 on ec2

I'm using aws's ec2 instance and I need to install a newer version of GDB (I can't use yum install since there is no newer version available for amazon RHEL). My workflow requires to do this process ...
danwgh's user avatar
  • 23
0 votes
1 answer
257 views

I uninstalled zypper in openSuse Tumbleweed by accident, how do I get it back?

I thought I'd do some cleaning up, so I ran: zypper packages --orphaned | awk -F'|' 'NR==0 || NR==1 || NR==2 || NR==3 || NR==4 {next} {print $3}' \ | grep -v Name | sudo xargs zypper remove --...
Didier A.'s user avatar
  • 101
3 votes
1 answer
290 views

RHAOS packages on RHEL

I am downloading some RPM packages from the Red Hat Customer site and came across some rhaos packages. I'm not sure what they are exactly. For example: podman-4.4.1-3.rhaos4.13.el8.x86_64.rpm I couldn'...
Alexandre Soares's user avatar
3 votes
0 answers
233 views

Options for managing user created files in rpm spec file

How is best to handle files in an rpm spec file that may or may not exist with these specifics: Part of the files delivered are example files under a /conf.d/ directory. The files are installed as ...
EddieSub's user avatar
1 vote
1 answer
102 views

Could not execute mockbuild: Could not download sources

When writing a .spec file for Fedora, I ran into a problem. I can't seem to be able to do fedpkg mockbuild at all. No matter what source I use, HTTPS or local, I keep running into this error: Failed ...
Ignis Incendio's user avatar
0 votes
1 answer
354 views

Trying to build a source rpm getting: error: Architecture is not included: x86_64

When I try to build a source rpm for podman 4.5 on Alma Linux 8, I'm getting rpmbuild --rebuild ./podman-4.5.0-1.fc39.src.rpm Installing ./podman-4.5.0-1.fc39.src.rpm warning: user mockbuild does not ...
Evan Carroll's user avatar
  • 31.2k
0 votes
1 answer
140 views

Adding and mounting a NFS share from RPM installer

I am building an installer for a proprietary SW package that requires an NFS mount to be added, if not already present, to /etc/fstab, and then mounted. I would like to automate this if possible so ...
Ben Froelich's user avatar
0 votes
1 answer
3k views

yum equivalent of rpm --nofiledigest/--nomd5

I have a package that I would like to install. However, I get the following error when doing so # yum install package.rpm ... Transaction test succeeded Running transaction Installing : package....
basil's user avatar
  • 111
1 vote
0 answers
2k views

package XX does not verify: Payload SHA256 ALT digest: BAD

Trying to install a package using yum with and without the option --nogpgcheck on RHEL 9. In both cases I get the following error: package XXX does not verify: Payload SHA256 ALT digest: BAD (Expected ...
N. J's user avatar
  • 157
2 votes
1 answer
195 views

Correct way to modify config files in an upstream RPM?

What's the right way to create an RPM that modifies the %config(noreplace) files installed by another RPM? Specific instance of the general question: We want to modify the repository definitions ...
David M's user avatar
  • 123
1 vote
1 answer
44 views

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' ...
Amba's user avatar
  • 13
0 votes
0 answers
180 views

Nvidia GPU driver won't compile from RPM

I recently update from OpenSuSE 15.3 to 15.4 including a GPU update to be able to use the new drivers (beyond version 490). Since this upgrade the kernel module is not updated by any RPM base install. ...
msebas's user avatar
  • 101
0 votes
0 answers
253 views

useradd --create-home not adding a home directory Rocky Linux 8 but does in CentOS 7

I have an RPM that runs a scriptlet to add a user and create a home directory. I have used this before on CentOS 7, but now need this RPM to run it on Rocky Linux 8 so I've rebuilt the RPM (it's ...
Dave's user avatar
  • 103
1 vote
1 answer
3k views

Verifying an rpm package integrity

I'm trying to verify the integrity of packages using rpm -K command, but whatever I type it says "No such file or directory", although the packages are installed [anonymous@vendetta ~]$ rpm ...
TheRoguePrince's user avatar
4 votes
2 answers
3k views

How dnf/yum decides to refresh or do not refresh repositories?

When I try to install a package say git using: dnf install -y git in the very same virtual machine image dnf/yum sometimes simply installs the package, but sometimes, usually if some time spent after ...
g.pickardou's user avatar
0 votes
0 answers
360 views

Removing a package without rpm nor dnf

For an unknown reason my RPMDB got corrupted and after hours and hours of digging I was able to create and populate a new RPMDB, all packages needed to be reinstalled but I have a problem with ...
X3MBoy's user avatar
  • 458

1
2 3 4 5
22