Questions tagged [rpm]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

What is the mock template for centos-7?

I see on some sites they mention a centos-7 template that ships with mock, /etc/mock/centos-7-aarch64.cfg /etc/mock/centos-7-armhfp.cfg /etc/mock/centos-7-i386.cfg /etc/mock/centos-7-ppc64.cfg /etc/...
-1
votes
1answer
19 views

How can I find where an RPM macro is defined or what it expands to?

Inside of an RPM I have %{__install} %{SOURCE2} %{buildroot} I believe that %{__install} is a macro. Where do I find where it is defined? What is the definition? Was it provided by the system or ...
1
vote
1answer
21 views

Centos/RHEL: Determine minimal set of packages to install given dependencies?

Suppose I have a list of packages I want to install: # yum install foo bar baz quux but suppose that baz is a dependency of foo, and quux is a dependency of baz. So, really, all I actually needed ...
0
votes
1answer
47 views

Where can I find the Copyright information of .rpm file?

I can see the licence information about rpm file by executing below: rpm -qip {rpmfilename}.rpm but there is no information about copyright holder. Is there any easy way to know who has the ...
-2
votes
0answers
25 views

Centos 7 cannot upgrade my Kernel

I follow the hint https://linuxhint.com/upgrade-kernel-centos-7/ and type this command at the kernel : rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org It gives the following error :...
0
votes
0answers
6 views

redefine optflags or pcre-config

I have a script that creates a spec file with the line: %define WITH_CC_OPT $(echo %{optflags} $(pcre-config --cflags)) I want to change the definition of the WITH_CC_OPT by changing %{optflags} ...
0
votes
0answers
7 views

Tranaction Check Error while runnig mock

I'm getting the following error while try to run mock -r name --rebuild name.src.rpm Transaction Check Error: file /etc/rpm/macros.ghc-srpm conflicts between attempted installs of redhat-...
0
votes
1answer
17 views

Installing competing library versions

On a CentOS 7 system, I have software installed that links to the libpqxx package from EPEL, which is version 4. I am trying to install software which links to the libpqxx package from the PostgreSQL ...
0
votes
1answer
13 views

Yum dependency being provided by incorrect version

Can someone explain what's going on here? $ yum deplist institutional_sync-11.3.0-snap20191023.1247.202a207 Loaded plugins: auto-update-debuginfo, changelog, security Finding dependencies: package: ...
1
vote
1answer
31 views

debconf-get-selections equivalent on CentOS

I work at a place where all of our servers are Debian. Now, one of our customers have their own external server running CentOS 7. I've gotten the task to put all of our maintenance, update, ...
1
vote
1answer
42 views

How can you specify ./configure args with rpmbuild?

I'm trying to build an rpm with nginx, and the nginx rtmp module. I got my nginx source tar.gz, and my rtmp tar.gz, and placed them in the SOURCES dir. I then made this spec file: Name: nginx ...
0
votes
1answer
13 views

tuxad-php repo problem

I try to update PHP with the tuxad-php repo as I need TLS 1.2 support which centos 5 doesn't offer. Upgrading the linux version is not currently feasible. I run into a dependency problem with php-api,...
1
vote
0answers
36 views

How does YUM decide which package is the best install candidate for a dependency when there are several options?

I have a package that I need to be compatible with openjdk 11 and oracle java 11. I'm trying to create a metapackage that can depend on openjdk java 11 or oracle java 11: My openjdk metapackage spec ...
3
votes
1answer
73 views

Install specific version and arch, without specifying the release

Assume I want to install the glibc-devel package with version 2.17 and i686 arch. Assume I don't care about the specific release. Assume as well that this is being run from a script, such that yum --...
2
votes
0answers
18 views

How to automate recompiling with custom patches for repository sources when updates are available?

I have some patches that I want to apply to various software that I run which add customization that is unlikely to be accepted or has been rejected upstream. I can already download the source for ...
1
vote
0answers
33 views

Problems with installing packages using rpm package manager

I am currently trying to install packages on CentOS based machine which doesnot have yum, so I need to use rpm for installation. I grabbed the required rpm pacckages and try to install it like this $ ...
0
votes
0answers
15 views

Repackage RPM (Inverse of rpm2cpio)

How can I modify a couple of files inside a binary .rpm archive without changing anything else? The rpm I want to modify contains some code for a kernel module that fails to build due to a change in ...
3
votes
0answers
42 views

Is it possible to create an RPM package from an install script?

