Questions tagged [rpm]

RPM Package Manager (RPM) is a package management system for unix based operating systems.

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

How to package an RPM with an old autoconf/automake project

I'm trying to package an RPM of a systemd service written in C and managed by autoconf and autotools. When I attempt to package an RPM using the sudo make rpm command as instructed in the project's ...
wwillfred's user avatar
0 votes
1 answer
15 views

How add LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/my/path and my binary PATH to .bashrc whenver i install my rpm package(add) and remove my package(remove)

Name: my package Version: 1.0.0 Release: 1%{?dist} Summary: My first rpm package. License: Apache License, Version 2.0 Source0: %{name}-%{version}.tar.gz ...
Frozen_Blood's user avatar
1 vote
1 answer
29 views

How to set directory permission bits in an RPM file built by CMake?

I'm creating an RPM file using CMake's RPM support. I have found that the permissions of directories created on installation of the RPM depend on the umask of the user who created the RPM. I have ...
Greg Hewgill's user avatar
-1 votes
1 answer
16 views

Is there a convention to where manually downloaded RPMs are stored?

I need to manually download an RPM and I'm wondering if there is a convention to where this file should be stored on the system. I know I can download this to wherever, but I am curious if there is a ...
pupher's user avatar
  • 317
0 votes
2 answers
79 views

why installing docker on rhel 8 make conflicts with runc

we want to install docker packages on our RHEL 8.4 server (this is off line installation since machine not connected to network) so we download the following rpm's from the site - https://download....
Judy's user avatar
  • 1,589
0 votes
1 answer
48 views

download RPM files in windows

Is there a simple way to download rpm files and all its dependencies in a windows machine? later on I will be transferring all the rpm files to a offline rhel 8 machine and install them there. I've ...
Noob's user avatar
  • 3
0 votes
1 answer
11 views

Editing spec file for build to pick up online html doc package in new location

My team recently moved our in-product help drop locations to git, where we now also manage our source content files. Two text files are needed to get our packages into the product build: an empty &...
solarcodex's user avatar
0 votes
1 answer
13 views

%config(noreplace) errors out if there are no files in destination

I was compiling Fedora's kernel 6.4.9 and it errored out at this line: %config(noreplace) /etc/modprobe.d/*-blacklist.conf\ saying "File not found." When I remove this line the compilation ...
user145453's user avatar
-1 votes
2 answers
30 views

how to satisfy rpm user and group dependencies that already exist?

I was installing an rpm and satisfied the other needed rpm dependencies but still had a dependencie requiring a user and group entry (name=lp). I already have user and group named 'lp', so why doesn'...
Astara's user avatar
  • 229
0 votes
1 answer
25 views

How can I get python symlink files from an RPM package?

I have the following code which gets all RPM packages and then extracts all files within these RPM packages. However this does not list .py files which are symlinks, How can I include symlink files in ...
cs-dev's user avatar
  • 107
1 vote
2 answers
80 views

Perl Net Interface and Perl newt in openSUSE

We have some perl script which are working fine in centOS 7. Now I trying to run the same scripts in openSUSE.But I could not find perl Net Interface and perl Newt packages in openSUSE. can anyone ...
Sumukha G C's user avatar
0 votes
1 answer
39 views

why yum package isn't availble in python2 on RedHat 8

when I am using YUM package in python 2.7.5 on RHEL 7 the things are working fine, but now we are switching to new Redhat 8 which is having python 2.7.18 and we saw that yum and rpm packages are not ...
Judy's user avatar
  • 1,589
0 votes
1 answer
39 views

python + how to verify which python wheel or rpm installed that equivalent to import XXXX

in some python script we can see the import of some python modules as import yum import rpm . . . can we find exactly the rpm or wheel that actually installed the yum or the rpm ? for example by pip ...
Judy's user avatar
  • 1,589
1 vote
0 answers
106 views

curl error (60): Peer certificate cannot be authenticated

rabbitmq_rabbitmq-server 0.0 B/s | 0 B 00:02 Errors during downloading ...
Red Hat's user avatar
  • 11
0 votes
1 answer
96 views

How to install azure-cli on RHEL 7.9

I'm trying hard to install azure-cli 2.50 or at least version 2.49. On my RHEL 7 VM, however, it installs 2.38 version. Microsoft has said that they will not deliver further packages post 2.38 for ...
Mayur Saxena's user avatar
0 votes
1 answer
27 views

rpm2cpio doesn't show every file included in the RPM package

The "whois" package uses the Linux "alternatives" system (because maybe jwhois is an alternative?) It seems to package /usr/bin/whois as a symlink, but it's not clear how that is ...
Steven Schoch's user avatar
0 votes
1 answer
40 views

Installing DNF on RHEL8 minimal image fails due to libdw and other dependencies

I am building an Ansible Execution Environment using this image as a base: registry.redhat.io/ansible-automation-platform-22/ee-minimal-rhel8:1.0.0-373 It does not include either yum or dnf binaries ...
refriedjello's user avatar
0 votes
2 answers
45 views

Perl module's rpm doesn't provide all included files and tries to get missing ones as a dependancies

