Questions tagged [rpm]
RPM Package Manager (RPM) is a package management system for unix based operating systems.
2,246
questions
0
votes
0
answers
15
views
systemctl command not recognized when building RPM package?
I have a very small pre install script for the RPM generation in VS consisting of:
<![CDATA[
#the bash preinst script
sudo systemctl stop serviceName
]]>...
0
votes
1
answer
14
views
Universal .deb or .rpm
I noticed that the download page for VSCode (https://code.visualstudio.com/download) has a single .deb for all versions of Ubuntu/Debian/etc. and a single .rpm for all versions of RE/Fedora/SUSE/etc.
...
0
votes
0
answers
21
views
RPM causes high CPU ussage on CentOS CWP
Today the server was under high load for couple of hours when complex PHP script was executed without supervision.
After that the CPU load was constantly at 100% with RPM processes taking up most of ...
0
votes
0
answers
11
views
How to convert RPM with dependencies to DEB package
I am trying to convert my RPM file to a DEB file.
RPM file has post and pre-run scripts and some dependencies.
I am using alien to convert the rpm file to deb:
sudo alien -c ./mypackage.rpm
I am able ...
0
votes
0
answers
18
views
SELinux permission denied error when installing a kernel module via an RPM package
I am trying to create an RPM installer that at loads a kernel module using an install script that calls insmod. The directory it's installing to is /opt/nfast and looking at /etc/selinux/targeted/...
0
votes
0
answers
31
views
rpm installation failing with aws user data?
With normal installation it is successful but with aws ec2 user data it is failing.
When I observed, the rpm, generated from fpm, is having a --before-script prelaunch script, which is not running ...
0
votes
1
answer
17
views
RPM: macros for /usr/local prefix
I have not found in https://docs.fedoraproject.org/en-US/packaging-guidelines/RPMMacros/ any details on macros that can operate with directory hieararchy under /usr/local.
Does this exist, or the best ...
0
votes
1
answer
8
views
list all downloaded packages - repotrack / rpm
I am downloading packages using repotrack, doing something like this -
repotrack -a x86_64 -p $PACKAGE_LOCATION/Packages $pckg
where it gets $pckg from a text file. Now I want to verify signatures of ...
1
vote
1
answer
50
views
collectd is reporting "Request is missing Authentication Token" when trying to post the metrics to AWS cloudwatch by custom collectd plugin
I am new to collectd and AWS cloud watching. Created custom plugin using C++ and installed rpms for collectd and collectd plugin.
customd plugin (.so) is located in /opt/collectd/plugin_libs after ...
0
votes
0
answers
17
views
How to create AlmaLinux ISO with rpm files included in the ISO, so that installer does not need internet connection to download the packages?
I am trying to create an ISO from AlmaLinux, which will have the gui installer and this ISO would have all the rpm files, packages and dependencies needed when I select a specific installation ...
-1
votes
1
answer
22
views
Lost dnf after migration from Centos7/8 to AlmaLinux
I migrated my CentOS 7 to 8 and then to AlmaLinux, but in the process i lost dnf and yum. Now i try to fix, but have a lot of problems with dependencies etc. Only rpm is working so i have to do all “...
0
votes
1
answer
19
views
RPM merging and upgrading
I have 2 rpms rpm-abc , rpm-xyz . rpm-xyz is dependent on rpm-abc and depdendency is rpm-xyz can't be installed if there is no rpm-abc.
rpm-abc creates a directory abc in my system and rpm-xyz creates ...
0
votes
0
answers
24
views
How to create an rpm for python application along with virtualenv?
We have an application created in python and with fpm, we are able to create rpm file for it.
For the sake of application, we are installing python3 as dependency and creating virtual environment for ...
-1
votes
1
answer
64
views
How can I fix "RPM Build Error: Bad exit status" [closed]
I'm trying to create and build a go rpm package in a CentOS8 container. Upon running the rpmbuild -ba onboarding.spec command, I'm getting this error:
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp....
0
votes
0
answers
21
views
Print a literal % in a RPM SPEC file?
How do you print a literal % symbol in a RPM SPEC file?
I am trying to do something like this in my %post section:
echo "%_pkgverify_level none" >/etc/rpm/macros.verify
In the /etc/rpm/...
1
vote
0
answers
20
views
rpmbuild/rpm not reading the rcfile
I am learning rpm/rpmbuild and I see strange behavior difference in RPM v4.4.2.3 and RPM v4.14.
I created an rpmrc file which has below content
macrofiles:/home/rmehta/rpmtest/rpmmacros
and ...
1
vote
0
answers
16
views
How to understand fedora rpm macro with parameter?
I find no example of things such as (n:) and -n in RPM syntax references? How can I understand this macro? Where can I find the syntax details manual of this macro?
%ldconfig_scriptlets(n:) %{?...
1
vote
1
answer
32
views
Yum Cannot See Ruby Installed
I'm trying to install a package from an RPM file on Centos 7, with a dependency for Ruby (>= 2.6).
We have Ruby installed (2.6.6) via RVM (The latest version we can get via YUM is 2.0).
It seems ...
1
vote
0
answers
54
views
rpmbuild is not reading macros from rpmrc file
I am trying to build a code on SLES-15 and in Makefile it executes rpmbuild command as below.
rpmbuild -ba --rcfile $(BUILDROOT)/scripts/rpmrc --rmsource --target $(RPM_TARGET_ARCH) $(DEBUG_OPTION) $(...
0
votes
1
answer
19
views
Use case design for collectors to fetch rpm, docker images, java packages
I have to create a design to create a set of collectors that will go out to the internet sites, sftp-servers, docker hubs and/or buckets from the vendor(s) and pull in the packages (preferably ...
0
votes
1
answer
15
views
How do set conditional "Provides" when RPM is installed
This may be impossible but I am asking anyway. I want to create an RPM that will change the Provides based on the hostname of the machine it is being installed on..
For example, in my spec file, I ...
0
votes
2
answers
20
views
RHEL 7.9 RPM Broken after FRESH install
I have installed RHEL 7.9 and I don't recall having this issue before but for some reason after installing the OS, and adding my account, and doing all the basisc such as enabling optional and epel ...
0
votes
1
answer
30
views
Make rpm package without any dependencies. However when the rpm package is installed in the environment, there is a problem of missing dependencies
Make rpm package without any dependencies. However when the rpm package is installed in the environment, there is a problem of missing dependencies
I use “ --nodeps --force” to ignore rpm install ...
0
votes
0
answers
29
views
Changing revision for patched in-tree kernel module in Yocto
I've set successfully my Yocto build to patch one of the standard kernel modules, and I'd like to make it possible to update that (and possibly some others in the future) module only on the target ...
0
votes
1
answer
25
views
Install other dependency rpm during the rpm installation
i need to install openjdk 11 along with my rpm. my software runs on java 11 but our pc have different version of java already installed.
please help me to install openjdk11 along with my rpm ...
0
votes
0
answers
11
views
Missing PERLCC on RedHat 7
Where can i download PerlCC for RedHat 7 ?
I have some difficults to find on the web,
Seems last version is for redhat 6.
Thanks to everyone right away.
Alex
0
votes
0
answers
30
views
is there an option for rpm to recursively verify that all required dependencies are installed and not corrupted
I had to debug a computer where I finally discovered by debugging that some files were missing although I had hoped rpm would have told me.
When I ran
rpm -V mypackage
I got an empty answer, meaning ...
1
vote
1
answer
141
views
how to get the source code of a RPM package
I want to get the source code of an RPM package, with all patches applied. (what the apt source do)
For example, bash. Here is something I've tried.
Firstly, I download the src RPM package via ...
1
vote
0
answers
39
views
Which tool to build an RPM inside a chroot? [closed]
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 ...
0
votes
1
answer
14
views
Why is RPM config in /usr/lib/rpm/rpmc and not under /etc/ like other package managers
Can anyone please explain to me why the RPM config is under /usr/lib/rpm/rpmc and not located under /etc/ like other package managers, or am I misunderstanding something?
0
votes
0
answers
23
views
How to use rpm generate_buildrequires when a module name doesn't match its package name?
I am trying to package a Python application with RPM and I'm following fedora guidelines.
The section in my spec
%generate_buildrequires
%pyproject_buildrequires
detects the dependency opencv-python ...
0
votes
0
answers
29
views
rpmbuild failing in repo with 'error=13, permission denied' in maven build
little issue here..
in ~/user/work_dir/config-service (<-bitbucket repo clone) & run sudo mvn clean install
error;
[ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.5:...
0
votes
0
answers
24
views
How to open up a Fedora package to work on it
I asked a question and got a sketch of how to open and patch a Fedora package. See How to modify a Fedora package and fix bugs
What was missing was how to work on the package. I cannot build it ...
0
votes
0
answers
18
views
Command not found on a funciton calling from another [duplicate]
i've tried to figure our , what wrong with my script , i tried using the below syntax for function
fucntion name{ } , and also example(){} , both results creates errors , please advise what's wrong ...
0
votes
1
answer
705
views
Getting error "not an rpm package (or package manifest)" in CentOS8
Recently our AWS pipeline started failing with this error:
error: xdg-utils.rpm: not an rpm package (or package manifest):
This is where it fails in our script:
wget -q http://mirror.centos.org/...
1
vote
1
answer
38
views
rpmbuild -rp option is not supported?
I've got a shell script with some rpmbuild workflow from a previous project and there is one command which is failing with an error unsupported option.
The command is this:
rpmbuild --nodeps --define '...
0
votes
0
answers
42
views
Grafana Version Upgrade
I installed grafana 8.3.4 enterprise version by mistake, while I wanted to install the OSS version 8.3.4. I tried installing and oss rpm package but it shows the following error :
Cannot install ...
1
vote
2
answers
65
views
How to modify a Fedora package and fix bugs
I have an old old game from Fedora, in a package named six. It has a bug and I want to add a couple of simple features. I asked here about one part of the process, (see How to deal with build ...
1
vote
3
answers
94
views
How to deal with build dependencies in source RPM?
I don't usually use Fedora or RPMs, so I'm flying blind here. There are lots of similar questions around here, but none that I found are to the exact point where I'm stuck.
I have the source RPM for ...
0
votes
1
answer
28
views
RPM installation Trino throws python dependency
I'm trying to install Trino using RPM on Red Hat Enterprise Linux distribution. I install the Trino dependencies using the following commands:
$ sudo yum update -y
$ sudo yum install -y java-11-...
1
vote
0
answers
135
views
Python Pillow CentOS 7 install errors
I have a python project that installs Pillow==8.4.0. In local testing when building with Docker, it works fine
# Dockerfile
ARG PIP_CMD='pip install --no-cache-dir'
ARG APK_ADD='apk add --no-cache'
#...
-1
votes
1
answer
37
views
How does rpmbuild move the results to the target
When I do
rpmbuild -bi ~/rpmbuild/SPECS/microemacs.spec
The result is
>g++ -g -I. -I../src basic.o bind.o buffer.o char.o crypt.o display.o eval.o exec.o file.o
> fileio.o input.o isearch.o ...
0
votes
1
answer
50
views
Installing a RPM package without deinstalling the old one
Does anybody know what would happen if a package gets installed, while the old package remains installed? The thing is that the command rpm -e <rpm_package> will uninstall and delete the old ...
0
votes
0
answers
10
views
How to catch php version in spec file and with this php version, do something
I'm trying to build a RPM file and in the spec file I'd like to get what's the php version is installed and so something if it's php 5 and do something else if it's php 7.
I tried to define a variable ...
0
votes
1
answer
75
views
How to get an RPM's header size and other RPM metadata in linux
Is there a linux command to get the size of header of an RPM? I came across this article that describes the structure of an RPM https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/...
0
votes
0
answers
64
views
error: Curl error (7): Couldn't connect to server for http://my.server/rpm/repodata/repodata.xml
I am running #dnf command in my target(yocto image) via ssh. In the local.conf the PACKAGE_FEED_ARCHS, PACKAGE_FEED_BASE_PATHS, and PACKAGE_FEED_URIS are well set and I tested some of #dnf commands in ...
1
vote
2
answers
65
views
How to create rpm A which support overlapping of installed rpm B files?
I want to create rpm A, my requirement here is that whenever I install rpm A, It will replace some files which are part of installed rpm B.
for this in debian we used
Provides: pkg C
Conflicts: pkg C
...
0
votes
0
answers
26
views
Is there any install bundle creator for linux?
I was trying to create an offline installer for an application[not like deb and rpm]. After some of research I found out that there is an application mentioned in below post:
http://askubuntu.com/...
0
votes
1
answer
34
views
Docker JBoss SVN automation script? RPM v. YUM?
As it stands, my Dockerfile works as written below, but currently I have to run the two commented lines in order to pull, compile, and deploy my application to the server. I tried creating a shell ...
0
votes
1
answer
76
views
Using helm commands inside the rpmspec file
I'm trying to run helm scripts inside while installing the rpm file. The helm is installed in that machine. And the same commands works fine while running in the shell. But during rpm installation
I'm ...