Questions tagged [rpm]

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

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

Query dependencies and scripts in a package before installing | CentOS 9

If I want to perform a search on an RPM package before installing it, how can this be done? If I run yum info bind, it gives a basic overview: [user@localhost ~]$ yum info bind Last metadata ...
0 votes
2 answers
21 views

Get a URL list of .rpm to update a package in closed network environments

Background I am running a server with RHEL 8 in a closed network environment. I can upload files to the server, but I can't use yum update on the server. I want to update a specific package to the ...
0 votes
1 answer
49 views

dnf: how to completely remove package (.rpmsave, .rpmnew files etc.)

Is there a way to fully remove package with dnf? Normally dnf remove package-name will keep configuration files, which were modified locally, as for example /etc/my-package/config-file.rpmsave or ...
  • 1,501
2 votes
1 answer
17 views

RPM package contents in Fedora running under WSL2

I'm confused. I have a Fedora 36 "machine" running under WSL2 on windows box. And either there's some heavy magic that I don't know of going on or I simply don't understand something. Let's ...
  • 23
4 votes
1 answer
58 views

How are conditional "<capability> if <capability>"-type dependencies resolved by RPM?

On inspecting dependencies of RHEL8 packages, I recently came across the following dependency statement: ~$ rpm -qpv --requires cockpit-ws-264.1-1.0.1.el8.x86_64.rpm post: (policycoreutils if ...
  • 19.3k
1 vote
0 answers
14 views

yum dependency failures - interpreting and resolving "Not found:", "Requires:", and "Removing:" messages when attempting a "yum update"

I have a CentOS 7.9 server, successfully updated from CentOS 7.4 via the standard "yum update" command. Install 18 Packages (+93 Dependent packages) Upgrade 1219 Packages (yum also ...
0 votes
1 answer
20 views

RPM: files created in %post are lost during upgrade

In my .spec file I create directory and touch a file in in during %post stage: %post mkdir -p %{sharedstatedir}/my_app touch %{sharedstatedir}/my_app/my_app_file.txt However during dnf upgrade my_app ...
  • 1,501
1 vote
1 answer
80 views

Empty rpm files after yum update

On rare occasions, after running yum update one or more packages gets installed with 0 size files and the problem gets fixed after reinstalling the affected package. I would have believe an external ...
  • 11
0 votes
1 answer
39 views

"dnf upgrade ..." removes files

I have my application in three different rpm packages, I wrote its .spec file, install works as expected, dnf remove deletes the package and also cleans up its config files etc., dependencies are ...
  • 1,501
1 vote
1 answer
22 views

dnf module install ignores provided artifacts

Unexpectedly, dnf module install wants to install a newer version of the requested package, ignoring the artifact shipped with the module stream. As far as I know, this is exactly what should not ...
  • 111
0 votes
0 answers
16 views

Creating rpm/deb packages for different configurations of my app which will replace each other

TL;DR I want to ship my application in two configurations: basic package and full package with additional modules. How do i do that? I have two packages for my application for CentOS: app.rpm which is ...
  • 1
0 votes
0 answers
18 views

I know RPMs can have build dependencies, but can they also have testing dependencies?

At work we are developing a number of different software tools in different repositories, which get packaged as RPM files. Our suite of test data for unit and integration testing has now grown to the ...
  • 101
0 votes
2 answers
66 views

How to list installed packages with their summary using `dnf`?

I can list installed packages on my Fedora with: dnf list installed When searching for packages, I'd use something like: dnf search terminal dnf will proceed to list available packages similar to ...
  • 10.6k
0 votes
2 answers
55 views

installed cabextract manually using make install, but its not available when using rpm

[root@mybox ~]# cabextract --v cabextract version 1.9.1 [root@mybox ~]# rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm error: Failed ...
0 votes
0 answers
90 views

Completely remove VirtualBox-6.1 from Fedora Silverblue

I installed VirtualBox-6.1 on my Fedora Silverblue 36, and I now I want to completely remove it. This guide to install InstallationGuide Doing rpm-ostree remove VirtualBox-6.1 did not do anything. ...
  • 1
0 votes
1 answer
50 views

How do you put conditionals in an RPM spec file for %install and %file macros?

I only want files copied into an RPM spec file under a certain condition like: %install if [ %{test}=="true" ]; then cp %{topdirectory}/file1.txt $RPM_BUILD_ROOT/home/user1 fi %files ...
0 votes
0 answers
16 views

dnf upgrade sequence of actions

What exactly does dnf upgrade <package> do? Am I right that it: Removes the old package, if higher version is available (is it similar to dnf remove <package>?) Installs the new version (...
  • 1,501
0 votes
1 answer
26 views

Why does yum install stall when performing an RPM install from my spec file?

I normally start with a Minimal Centos 7 and run rpm -i postgres10-libs-10.15-1PGDG.rhel7.x86_64.rpm And this works perfectly. However, I am now writing an RPM spec file and trying to get it to do ...
0 votes
2 answers
76 views

How do I modify the rpm spec file to require java-1.8.0-openjdk on centos 7?

I normally start with a Minimal Centos 7 and run yum install java-1.8.0-openjdk in order to install a Java Runtime Environment. This works perfectly as I am able to execute JAR files. I am now ...
0 votes
1 answer
54 views

I need a package for my version of RHEL/EPEL/CentOS/Fedora, but it's only packaged for other versions of Redhatoids

I'm often in the situation where I backport some fedora-packaged software to CentOS, or forward-port something from an older version of EPEL to Fedora, or vice versa. How can I do that with the least ...
0 votes
1 answer
138 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 defined dependencies. I'd like to install it with a single yum or dnf ...
  • 1,501
0 votes
1 answer
311 views

RPM for suse linux named libatomic1

my os info is; NAME="SLES" VERSION="15-SP3" VERSION_ID="15.3" PRETTY_NAME="SUSE Linux Enterprise Server 15 SP3" ID="sles" ID_LIKE="suse" ...
  • 3
1 vote
2 answers
410 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} ?
  • 1,501
1 vote
1 answer
209 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 ...
  • 1,501
2 votes
1 answer
1k views

OpenJDK 17 for CentOS 7

Currently there is no possibility to install java-17-openjdk through sudo yum install java-17-openjdk on a CentOS 7 system (CentOS Linux release 7.9.2009 (Core)) as it was possible some time ago. When ...
0 votes
1 answer
63 views

rpm database lost, how to proceed?

I completely lost the rpm directory under /var/lib with no way to recover it. (I know what I should have done...) I have made a new one (rpm --initdb) but of course rpm and yum no longer know what's ...
0 votes
2 answers
56 views

rpm can not decide if package is installed or not

Running rpm -i jdk-6u45-linux-amd64.rpm on CentOS 7.0.1406 gives me: package jdk-2000:1.6.0_45-fcs.x86_64 is already installed However running rpm -ql jdk-6u45-linux-amd64.rpm gives: package jdk-6u45-...
0 votes
1 answer
366 views

automatically activate service after RPM was installed

OS - Red Hat Enterprise Linux 8 I've created a .spec file to build and package my application. My rpm also includes my_app.service file for systemd to start it. However, by default one has to enable ...
  • 1,501
1 vote
1 answer
67 views

Modifying compiler options when building RPMS that use cmake

I'm building a package on Rocky 8 that works fine on Fedora 35. When I tried to compile it on Rocky 8 using rpmbuild -ba, I got the error: relocation xxxxx can not be used when making a shared object; ...
0 votes
1 answer
51 views

How can I list packages selected manually via yum?

I'm working on a CentOS system where I install packages, occasionally, with yum install whatever. And, of course, some packages are dragged in as dependencies. Is it possible to get a listing of all ...
  • 7,661
1 vote
1 answer
351 views

rpmbuild fails | Missing dependencies (However missing dependencies are installed)

I'm attempting to build RPM's & Repo's for various agent's we use at my company. This particular package has a private library and I'm unable to figure out what the problem is. The package seems ...
  • 123
0 votes
0 answers
65 views

Yum/rpm unable to resolve dependencies on custom packages

I have a set of packages that are custom built and have been working well for nearly a decade with all their interdependencies. Now however we are moving everything over to 64bit (late to the party I ...
0 votes
1 answer
136 views

How do you download a RPM by name and version, using Python or terminal?

I need to download .rpm files for particular packages by specifying the package name and version. Such as "libX11-1.5.99.902". I've been looking online to find a way to query & download ....
1 vote
1 answer
111 views

Which tool to build a RPM inside a chroot?

I'm using pbuilder to build my binary package for Debian. pbuilder creates a chroot environment, installs all the packages declared as required for the build, and then builds the binary .deb packages ...
1 vote
0 answers
217 views

CentOS 7: Python2.7.5 got overwritten and can't use yum or python2

I was installing the Torque queue system onto my CentOS 7 server, and after running the config command for the installation, my default python2 version (2.7.5) got overwritten and replaced by python2....
1 vote
1 answer
164 views

update initramfs every time rpm is installed or updated

i am working on rpm which contains kernel modules to be installed in to /lib/modules/<uname -r>/updates folder. Since the module is part of initramfs. when ever i install rpm i have to manually ...
0 votes
2 answers
292 views

Does reinstalling package also reinstall dependencies?

If package A depends on package B, if I reinstall package B, what would happen to A? Will it be forever removed? Will it be removed, and then reinstalled? Will it simply be ignored by the package ...
  • 4,477
1 vote
2 answers
75 views

RPM macro and quotes

I would like to include a file in a package with a directory which is dependendat on the system. I define the directory with %define completions_dir "%( pkg-config --variable=completionsdir bash-...
  • 9,466
2 votes
1 answer
210 views

If I do not care about debug support in red hat packages, what are the drawbacks of turning build-id support off in the specs file?

As a follow up on this question, what if I am not interested in having these debug features - how do I simply prevent these build-id files (debug info packages?) from being installed ? Ultimately I do ...
  • 308
2 votes
1 answer
150 views

grep regular expressions + capture rpm's version

we want to check if following rpm's version are installed , so we did as: rpm -qa | egrep -c 'python-argcomplete-0.3.7-1|postgresql-libs-9.2.13-1.el7_1.x86_64' since higher version of postgresql-libs ...
  • 11.4k
2 votes
2 answers
330 views

Make OS-dependent Requires section in an RPM spec file

Situation I have an RPM that uses semanage (SELinux policy management tool) and restorecon (SELinux context configuration tool) in the post-installation and pre-uninstallation stages. Unfortunately, ...
  • 2,086
2 votes
0 answers
131 views

Why is `rpm -qa base*` so terribly slow?

I wonder: rpm uses a (simple) database to store things like packet names. When using rpm -qa to query that database, it is terribly slow. For example, this command took almost a minute to complete ...
  • 864
1 vote
1 answer
26 views

nappo - probably dotnet command missing

I know that this is a question for beginners, but I cannot find the nappo command. It's used in the Fedora packaging script for ARM 64 DotNet. I tried to google it, yum search, pkgs.org, repology and ...
1 vote
0 answers
20 views

Installing different iconv in same RedHat box

I have new version of iconv installed in RedHat 8 (production). How can I downgrade without affecting existing iconv (as well as existing glibc) ? Currently I have this: iconv 2.28 RedHat 8.5 Need to ...
  • 111
0 votes
0 answers
130 views

Find the url of an rpm for specific stream

I can find the URL for a rpm using this: dnf download --urls nginx This finds the URL of the rpm for the enabled stream. I can enable that stream then find the URL as usual but i should not change ...
0 votes
1 answer
70 views

yum remove is hang + optional for time out

when I try to remove this rpm ( from my bash script ) yum remove graphite-web-0.9.15-1.el7.noarch >/dev/null 2>&1 we noticed from the logs that yum is hang for a long time as workaround ...
  • 11.4k
0 votes
0 answers
198 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 install StrongSwan and ...
0 votes
1 answer
1k views

Install rpm packages within a .tar.gz file from url in linux

I need to install few RPM files within a TeradataToolsAndUtilitiesBase__linux_x8664.17.00.31.00.tar.gz from URL below and the file name is "TTU 17.10.11.00 Linux - Base" https://downloads....
  • 1
2 votes
0 answers
177 views

build rpm for python2 if python3 is not installed

I want to package a python application which can run on both python2 and python3 for we have still old systems running python2. the default should be python3 but in case of python3 is not installed. I ...
  • 71
1 vote
3 answers
168 views

How to sort in dates in linux based on day, date, month, and year

I am trying to sort dates (like in the format below) and cannot get them in order based on the day, date, month, and year. I have tried a few different ways and have come up short. Any input would ...

1
2 3 4 5
21