So, I've built an rpm for centos from tar.gz dist using cpanspec and rpmbuild tools. This module contains several embedded modules, the filesystem of dist looks like this: lib/Module.pm lib/Module/...
shootnix's user avatar
  • 315
0 votes
1 answer
29 views

RPMbuild force dependency to specific RPM in built RPM

I'm facing a problem, which requires a dependency to force the install of another RPM in a specific version, when installing My newly built RPM. Situation: My-Old-Foo.rpm has dependency to: 3rd-Party-...
Sil Foiera's user avatar
0 votes
1 answer
20 views

Folder is emptied after installation of an RPM package

I am reading RPM packages from a CSV file and want to install them one after the other. If there is a "yes" or "ja" at the end of the line, the package is to be installed. ...
Thomas Zauner's user avatar
0 votes
1 answer
91 views

Why does yum not read updates to RPM repository file?

On Amazon Linux, I was following the guide of installing Node.js v16 via NodeSource RPM: $ curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash The command above updates the repository file ...
Christian's user avatar
  • 626
0 votes
1 answer
39 views

Why rpm-Uvh command is removing the other version’s of my jdk package. I want to upgrade only jdk-11 with its latest release

When i am upgrading jdk-11.0_18 to jdk-11.0_19 using rpm -Uvh command in playbook. Then why it is deleting the other jdk version i.e jdk-17 and jdk-8. How can i upgrade jdk-11 using rpm command ...
RealWebstar's user avatar
-2 votes
1 answer
24 views

Handling single and multi node deployments on Linux

Requirement is to create a Linux based installer that can ssh into other systems, deploy and run rpms on them. what's the best way to accomplish this without using user visible scripts like shell or ...
Ras's user avatar
  • 543
0 votes
1 answer
50 views

Create a new systemd service via a rpm

I would like to install a new service on a RedHat8 machine via an RPM. I have a service file (e.g. toto.service) and I want to copy it on /etc/systemd/system and then enable it. But I have the ...
YoYo's user avatar
  • 3
0 votes
1 answer
28 views

Starting a java service packaged as rpm in Unix through systemctl

So, I have a java maven project which packages itself into a rpm which will run as a background service in Unix environment through systemctl and have my init file for it. My doubt is if I start new ...
Flanker's user avatar
  • 61
0 votes
0 answers
85 views

Kernel not updating from package dependencies in Yum, which lists kernel as a dependency

My OS is RHEL8. I have custom rpm files stored on a yum repo. I am trying to update a release rpm I create, using sudo yum update --installroot=/backup my_release (with and without installroot), but ...
p0ptartlov3r's user avatar
3 votes
1 answer
293 views

gitlab-ee-16.0.1-ee.0.el8 failed to update due to GPG check failed

I'm trying to update gitlab-ee from 15.11.2 to 16.0.1 under fedora 38 through dnf The update was failed due to the following error. I had tried many ways to solve this issue but failed. Can any one ...
Gavin's user avatar
  • 95
0 votes
1 answer
149 views

How to download rpm file from google artifact registry's yum repository using API call?

How to download rpm file from google artifact registry's yum repository using API call? I tried using the API request format https://-yum.pkg.dev/projects///Packages/ since a similar format is used by ...
user_101's user avatar
0 votes
1 answer
304 views

Ansible 'package_facts' fails because "rpm" module cannot be imported

I'm trying to run this Ansible task to gather package_facts, but the task is failing on SLES 15 machines, but is working fine on SLES 12 machines. - name: Gathering facts ansible.builtin....
Aswin K R's user avatar
0 votes
1 answer
57 views

Why is the Ansible task failing without giving any error?

I have an Ansible task running on RHEL and CentOS machines. - name: Git version (Fedora) command: rpm -qi git args: warn: no register: fedora_git tags: - git But this task is getting ...
Aswin K R's user avatar
0 votes
0 answers
14 views

How to set and test PWM "Duty Cycle" to a AC motor?

I'm new to PWM. But now we have a project needs to control a AC motor via PWM, but we found the duty cycle we set to run AC motor is so unstable. Sometimes I set "50% of duty cycle" and &...
TonyChou's user avatar
-1 votes
1 answer
89 views

How to install these specific packages to `amazonlinux2`

Well, basically I was using a ubuntu distribution of docker image and had to run the following command to install the exact packages as below into it: DEBIAN_FRONTEND=noninteractive ...
João Casarin's user avatar
2 votes
0 answers
101 views

Is there a DNF command that can list not-installed dependencies of a package?

Reading the documentation for DNF, it is unclear to me how one even lists the required dependencies of a package (NOTE: NOT my question, my question is the title). So what I'm wondering is, how would ...
Simon Farre's user avatar
0 votes
1 answer
131 views

RPM Signing verification fail in Ubuntu but works on CentOS

What could be causing the inconsistency in rpm -Kv hello.rpm recognizing the signature generated by my Python script that mimics the original singing process of the rpm tool? The signature is ...
MPSavaliya's user avatar
0 votes
1 answer
20 views

rpm %config not working as expected on package update