I'd like to easily create RPM packages for some random projects that do not come bundled as RPM (or whose RPMs are severely outdated). Take the Pop OS GTK theme as an example. Installing the theme ...
1
vote
0answers
26 views

Why is my rpmbuild %{dist} .fc30.fc30 instead of just .fc30?

I have a .spec file: Name: somefile Version: 1.0.0 Release: 1%{?dist} ... Which produces an RPM: somefile-1.0.0-1.fc30.fc30.noarch.rpm Why is %{dist} applying .fc30 twice? ...
0
votes
0answers
17 views

How to set time scheduler for keeping cache in yum config?

I'm using centos 7 and I change the value of the keep cache in /etc/yum.conf to 1 for keeping the rpm file. but now I want to set time scheduler for keeping this rpm file. for example, I want to keep ...
0
votes
2answers
42 views

Compare Key ID of RPM package with Key Fingerprint of RPM-GPG-KEY

During work with RPM packages I frequently need to validate signatures against available GPG keys. Using rpm -qip --nosignature <package.rpm> | grep Signature gives me an Key ID, i.e.: ...
1
vote
3answers
54 views

Why is the procedure for building RPMs so isolated?

I'm learning how to create RPMs for my own packages. Normally I can do everything while logged into my own account but instructions on making RPMs always seem to want you to use some other account. ...
-1
votes
1answer
80 views

yum + dependencies not logical when installing openjdk

we are tryng to install the java-1.8.0-openjdk-devel-1.8.0.161-2.b14.el7.x86_64.rpm yum localinstall java-1.8.0-openjdk-devel-1.8.0.161-2.b14.el7.x86_64.rpm Loaded plugins: langpacks, product-id, ...
-1
votes
1answer
43 views

rpm fault following db package upgrade

I'm in the process of upgrading the internal packages in AIX 7.1. After upgrading the db package with db-6.2.32-1.aix6.1.ppc.rpm from the AIX toolbox page rpm commands no longer works. I've check the ...
0
votes
0answers
16 views

Yum doesn't update package dependency

I have a package, for just simplicity, named as 'main1', which depends on 'dependant-package' - in the rpm, there is no version number requirement specified, so in my system, yum installed 'dependant-...
1
vote
1answer
344 views

Cannot boot to fedora 29 - Bad RIP Value

I tried to install GFORTRAN_7 on f29 since I needed libfortran.so.4 for a program. What I did I've found the rmp file (libgfortran4-7.3.1-alt9.x86_64.rpm), downloaded it and tried to install it. I ...
2
votes
1answer
28 views

Is it possible to for an RPM to run a script if a dependency is updated?

I'm thinking of writing an RPM that contains a Python virtual environment. A Python virtual environment contains a copy of the Python executable (which is a thin shell around the Python shared library)...
0
votes
0answers
60 views

Update specific file in RPM, how does --change-files option work?

I'm trying to repack a RPM package with rpmrebuild command, according to the manual I can update files with --change-files option. --change-files="pgm1 a b c" But the manual didn't say much about ...
1
vote
0answers
33 views

Install packages in CentOS without root from non enabled repository

I need to install a high number of packages in a computer running Scientific Linux 6 (based on RHEL 6) for which I don't have root access. After much tinkering and internet searching I found this ...
0
votes
1answer
104 views

How are rpm transactions used in `yum update`?

Is the whole yum update transactional or is every resolved update individually? If the yum update detects Foo and Bar need to be updated, and Bar fails because it now collides with installed package ...
5
votes
1answer
289 views

Yum in Amazon Linux 2 still asks for GPG key even after “rpm --import” when adding Kubernetes repo

I'm trying to add a kubernetes repo to my Amazon Linux 2 instance and struggle with automatically adding GPG keys. This is my /etc/yum.repos.d/kubernetes.repo... [kubernetes] name=Kubernetes baseurl=...
0
votes
1answer
59 views

rpm doesn't work and gets an error

I typed sudo rpm install into my terminal and then I got following error : error: missing ':' (found 0x00) at /usr/lib/rpm/redhat/rpmrc:1 how can I solve that?
2
votes
1answer
436 views

Transfer RPMs file with Ansible and localinstall them

I am having the following yaml ansible-playbook and want to transfer the rpms and then localinstall them on the remote machine. Until the transfer file step its working fine however on the ...
1
vote
1answer
40 views

Does librpm provide for querying the RPM database with the syntax found in the SPEC file?

Let's say the SPEC file contains, Requires: python >= 1.3, perl Without forging a whole RPM, is there anyway to query the database for whether or not a a query like the following is satisfied by ...
1
vote
1answer
28 views

