Questions tagged [rpm]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
35 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-...
user avatar
0 votes
1 answer
60 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 ...
user avatar
  • 1,409
1 vote
1 answer
19 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; ...
user avatar
0 votes
1 answer
20 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 ...
user avatar
  • 7,249
1 vote
1 answer
61 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 ...
user avatar
  • 123
0 votes
0 answers
19 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 ...
user avatar
0 votes
1 answer
38 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 ....
user avatar
1 vote
1 answer
39 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 ...
user avatar
1 vote
0 answers
86 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....
user avatar
1 vote
1 answer
71 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 ...
user avatar
0 votes
2 answers
105 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 ...
user avatar
  • 4,407
1 vote
2 answers
28 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-...
user avatar
  • 9,316
1 vote
1 answer
64 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 ...
user avatar
  • 298
2 votes
1 answer
73 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 ...
user avatar
  • 10.9k
2 votes
2 answers
127 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, ...
user avatar
  • 2,056
2 votes
0 answers
60 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 ...
user avatar
  • 797
1 vote
1 answer
21 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 ...
user avatar
1 vote
0 answers
15 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 ...
user avatar
  • 111
0 votes
0 answers
50 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 ...
user avatar
0 votes
1 answer
29 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 ...
user avatar
  • 10.9k
0 votes
0 answers
70 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 ...
user avatar
0 votes
1 answer
271 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....
user avatar
  • 1
2 votes
0 answers
63 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 ...
user avatar
  • 61
1 vote
3 answers
101 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 ...
user avatar
0 votes
1 answer
57 views

How to install rpm command in offline way

Instead of installing the rpm package, install the rpm binary file. So that make the system that missing rpm command can install the rpm package. But the network not connect to internet, so please do ...
user avatar
0 votes
1 answer
63 views

Yum gets broken in Centos 7 while being updated

I recently tried to update my Centos7. While being updated, I lost power and later on yum does not work. It looks like the script for yum and dependencies gets broken. I have tried couple of options ...
user avatar
0 votes
1 answer
136 views

Detect all the OS packages that are needed to be installed in order to use the path

Given a path, I want to detect all the OS packages that needed to be installed, in order to use it. For example: > /bin/rpm -qf --queryformat "[%{NAME}]\n" /usr/bin/tcsh tcsh Sometimes ...
user avatar
  • 63
1 vote
1 answer
102 views

RPM returns badly printed OS package of a path

I'm trying to find a related OS package of a path. I use rpm for that. For example: > /bin/rpm -qf --queryformat '[%{NAME}]' /usr/bin/tcsh tcsh But I noticed that there are packages that are ...
user avatar
  • 63
1 vote
1 answer
80 views

Any reason for not getting rid of bash dependency in rpm?

I don't want bash in my yocto image, but it got included over a couple of dependencies. I was able to get rid of most of them, now only the rpm is left (which I need). Tracking it down I found only ...
user avatar
  • 11.1k
1 vote
0 answers
61 views

dnf-automatic hangs on an irrelevant RPM post-install script - can I set a timeout or kill it automatically?

I have noticed that on a server a nightly dnf-automatic script for automatic system updates has been running for a few weeks instead of exiting after a few minutes. It hangs on these commands: # ps ...
user avatar
  • 7,487
0 votes
0 answers
29 views

rpm package - Converting from .deb package or build new rpm

I have a software that I need to ship. Right now I ship it through a .deb and a .run file but I want to drop the .run file replacing with a .rpm file. The way I want to to create the rpm package is ...
user avatar
1 vote
3 answers
92 views

How to add fsck at boot like a regular service?

I remember that certain distros, used to run fsck at boot after x boots, in a regular way. How can be added to the boot process the fsck service to be deployed in rpm distro/Fedora,RHEL,Oracle,Suse? ...
user avatar
  • 119
0 votes
0 answers
26 views

--excludepath/--relocate certain paths by default when installing with rpm/yum/dnf

I want to free-up space occupied by .mo files in /usr/share/locale and for that reason I replaced that directory with a symlink to /tmp/.locale-blackhole and configured auto-creation of this dir with /...
user avatar
  • 1,781
-1 votes
1 answer
52 views

I can't recompile im-chooser in Fedora 34

I have a problem in my Fedora 34 with one package which i can't recompile using rpmbuild --rebuild from Fedora 22 to 34, cause it gave me an error which I can't repair. eggsmclient-dbus-gnome.c: In ...
user avatar
  • 9
0 votes
1 answer
50 views

I can’t recompile exo in Fedora 34

I have a problem with my Fedora 34. I was trying to recompile xfce 4.12 on Fedora 34 using rpmbuild —rebuild from version 22 to 34, I recompiled some packages but one gave me an error which I can't ...
user avatar
  • 9
