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
1 vote
1 answer
923 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....
Keegan's user avatar
  • 111
0 votes
0 answers
27 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 ...
reedog117's user avatar
  • 183
1 vote
0 answers
81 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 ...
sctx's user avatar
  • 13
0 votes
1 answer
660 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 ...
Seymour B's user avatar
0 votes
1 answer
262 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 ...
N. J's user avatar
  • 125
0 votes
1 answer
162 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, ...
codenamezero's user avatar
0 votes
1 answer
290 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 ....
Lars Kiesow's user avatar
1 vote
1 answer
65 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 ...
DavidDunham's user avatar
0 votes
0 answers
353 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? ...
user3289412's user avatar
0 votes
0 answers
43 views

Can't install npm on CentOS 6 due dependency issues

I have a CentOS 6 machine that I want to install npm on. Whenever I do a normal yum install npm I get an error saying that I need to install krb5-devel which doesn't show up on yum search so I ...
MikeWazowski's user avatar
2 votes
0 answers
188 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 ...
Volker Raschek's user avatar
0 votes
0 answers
45 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: ...
h0mayun's user avatar
  • 99
0 votes
0 answers
79 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 ...
Mariusz's user avatar
  • 101
0 votes
0 answers
470 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 ...
Vishnu's user avatar
  • 1
0 votes
2 answers
15k 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 ...
Kalel's user avatar
  • 234
0 votes
1 answer
150 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 ...
Kalel's user avatar
  • 234
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 ...
ItsJustMe's user avatar
  • 1,001
0 votes
0 answers
528 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 ...
ymudyruc's user avatar
0 votes
1 answer
57 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 ...
Lucky's user avatar
  • 113
0 votes
1 answer
261 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 ...
Mark's user avatar
  • 249
0 votes
1 answer
198 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 ...
U. Windl's user avatar
  • 374
0 votes
1 answer
3k views

yum: install local RPMs and all local dependencies

I have my locally generated rpm packages (the main package and its dependencies) located in my home directory. The spec file defines dependencies. I'd like to install it with a single yum or dnf ...
Mark's user avatar
  • 249
0 votes
1 answer
952 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.
Mark's user avatar
  • 249
2 votes
1 answer
2k 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-<VERSION>.<ARCH> rpm. However the funny ...
Mark's user avatar
  • 249
2 votes
0 answers
501 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 ...
Jonathan Prater's user avatar
0 votes
1 answer
1k 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 ...
uday kiran reddy's user avatar
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 ...
uday kiran reddy's user avatar
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/...
cmks's user avatar
  • 171
0 votes
1 answer
894 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 #...
dan's user avatar
  • 83
1 vote
3 answers
152 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 ...
Steven's user avatar
  • 11
0 votes
1 answer
113 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-...
locobastos's user avatar
0 votes
1 answer
652 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 --...
inding's user avatar
  • 77
0 votes
0 answers
926 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 ...
Ian's user avatar
  • 173
0 votes
1 answer
437 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/$...
freshMan's user avatar
0 votes
1 answer
164 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 ...
eng3's user avatar
  • 167
0 votes
1 answer
206 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. ...
meangrape's user avatar
  • 115
2 votes
2 answers
1k 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 ...
Dziki_Jam's user avatar
1 vote
0 answers
533 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 ...
oxben's user avatar
  • 11
1 vote
0 answers
416 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 ...
Tanmay Baranwal's user avatar
0 votes
0 answers
695 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 ...
HomeIsWhereThePcIs's user avatar
0 votes
1 answer
729 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 ...
knoppix's user avatar
0 votes
0 answers
297 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=...
vitaly.v.ch's user avatar
0 votes
1 answer
173 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 ...
Richard T's user avatar
  • 1,242
1 vote
2 answers
273 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 ...
Kendrick's user avatar
  • 293
1 vote
0 answers
965 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 ...
Atul Akabari's user avatar
1 vote
1 answer
929 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}...
gspoosi's user avatar
  • 131
0 votes
1 answer
4k 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 ...
Alexandre Stein's user avatar
0 votes
1 answer
148 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 ...
Sheele's user avatar
  • 16
1 vote
1 answer
140 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 ...
TheCooocy's user avatar
  • 141
0 votes
3 answers
1k 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?
wyphan's user avatar
  • 105

1
2 3 4 5
15