What are the contents of /var/lib/rpm; where are they documented?

In my /var/lib/rpm, I have the following files, $ file * Basenames: Berkeley DB (Btree, version 9, native byte-order) Conflictname: Berkeley DB (Btree, version 9, native byte-order) __db.001: ...
0
votes
1answer
57 views

yum + dependencies errors

during yum installation , we get the following dependencies errors Error: Package: openldap-2.4.40-8.el7.i686 (@local) Requires: libplds4.so Removing: nspr-4.10.8-2.el7_1.i686 (@...
1
vote
2answers
83 views

yumdownloader the rpm for redhat 7.3

we have redhat machines version 7.2 we want to upgrade to version - 7.3 we can do it as # subscription-manager register --auto-attach # yum --releasever=7.3 update this will upgrade online the OS ...
0
votes
1answer
143 views

Centos 7 python update package python-2.7.5-80 rpm

I am looking for this RPM python-2.7.5-80.el7_6.x86_64.rpm to address the security issue. yum update not getting this package? Any idea how to get this version of rpm for centos 7? Thanks Update ...
0
votes
1answer
49 views

How to redirect a command with parameters in bash?

I want to output "hello" when rpm -qf /etc/redhat-release is typed. Otherwise rpm should work as it would normally.
0
votes
1answer
41 views

Why do I have a `/root/.rpmdb` folder on a Debian-based distro?

I just noticed my Devuan ASCII machine has a /root/.rpmdb folder. Why would it have been created, seeing how I use apt DEB files, not RPMs? And - how safe is it to delete it?
0
votes
1answer
53 views

rpmgraph: https://linux.die.net/man/8/rpmgraph USAGE and capabilities, Fedora, CentOs, RedHat

PROBLEM: I'm trying to get this program running, I want to make a topological map/graph of the dependencies and packages on a rpm system: rpm-devel-4.14.2-1.fc29.x86_64.rpm Fedora 29 Download gives ...
0
votes
0answers
51 views

What are possible reasons why root user receives “Permission denied” when trying to read or write files?

I am trying to upgrade an application using an RPM package, but I receive the error: cpio: failure to open file, Permission denied The file it tries to open is located at /etc/rc.d/init.d where ...
0
votes
2answers
53 views

How to list all installed packages with the .rpm extension. Fedora, Centos, RedHat

How do I get a list of all installed packages with the .rpm extension? I am testing this on a Fedora 28.
2
votes
3answers
130 views

How to topologically sort installed rpm packages?

I want to sort topologically, according to dependencies, all installed rpm packages on my Fedora with most required packages to be on top (for example glibc) and least required packages to be on ...
0
votes
1answer
150 views

When I use `rpm -import`, there get `curl: (35) Cannot communicate securely with peer: no common encryption algorithm(s).` error

When I use rpm -import, there get curl: (35) Cannot communicate securely with peer: no common encryption algorithm(s). error: [root@localhost ~]# rpm -import https://www.elrepo.org/RPM-GPG-KEY-elrepo....
0
votes
0answers
143 views

upgrade openssh rpm error: unpacking of archive failed on file /usr/bin/ssh-keygen: cpio: rename failed - Permission denied

rpm -Uvh openssh-5.3p1-124.el6_10.x86_64.rpm openssh-server-5.3p1-124.el6_10.x86_64.rpm openssh-clients-5.3p1-124.el6_10.x86_64.rpm openssh-askpass-5.3p1-124.el6_10.x86_64.rpm warning: openssh-5.3p1-...
0
votes
3answers
51 views

How to completely uninstall java from RHEL?

When I do which java I get the following output: which java /dir/java/bin/java I have already uninstalled java rpm using the following `rpm -qa | grep -i java` rpm -e rpm-name Still java is not ...
0
votes
0answers
9 views

How to Install a local .rpm file by automatically downloading/installing other dependencies

I want to install a locally downloaded .rpm file and any other dependencies that would be required while running this install, automatically. The question is very specific to locally downloaded, so ...
1
vote
1answer
129 views

Can we use both dnf and Microdnf simultaneously?

I am getting below error message when I use dnf and microdnf simultaneously to install/remove packages. error: failed loading RPMDB
1
vote
1answer
53 views

RHEL-7.4 Linux rpm file Installation error

I tried to install rpm file in RHEL-7.4 Linux using: # rpm -i xxx.rpm /var/tmp/rpm-tmp.5WIuFR: line 9: /etc/init.d/xxx-driver: Permission denied What is this error and how to resolve it?