Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
1 answer
11 views

rpm: define my own variable in spec file

Is there a way to declare my own variable inside of a spec file and refer to it as %{my_var} ? I see there is %define and %global macros, but seems none of it works for my case.
user avatar
  • 207
1 vote
1 answer
9 views

rpm: how to disable debuginfo

OS RedHat 8.4 I know that having %debug_package macro in a spec`` file will generate debuginfo for a package, and will produce mypackage-debuginfo-.` rpm. However the funny thing is that spec file I ...
user avatar
  • 207
0 votes
0 answers
14 views

Yum install/update hangs at the very end, unable to kill via ctrl-c

So I've got a group of servers (all RHEL 7.9) whose RPMDBs appear to have become corrupted. Not sure how or when, but no matter. I fixed the DBs using these instructions. After that, any attempt to ...
user avatar
0 votes
0 answers
18 views

rpm is not installing dependencies, how to fix that?

I am using fpm to create an rpm for our application and need some dependencies as part of it. yum install gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel ...
user avatar
0 votes
1 answer
57 views

How to install another rpm as dependency to another rpm?

We have built application rpm file using fpm. There we have set python3 as dependency, so it installs automatically before the main rpm. But it installing 3.7. To replace that with 3.8, we need to ...
user avatar
0 votes
0 answers
9 views

How to package rpm with vitualenv?

We are creating an rpm file with fpm As part of our product, when I check the existing project code, old developer using fpm to package the product and also set python3 as dependency. So whenever the ...
user avatar
0 votes
0 answers
46 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 ...
user avatar
1 vote
1 answer
160 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/...
user avatar
  • 161
0 votes
1 answer
64 views

Difference between zypper and rpm for installed packages

I'm looking at a reliable way to find how many installed packages I have on my OpenSUSE Leap 15.3 system. I tried: # number of available packages in the repos vm-admin:~ # zypper se -s | wc -l 55800 #...
user avatar
  • 73
1 vote
3 answers
55 views

Library Won't Update

I'm trying to update my libarchive library on CentOS 7. Currently, I have version 3.1.2. If I type the following command, here is the result: # rpm -q libarchive libarchive-3.1.2-10.el7_2.x86_64 I ...
user avatar
  • 11
0 votes
0 answers
36 views

libgcrypt.so.11 installed but needed by strongswan

I'm trying to get StrongSwan package in Red Hat Enterprise Linux release 8.5 (Ootpa). But it shows an issue, even with libgcrypt-1.8.5-6.el8.x86_64 installed. I tried to get StrongSwan and Libcrypt ...
user avatar
0 votes
1 answer
21 views

Make yum not installing dependancies if main package failed

I have 3 packages corepkg, corepkg-optB and corepkg-optC. corepkg-optC depends on corepkg-optB, corepkg-optB depends on corepkg. I've created a repo of these 3 packages. When I run yum install corepkg-...
user avatar
0 votes
0 answers
40 views

Packaging two builds of an application into separate RPMs, hosted in the same Zypper repository

My application is able to run on OperatingSystem 3 and on OperatingSystem 4. OS 4 stopped shipping OpenSSL 1.0 in favour of 1.1 (as should be), while OS 3 is still on OpenSSL 1.0. My application links ...
user avatar
  • 101
0 votes
0 answers
192 views

prevent rpmbuild from changing the shebang when building python packages on RH8

I am trying to build a RPM from a python application on RHEL8.2 machine. the shebangs on the scripts are set correctly to #!/usr/bin/python3 however for some reason the shebang gets changed to #!/usr/...
user avatar
  • 33
0 votes
0 answers
97 views

Can not install pgAdmin 4 on RHEL 7.7

I am trying to install pgAdmin 4 on RHEL 7.7. (PostgreSQL 13 is already successfully installed) Following the official guide at pgAdmin 4 (RPM) sudo rpm -e pgadmin4-redhat-repo sudo rpm -i https://...
user avatar
0 votes
1 answer
78 views

Can you elaborate on "yum install --downlaodonly"?

You need to install it in an environment where there is no network. So I was installing via RPM. In the meantime, a crash occurred and the installation could not proceed. I found yum install --...
user avatar
  • 77
0 votes
0 answers
278 views

RPM failed dependency that's already installed

We have an old dev server for Centos 6 I want to update Openssl to a modified version 1.0.2k (we have got a C8 server to replace it, but trying to update the old one in the interim). I have built the ...
user avatar
  • 113
0 votes
1 answer
53 views

Cannot get latest-version package from multiple yum repos

There are two rpm repos in my CentOS 8.1.1911. Details are as follows: # virt-1.repo [appstream] name=CentOS Linux 8-stream - AppStream baseurl=http://mirrors.ustc.edu.cn/centos/8-stream/AppStream/$...
user avatar
0 votes
1 answer
31 views

Restore permissions to all files in folder using RPM

Using chmod, I accidentally changed everything in a bin folder and now sudo/su doesn't work. I know rpm -q --whatprovides can provide which RPM provides a specific file. and rpm --setperms can restore ...
user avatar
  • 157
0 votes
1 answer
58 views

Should I build my Haskell app via the RPM SPEC file or try to use a (reproducible) binary from the CI pipeline

I haven't built an RPM from scratch in 20 years. So we can effectively say "never". [edit] The requirement for RPMs is to provide roll-backs, version control, and such. It is non-negotiable. ...
user avatar
0 votes
2 answers
349 views

Auto select solution for zypper

I need to automate package installation with zypper that requires selecting a solution. How can this be done in non-interactive mode? # zypper in /tmp/repos-sles15-sp2-current.x86_64.rpm Loading ...
user avatar
1 vote
0 answers
178 views

RHEL 7.9: rpm --eval "%dist" is now .el7_9 instead of just .el7

Here, we've recently upgraded some of our systems from RHEL 7.8 to RHEL 7.9, and I'm facing an issue related to the "dist" returned by the rpm tool. In some scripts, we share between RHEL7 ...
user avatar
  • 11
1 vote
0 answers
98 views

RPM --queryformat FILEMD5S checksum is different than md5sum of machine

The RPM man page says: The FILEMD5S Tag The FILEMD5S tag is used to display the MD5 checksum for each of the files that comprise the package. Array: Yes (Size: One entry per filemd5s) Used with ...
user avatar
0 votes
0 answers
265 views

Proper way to package a NodeJS application with rpmbuild

I have created my first rpm package for a NodeJS app which is ran as a systemd service. Since I do not want to package the node_modules folder with the rpm (AFAIK npm install is system/node version ...
user avatar
0 votes
1 answer
362 views

install docker in offline Centos Server

I want to install docker into a offline Centos 7 server, but I have missing dependencies. I have executed the following instruction into my local virtual machine ( Centos 7 with kernel 3.10) to ...
user avatar
0 votes
0 answers
153 views

How I could install NGINX from nginx.org repo using yum in CentOS-8?

Problem: After enabling repos, like I did for centos-7, yum just does not see any Nginx RPMs from nginx.org repo: # cat << 'EOF' > /etc/yum.repos.d/nginx.repo [nginx] name=nginx repo #baseurl=...
user avatar
0 votes
1 answer
101 views

After power failure restart both DNF and YUM stopped working, do nothing, not even metadata check

My environment, happily functioning for a long time, experienced a power outage - of course, the immortal power supply was offline at the time, needing new batteries. As the administrator, I know ...
user avatar
  • 1,128
1 vote
1 answer
68 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 ...
user avatar
  • 283
0 votes
0 answers
462 views

Segmentation fault when execute yum or rpm any command

I am facing some issues on centos-7 when I execute yum install, yum upgrade, yum installed list, yum search, yum list installed, rpm then getting an error Segmentation fault. system Logs:- segfault at ...
user avatar
1 vote
1 answer
63 views

RPM Spec files: Set %config files from a list of files

Example snippet of a SPEC file: ... %install unzip $RPM_SOURCE_DIR/APPLICATION-%{version}.zip -d %{buildroot}/ find %{buildroot} -type f ! -name "*.conf" | awk -F %{buildroot} '{print $2}...
user avatar
  • 131
0 votes
1 answer
1k views

Oracle Linux 8.3 can't find libyaml-devel

I'm evaluating Oracle Linux as a CentOS alternatives. During my tests I have to compile a package depending on libyaml-devel but the lib isn't present in the repo. I had the impression Oracle Linux ...
user avatar
0 votes
1 answer
41 views

I can use my local apt repository as a local yum repository?

I'm a newbie in Linux. I have a local apt repository. I didn't want to set up a separate machine and http server for my rpm packages and occupy disk. I wonder if there is some way I can use my local ...
user avatar
  • 16
0 votes
1 answer
45 views

stdout does not display `rpm -qa` output without redirect

On a SLES 12 virtual machine the command rpm -qa does not return anything to stdout. ~> rpm -qa ~> The command finishes after 1 or 2 seconds, so it clearly generates some data. Only when the ...
user avatar
  • 111
0 votes
3 answers
516 views

`yum`/`dnf`/`rpm` equivalent to `dpkg -l` for RHEL/CentOS?

Is there an equivalent yum, dnf, or rpm command to Debian/Ubuntu's dpkg -l command to list both package names and installation status?
user avatar
  • 105
0 votes
1 answer
873 views

update kernel version that higher then next rhel update

we have rhel server with the following details kernel version - 3.10.0-327.el7.x86_64 more /etc/redhat-release Red Hat Enterprise Linux Server release 7.2 (Maipo) from dmesg we see many problems ...
user avatar
0 votes
1 answer
1k views

yum history list + how to verify rpm historical status

The rpm command gives every package installed a transaction ID. The transaction ID is a Unix time stamp (number of seconds since January 1, 1970). You can then perform some operations on packages ...
user avatar
0 votes
0 answers
38 views

why there are missing rpms when installing the same rhel ISO on different machines

we have a very strange behavior after installing new machines with rhel 7.x ( FROM ISO INSTALLER ) we notice that rpm - libcgroup , isn't installed on the current new machines while before couple ...
user avatar
0 votes
1 answer
119 views

replace rpm with yum while rpm using replacepkgs flag

I use the following rpm syntax in order to install few rpm' syntax that exist under pkgs rpm -ivh --replacefiles --replacepkgs /home/pkgs/*.rpm unfortunately in case of rpm dependencies rpm failed , ...
user avatar
0 votes
1 answer
125 views

rpm + how to identify if some rpm was removed or was not installed when installing the OS

we have rhel 7.6 machines we notice that some specific rpm isn't installed on the machine the problem is that we not sure if someone remove it by yum remove or rpm -i or simply rpm was not installed ...
user avatar
1 vote
0 answers
52 views

Is there a way to back out of an rpm update?

Say I have a product distributed as an rpm named myproduct-2.3.1.rpm. I produce an update to version 2.3.2. The rpm contains a script to do something, like convert a file format, that runs at the end ...
user avatar
0 votes
1 answer
61 views

rhel + upgrade individual rpm's from rhel 7.1 to rhel 7.7 or batch upgrade of rpms

We have rhel 7.1 version server , with local repositories of rhel 7.1 ( with rpms’ from rhel 7.1 ) We want to replace the local repository with rpm’s of rhel 7.7 so we intend to Remove the local repo ...
user avatar
0 votes
0 answers
99 views

Unable to update package, because it requires jre1.8 - "Try using --skip-broken". Jre1.8 is already installed on the machine, though

so I'm unable to run a yum update on one of my machines. It returns the following error: [root@yadayada ~]# yum -y update Loaded plugins: fastestmirror Setting up Update Process Loading mirror speeds ...
user avatar
0 votes
0 answers
279 views

How to build kernel-debuginfo from upstream kernel

box: centos7.5 x86_64 from upstream: tar xvfz linux-4.xx.xx make menuconfig ( set CONFIG_DEBUG_INFO=y) save .config make rpm-pkg output 3 rpm:kernel-xxx, kernel-devel-xxx, src.rpm but where is ...
user avatar
  • 1
0 votes
2 answers
279 views

I cannot add Centos 7 repository to install FFMPEG

When trying to use this command to add ffmpeg repository in Centos 7, I tried to add the repository using this command: yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-...
user avatar
  • 155
0 votes
1 answer
1k 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(-...
user avatar
1 vote
2 answers
75 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 ...
user avatar
0 votes
4 answers
5k views

Install rpm packages with Ansible using rpm application (not yum)

I want to install some RPM packages using Ansible and the installed rpm package manager. yum is not installed. Using command module with rpm -i {{package}} causes the task to fail if the package is ...
user avatar
  • 325
2 votes
1 answer
1k views

How to install RPM Fusion repository with Ansible on Fedora 32 Server virtual machine?

I want to install RPM Fusion repository on Fedora 32 Server virtual machine with Ansible I've tried various possibility unsuccessfully : - name: Enable the RPM Fusion repository command: dnf install ...
user avatar
  • 69
1 vote
1 answer
211 views

Need help setting up RPM repositories from behind a proxy

I have a server at work running Redhat 7.6, but the internal repositories are always hopelessly out of date. I've approached the security team who say they can whitelist a repository URL for me, but ...
user avatar
  • 21
1 vote
2 answers
1k views

package already installed but rpm -q shows not installed

I have installed package python2-urllib3-1.10.2-7.el7.noarch on my RHEL 7.7 server using yum: yum install python2-urllib3 and it is successfully installed. now when I run rpm -q python2-urllib3 it ...
user avatar

1
2 3 4 5
14