-1 votes
1 answer
70 views

quota is needed by nfs-utils [duplicate]

[root@cimnfsclient rajan]# rpm -i nfs-utils-1.3.0-0.68.el7.1.x86_64.rpm error: Failed dependencies: quota is needed by nfs-utils-1:1.3.0-0.68.el7.1.x86_64 I am not sure why i am getting this ...
user avatar
0 votes
1 answer
105 views

Which RPM Spec Macro provides OS Minor in Release, eg el8_4?

How do I get the OS Minor in the Release field of the RPMs? I understand that the spec file entry %{?dist} expands to the OS Major Name: mypkg Version: 2.3 Release: 1.2%{?dist} ...
user avatar
-1 votes
1 answer
210 views

Can't Install Visual Studio Code with rpm

I am using Fedora 33 with XCFE Desktop. I can't use this command: rpm -i https://update.code.visualstudio.com/latest/linux-rpm-arm64/stable It only makes a new blank that does nothing and I exited ...
user avatar
0 votes
1 answer
53 views

rpmbuild spec enable configure build file

I am using rpmbuild for util-linux. This command works for me: rpmbuild -ba ~/rpmbuild/SOURCES/util-linux.spec In the file util-linux-2.23.2.tar.xz there is a file with the name configure and this ...
user avatar
0 votes
2 answers
41 views

Problem installing a modified rpm

I modified the rpm package and it worked but when I tried to install it via rpm I encountered this problem [root@vps8865 ~]# cd rpmbuild/ [root@vps8865 rpmbuild]# cd RPMS/ [root@vps8865 RPMS]# ls ...
user avatar
0 votes
0 answers
24 views

2 hunks FAILED -- saving rejects to file [duplicate]

i edit some file from src.rpm file but on start compress it to rpm using rpmbuild i edit file login.c i try to use diff but it is not work with me Now when I try to compress files to rpm file I have ...
user avatar
0 votes
1 answer
84 views

compress files to rpm using rpmbuild has error

I download this Package util-linux-2.23.2-65.el7_9.1.src.rpm and extract it rpm2cpio ./util-linux-2.23.2-65.el7_9.1.src.rpm | cpio -idmv Among the files used there is a file named util-linux-2.23.2....
user avatar
0 votes
1 answer
86 views

src.rpm and rpm files extract and compress

i download this file util-linux-2.23.2-65.el7_9.1.src.rpm and i extract all files on it using this command rpm2cpio ./util-linux-2.23.2-65.el7_9.1.src.rpm | cpio -idmv this is all files extracted ...
user avatar
1 vote
2 answers
165 views

How close are Leap 15.3 and SLE 15 SP3? Can I use one's rpms with the other?

Apologies if this is a stoopid question. With some effort I have managed to install openSUSE Leap 15.3 on my laptop. As you may know 15.3 is rather different to earlier releases in that it apparently &...
user avatar
0 votes
0 answers
45 views

SPEC File How to Remove All Dependencies postun

I'm using the maven rpm plugin to build a WinCC OA application. The following are my require statements: <requires> <requiresPre>minizip</requiresPre> <require>WkRt-Lin&...
user avatar
0 votes
0 answers
89 views

PHP 7.3 SCL with ZTS enabled for EasyApache4- Cloudlinux

My server currently has PHP7.3, 7.4 and 8 installed via easyapache4 in cpanel. Different accounts on the server use different versions of php. The server is running scientific linux 7.9 Unfortunately, ...
user avatar
  • 1
0 votes
1 answer
134 views

Many package managers - .deb on RedHat/CentOs

(relatively new to Linux distros) What forbids me from installing a .deb package (using apt or dpkg) on Redhat/CentOS? Or a .rpm package in Debian/Ubuntu? I understand Debian/Ubuntu based systems use ...
user avatar
0 votes
0 answers
58 views

Can you extract a pypy3 rpm from snap?

I have centos 7.6 at work and would like to install pypy3. For policy reasons outside my control they won't do this unless they can find an rpm to install. https://snapcraft.io/install/pypy3/centos ...
user avatar
  • 323
1 vote
1 answer
206 views

Custom kernel build very big

I want to build myself a custom kernel as a RPM. I use the .config from the distribution I'm using, in this case, Centos, and end up with a kernel install size of 2.2Gb. I have deselected all the ...
user avatar
2 votes
1 answer
625 views

Remove old kernels on CentOS 8

On CentOS 7.X I use the following command to clean up unused old kernel: package-cleanup --oldkernels --count=1 But it no longer works on CentOS 8.X, does anyone know the correct command?
user avatar
  • 50.7k

1
2 3 4 5
20