%files %config /etc/somedir/* %config /usr/bin/binary %Postun rm -rf %{_sysconfdir}/%{name} rm -rf %{_bindir}/%{name} I have the above lines in my spec files, and my expected result is when I update ...
Prab's user avatar
  • 454
0 votes
1 answer
48 views

Downgrading varnish service from 6.2.3 to 6.0.11 through RPM

while insatlling this package "MI-varnish6-modules.x86_64" in one of the varnish servers facing this error Processing Dependency: libvarnishapi.so.2(LIBVARNISHAPI_2.0)(64bit) for package: MI-...
Kodmur Ayesha's user avatar
0 votes
0 answers
27 views

cpackrpm and trigger scriplets

I'm building an rpm package with cmake. The package must contain a trigger that fires when a particular version of the kernel is installed. I found that there is a %triggerin scriptlet that could be ...
zenbooster's user avatar
1 vote
1 answer
58 views

Ansible install custom RPM's based on OS Version

I need a playbook that transfer and install the following custom RPM's base on a hosts file that includes Centos 6, 7, and 8: package.sl6.x86_64.rpm package.sl7.x86_64.rpm package.sl8.x86_64.rpm --...
Luke Black's user avatar
0 votes
0 answers
18 views

YumLocalPackage in python 3

On Python 2 I have a script that reads local RPM packages in a directory as in the code below. Now moving to RHEL8 and Python 3 the whole Yum python API has changed to DNF and Hawkey. How do get the ...
The Abraiker's user avatar
0 votes
1 answer
169 views

Install RPMs on the host from inside a kubernetes pod

Is there a way to run a privileged pod that I can use to install RPMs and packages on the host where the pod is running? Thanks! If I just run privileged pod, exec into it and would try to run the ...
Lorenzo Bassi's user avatar
0 votes
0 answers
90 views

how to invalidate obsoletes dependency during update

In my linux machine, I have release-1 installed which contains a rpm foo-1.0. foo-1.0 has obsoletes dependency with bar. # rpm -q --obsoletes base/foo-1.0-0.x86_64.rpm bar Now I'm trying to update ...
m.divya.mohan's user avatar
1 vote
0 answers
92 views

Is it ok to use yum priorities plugin or will it cause any issues?

I am currently working on upgrading PHP installation on Amazon Linux 2 instance. As all the PHP 8 modules are not available in the default EPEL repo I have planned to use the REMI repository. However ...
Rob Wilkinson's user avatar
0 votes
2 answers
87 views

After 2023-03-28 http://yum.oracle.com/repo/OracleLinux/ fails Artifactory testremote via API and Admin UI

Problem We seem to have a replication problem on a remote rpm/yum repo. We replicate http://yum.oracle.com/repo/OracleLinux/ as rpm-oraclelinux-remote and up until 28-03-23 15:29:41 +00:00 it worked ...
Peter Kahn's user avatar
  • 12.4k
2 votes
2 answers
1k views

Ln command error "target not a directory"

I have the following code inside a spec file: mkdir -p %{buildroot}%{_qt6_bindir} pushd %{buildroot}%{_qt6_bindir} for i in * ; do case "${i}" in qdbuscpp2xml|qdbusxml2cpp|qtpaths) ...
Ahmed Moselhi's user avatar
0 votes
1 answer
68 views

How to get PN_src rpm package for a recipe from a core image recipe?

I need to have the sources (from PN-src package) of several recipes combined in one archive for specific image. Packages/recipes to be included would be specified in an core image recipe. I was ...
ozimki's user avatar
  • 75
1 vote
1 answer
31 views

Dynamic Requires section in RPM based on installation environment

On my setup, where RPM will be installed, will have a file below: #cat /etc/setup-details environment=QA # Now, if environment is QA, i want below Requires: Requires: my-qa-rpm If environment is dev, ...
Niraj Nandane's user avatar
1 vote
1 answer
127 views

Build a RedHat RPM from a tar file

I have a tar file myapp.tar.gz, that contains binaries. When untared, the directory structure created is something like this: myapp/ -bin/myapp -lib/mylib <more directories and subdirectories and ...
Bruce Banner's user avatar
0 votes
0 answers
21 views

RPM Install Time Settings File

I have built an RPM that deploys a configuration file that contains numerous settings. Ideally I would like the RPM at install time to read a settings file that would be pre-populated by the user ...
Cotters07's user avatar
0 votes
0 answers
39 views

How do I specify openssl directory for RPMBUILD of apache for creation of mod_ssl

The server that I am attempting to do this on is running RHEL 8.7. I have configured and installed openssl 3.0.8. I would like to build a custom apache RPM that includes mod_ssl. My issue is that when ...
Hosting wiz's user avatar
0 votes
0 answers
153 views

A Question about Building / Installing Apache Impala 4.2.0 on a non Cloudera Cluster

I have been trying to package Apache Impala 4.2.0 for some time now, but i have been getting so much problems, here is what i did so far: 1- i downloaded apache impala 4.2.0 from the official website ...
Yassir Acharki's user avatar

1
2 3 4 5
48