Questions tagged [rpm]

RPM Package Manager is a package management system used primarily for GNU/Linux operating systems. It used the .rpm file format.

Filter by
Sorted by
Tagged with
0 votes
2 answers
19k views

How to force install an rpm?

I have a gitlab pipeline where I will be installing latest rpm everytime. Some times, even if the target machine is changed manually, the rpm should be installed successfully. But some how I am ...
0 votes
0 answers
45 views

Create rpm for self-compiled glibc [migrated]

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 ...
0 votes
1 answer
4k views

How to set python3 command to work in aws linux 2?

I followed first approach in this link to install python 3.8 Steps I followed: sudo yum install -y amazon-linux-extras amazon-linux-extras | grep -i python sudo amazon-linux-extras enable python3.8 ...
5 votes
3 answers
26k views

yum list available - not showing all packages

I have a strange problem with yum, working on one server and not working on another server that should be identical. The symptom is that after running createrepo on a directory containing RPMs (and ...
2 votes
2 answers
3k views

Red Hat - Berkeley DB library - Corrupted DB

I am getting the below errors while executing the yum or rpm command. error: rpmdb: BDB0113 Thread/process 22448/139817567954752 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-...
28 votes
5 answers
92k views

Solving multilib version problems

I use CentOS 6.4 When I tried to install libgcc with yum install libgcc.i686 I took following massages. Error: Multilib version problems found. This often means that the root cause is ...
1 vote
1 answer
2k views

How to change RPM metadata (version)?

I have a packaged RPM and I would like to repackage it so that is has the same contents but with a different version in metadata. My use case is in a test where I need to simulate the presence of ...
5 votes
3 answers
2k views

Where to store VCS version in RPM?

We're using Git as our VCS and RPMs for packaging. I'd like to store the Git hash a package was built from, but I'm not sure on the most appropriate place. There are a number of tags available to an ...
18 votes
3 answers
18k views

Build RPM using source directory, not tarball

In my organization, we deploy all our software to our production machines using RPM. Our build process (which is automated) involves checking out the source from version control, tarring that source ...
3 votes
3 answers
10k views

How to remove package from rpm database

I have a Centos 6 server that I accidentally added a RHEL 7 package to it's rpm database. Added wrong package sudo rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7....
22 votes
10 answers
21k views

Parse an RPM name into its components

Is there a name-parsing tool that is part of the official RPM tool package? I have a list of filenames. Each is the filename of an RPM package. I don't have the actual packages, just the filenames. ...
6 votes
1 answer
1k views

How to prevent installation of incompatible rpm packages

I have two rpm packages that should not get installed together. After googling around I assume there is no RequiresNot tag or something similar to specify incompatible packages in a specfile. What is ...
1 vote
1 answer
1k views

How to manually validate the signature of an rpm file

What I need A way to get an asc file containing the signature from an rpm file. Why I need it I'm running into the issue described in this Reddit thread, where Chrome installed from https://www.google....
0 votes
0 answers
32 views

How do I flag an rpm package that was installed as a dependency to not be removed if the parent package is removed?

Some background so this is easier to understand: I have cloud-init installed which installs libselinux-python as a dependency. I want to uninstall/remove cloud-init without having libselinux-python ...
1 vote
0 answers
120 views

Fedora CoreOS os-tree apply-live not working

I'm trying to install k3s-selinux on Fedora CoreOS 38 with a systemd unit file: [Unit] Description=K3s SELinux policy Wants=network-online.target After=network-online.target Before=zincati.service ...
0 votes
1 answer
1k views

Installing redis 7.0 from remi-modular repo

This might be blatantly obvious, but I cannot install a package from the remi-modular repository, despite having added the repo file in the /etc/yum.repos.d/ and validating it. I have attempted ...
0 votes
1 answer
342 views

yum unable to find a specific package in private repo

I have a really weird problem. I've setup my private yum repo, it is serving the rpm just fine, EXCEPT one rpm. Let's say I've build and copied over all of my rpms to my custom repo directory, ...
0 votes
1 answer
583 views

Check if software is installed based rpm package name - Rhel 7 and Rhel 9

I have one Rhel7 and one Rhel9 server running in my local lab. When I'm listing all the installed packages uring rpm -qa | grep -i package I get following result: Package-12.2.5.-1.x86_64 The name of ...
0 votes
1 answer
485 views

Can you force replacement of files marked %config in RPMs

If files in RPMs are marked %config or %config(noreplace)¹, running something like dnf update or yum update will not touch (modified) configuration files, but leave the old ones in place and create ....
1 vote
1 answer
82 views

"Yum update" how to delete ghost package?

How do I delete package insign-3.43.3-1 from the "database" for yum update? * yum update insign shows me package 3.43.3-1. * yum update would fail because I already removed the 3.43...rpm ...
4 votes
4 answers
6k views

Yum equivalent of rpm --nopreun

I have a buggy RPM which deletes the installation files when it is upgraded. I want to run yum update pkg-name but I don't want to run the %preun section. Is this possible with yum? If so, what's the ...
0 votes
3 answers
2k views

Can I run for loop over %files directive in the .spec file?

I am writing a spec file which creates multiple packages. Can I use a for loop over %files directive with different names, like this: for name in {package1, package2, package3} ; do %files -n $name ...
0 votes
0 answers
573 views

RPM and YUM not working on Centos7

When I try to use yum update or install package by rpm the below error happened: rpm: /lib64/libnssutil3.so: version 'NSSUTIL_3.59' not found (required by /lib64/libnss3.so) How can I Fix this issue? ...
3 votes
3 answers
6k views

How to add new path to $PATH variable in a post-installation script of RPM?

I want to automatically add a new path to the $PATH variable each time when my RPM package is installed. I tried to use a post-installation script in the my RPM. Here is the part of RPM spec file ...
1 vote
2 answers
302 views

How can I best get the mpt2 drivers back in to Centos8 [for maas images and openstack ironic/image builder]

I need the mpt2sas drivers to get Centos8 to work with my servers. Thanks to them using the rhel nutered kernel the device id's have been removed and wont load with out using a dd disk. I have both ...
38 votes
6 answers
199k views

Install rpm package using Ansible

How do I install .rpm package on remote machine using Ansible? The obvious solution is to use command module, but that is a bit silly. Also I would like to avoid setting up a yum repository just for ...
0 votes
1 answer
220 views

How to install Data Protector RPM patch in Linux?

Well, HPE Data Protector has a long tradition of doing odd things. For example the way an rpm "patch" is installed is not via -U or -F, but differently, which brings me to my question: In ...
1 vote
3 answers
1k views

Converting RPM packages for debian fails "due to shell metacharacters"

I am trying to convert the "MegaRAID Storage Manager" RPM packages to debian dep packages. I'm using the alien package therefor as explained here: https://hosting-tutorials.co.uk/tutorials/...
13 votes
4 answers
16k views

Should I install x86_64 or i386 RPM packages? [closed]

I want to install an RPM package, but I'm not sure whether to install the x86_64 or i386 version. WHM says CENTOS 6.5 i686 virtuozzo at the top. How can I determine which version to install?
2 votes
0 answers
216 views

Module RPMs makes kickstart installation of RHEL based distributions unusable

The title of the post has it all. The first steps to migrate from CentOS 7 to Rocky Linux 8 fail (in my eyes) because of module RPMs. If something is installed the traditional way via dnf, dnf notices ...
0 votes
0 answers
52 views

Installing XtraBackup on Centos 6

I’m trying to install XtraBackup on centos 6 using this guid but i get these errors: Error: Package: perl-DBD-MySQL-4.013-3.el6.x86_64 (C6.10-base) Requires: libmysqlclient.so.16()(64bit) Error: ...
0 votes
0 answers
107 views

How to check if rpm virtual package is provided?

I want to check if java-11-headless is installed. java-11-headless is a virtual package and it is provided e.g. by java-11-openjdk-headless.x86_64 package. I do not care what exactly package provides ...
0 votes
0 answers
497 views

CentOS7 Remi-PHP81 Followed steps. PHP command not found

Trying to install and enable PHP in a CentOS VPS. Found repository information from Remi's RPM Repository - Configuration wizard. Followed steps to install and enable PHP81. But php -v gives command ...
46 votes
5 answers
48k views

Can dpkg verify files from an installed package?

With rpm -qV openssh-server I will get a list of files that have changed compared to default. ~$ rpm -qV openssh-server S.?....T. c /etc/ssh/sshd_config ~$ Can dpkg on Ubuntu do the same?
6 votes
2 answers
17k views

Why are some RPM's "not relocatable"?

An RPM is relocatable if you can install it like this: rpm -ivh --prefix=/path/to/non/default/dir package-name.rpm Without getting the following error message: error: package package-name is not ...
9 votes
3 answers
22k views

"No package pv available." on CentOS 6.2 Minimal

I'm trying to install Pipe Viewer on a CentOS 6.2 minimal system. When I run: yum install pv I get: * base: mirror.thelinuxfix.com * extras: mirror.atlanticmetro.net * updates: ftp.usf.edu No ...
0 votes
2 answers
2k views

Automate NetBackup agent installation via RPM

We have an automated process of deploying new RHEL VMs. However, there's still an annoying manual step to install a NetBackup agent on the machine. This requires coyping a large archive (~ 1 GB) to ...
0 votes
1 answer
3k views

How to make rpm install from user avoid curl SSL errors?

I am trying install a RPM from an url directly from anaconda kickstart (CentOS7) %post phase but I encountered an interesting error: ``` + rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-...
0 votes
1 answer
196 views

How to check if an rpm is completely installed on centos?

We have an rpm to our project and that contains pre and post install scripts. While the post install script is still running, yum list is showing the package name in it. sudo yum list installed ...
5 votes
4 answers
36k views

Yum (CentOS 6.4) - Remove all Installed Packages [closed]

I need to clean my system and redo it all. Is there any easy way to get rid of every single package I've installed (to a point where it's CentOS minimal)? I can't remember all of the packages and yum ...
2 votes
2 answers
6k views

How can I install PostgreSQL 9 on RHEL 6?

I am new to RHEL 6 but have a project where I need a postgres 9 database and I only have RHEL 6 available to me. How can I safely do this? Should I install from source or is there a package around ...
-1 votes
3 answers
30k views

Reinstalling python on CentOS to be able to use yum

Yesterday I accidentally removed the python package using "yum remove" on a CentOS server. After then I realized yum was dependant on python and I could no longer use yum. I think I need to reinstall ...
0 votes
2 answers
954 views

yum update fails: _rpm.error: invalid header data

I am trying to update a package, but it fails with what appears to be a rpm database error - is there a way to repair this? bash-4.2# yum update icinga2 ... Transaction test succeeded Running ...
1 vote
0 answers
1k views

Unable to Downgrade OpenSSL from openssl-1.0.2k to openssl-1.0.1e-58 due to openssl-libs-1:1.0.2k-25.el6 dependencies

Due to issues with old CentOS6 machines and the Let's Encrypt root certificate that recently expired I found a solution online which involves installing a Patched version of openssl-1.0.2k from ...
0 votes
0 answers
626 views

dnf: missing library, but does exist

Trying to install libmediainfo with dnf, got an error about missing library that does exist. How to solve this ? Here is dnfoutput: $ sudo dnf install -v libmediainfo --allowerasing DNF version: 4.7.0 ...
0 votes
1 answer
58 views

How to deduce remote location of RPM that has been installed?

Suppose I had the following entries in /var/log/dnf.log: elfutils-default-yama-scope noarch 0.185-1.el8 baseos 49 k elfutils-devel ...
4 votes
2 answers
25k views

yum : Could not contact CDS load balancer in AWS

I have an old EC2 instance with RedHat 6.5 installed. When I want to yum check-update, it show following error: $ yum check-update Loaded plugins: amazon-id, rhui-lb, security Could not contact CDS ...
0 votes
1 answer
299 views

yum: local repository and modified package

Following up advices to my other question I have set up my local RPM repository on Red Hat 8 machine, placed my private packages in there and am now able to install, update etc. However, there is a ...
2 votes
1 answer
1k views

What's the correct way to force RPM erase & Install instead of upgrade?

I have an RPM whose software recently had its database schema completely redesigned. The current version (We'll call it B.0) is incompatible with older versions of the database schema. Fortunately ...
1 vote
2 answers
1k views

How to remove corrupt RPM install

I tried to install an RPM package and the install process failed. It looks like the program needs signing the Kernel Modules or something. Now I'm stuck in a weird state where rpm says the package is ...

1
2 3 4 5
15