Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rpm]

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

1
vote
0answers
19 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 After that suddenly I received /var/tmp/rpm-tmp.5WIuFR: line 9: /etc/init.d/xxx-driver: Permission denied What is this ...
0
votes
0answers
10 views

Failed building rpm package using mock

I have read this QA : rpm mock - complex rpm building I still do not understand why I failed to build rpm package. When building rpm using mock, I got this error. Failed to create directory /var/...
0
votes
0answers
12 views

How to create RPM for generic Perl module

I have a generic Perl module that will run on any release of Perl 5. I need to create an RPM for it that will install it into the vendor_perl subdirectory. I don't want to create different RPMs for ...
1
vote
2answers
39 views

Yum is not respecting `Requires` maximum version. How can I debug and check what yum thinks the dependency version is?

I manage an RPM package and there are versions numbered like: my-package-1.1.1-1, my-package-1.1.2-1, my-package-1.1.3-1, my-package-1.2.0-0.alpha01.1. I'm now trying to get another package to ...
0
votes
0answers
17 views

RPM making error from

When I am building drbd-utils-9.5.0 rpms from source offline and I am getting error "No such file or directory" as follows. So how can I build rpms offline resolving the issue ? [root@db1 drbd-...
1
vote
1answer
24 views

RPM creation solve depencies

I have created a rpm on Centos 7 it needs rh-python36 and centos-release-scl-rh is required to be installed in advance, so the current sequence is : sudo yum install -y centos-release-scl-rh sudo yum ...
0
votes
1answer
29 views

How can I run rpm and yum on RHEL?

I'm trying to do some debugging on my remote server via SSH. I need to install a few packages before I begin. The provider I'm using has Red Hat Linux on their servers. The problem I'm having is that ...
0
votes
1answer
37 views

`rpm -q` and `yum` break after `rpm --rebuild`

In order to repair the RPM database, I ran rpm --rebuild. Afterward, I cannot find any package using rpm -qa, and yum does not work,as the logs below show. [root@local03 ~]# yum Traceback (most ...
0
votes
1answer
13 views

How to remove an exact duplicate in an RPM db (same architecture)

On one system I have two exact same entries in the RPM DB: # rpm -qa | fgrep gvfs-fuse gvfs-fuse-1.40.0-1.1.x86_64 gvfs-fuse-1.40.0-1.1.x86_64 There is apparently nothing that will help: # rpm -e --...
1
vote
1answer
39 views

Unable to install any rpm package in AIX after removing some packages

We have an AIX 6.1 server which was working; it does not have most of the freeware packages: root@srv/ins:rpm -qa cdrecord-1.9-7 mkisofs-1.13-4 vnc-3.3.3r2-6 openssl-0.9.7l-2 unzip-5.51-1 bash-4.2-3 ...
0
votes
0answers
13 views

How to recusively download RPMs and dependencies as a user

I'm testing a process that will need to be run by different users on different Linux servers. The servers will have yum and yum-utils installed. There is no root access and faking it (chroot/container)...
-1
votes
0answers
28 views

yum + is it safe to delete the _db files before yum update on Linux machines?

Sometimes we get yum errors because the _db* under /var/lib/rpm ls -ltr /var/lib/rpm/__db* -rw-r--r-- 1 root root 1318912 Apr 29 07:56 /var/lib/rpm/__db.003 -rw-r--r-- 1 root root 106496 Apr 29 07:...
1
vote
0answers
18 views

Building custom RPM with boolean BuildsRequires and Requires

I'm trying to use boolean logic for my dependencies (https://rpm.org/user_doc/boolean_dependencies.html) in a custom spec file, but I'm running into trouble. .spec snippet BuildRequires: libxml2-...
1
vote
0answers
20 views

unexpected behavior of 'rpm --setperms sudo'

rpm --setperms sudo on a fedora 29 fresh installation sets /usr/bin/sudo's permissions to 0777; i confirmed it by reinstalling sudo using dnf, which will correctly set the permissions to 4111 and then ...
4
votes
2answers
340 views

porting install scripts : can rpm replace apt?

I have the following install script for ubuntu : #!/bin/bash sudo apt update sudo apt full-upgrade -y sudo apt install jq sudo apt autoclean -y sudo apt autoremove will the following work under ...
2
votes
1answer
106 views

How to depend on java 11 so it can be satisfied by openjdk or by Oracle java 11 packages?

I'm trying to create an rpm package with a dependency on java 11; however, it seems like the openjdk and Oracle java 11 packages don't provide any overlapping java virtual packages. OpenJDK Java 11 ...
1
vote
2answers
35 views

How to acquire SPEC files from SRPM?

is it possible to specifically download only SPEC files (which are used in srpm files for rpm building) ? Or more precisely, is there any server that would store only SRPM files available for ...
2
votes
1answer
28 views

What utility does rpm --import use to download keys?

I was trying to add brave key to fedora repository. I am behind a http-proxy, so I am unable to connect.I wonder what utility (like wget or curl) does rpm use to download the keys? so that I can add ...
1
vote
1answer
63 views

MySQL Java connector still using old java version?

Installing mysql-connector-java-8.0.15-1.el6.noarch.rpm (available here ) shows libgcj package as a dependency. Installing libgcj creates below file: /usr/bin/gij $/usr/bin/gij -version java version ...
2
votes
1answer
24 views

rpm -V verify purpose

I am told I should do rpm -Va because: operating system must be configured so that the cryptographic hash of system files and commands matches vendor values... Without cryptographic integrity ...
2
votes
1answer
69 views

RHEL/CentOS - How can I find all rpm packages which depends on a particular package?

Linux distribution: Red Hat Enterprise Linux Server release 6.10 (Santiago) Context: I need to uninstall all old versions of Java in my server. I have the list of java paths, example: /usr/lib/jvm/...
0
votes
1answer
59 views

Can one file be owned by two RPM packages?

Below commands show that one file is owned by two packages. Is there something wrong or is this an expected/acceptable behaviour with RPM packages? $rpm -qf /bin/ls coreutils-8.4-46.el6.x86_64 ...
9
votes
1answer
278 views

Equivalent of `rpm -K` using `apt`

What is the apt equivalent of rpm -K *.rpm, where -K is defined as verifying the signature of the repository in man rpm and in Maximum RPM? Example of a situation: sudo rpm --import https://mirrors....
0
votes
1answer
39 views

How RPM and dnf databases are maintained?

Does dnf and rpm uses the same database to store details about installed packages.? Can someone mention the path of database created by rpm and dnf?
0
votes
3answers
29 views

sed search and show matching pattern, removing the rest

I am trying to clean a list containing packages. I wish to remove the package revisions, leaving the package names only. I see every package has naming convention like this: package-name-majorver-...
-1
votes
1answer
50 views

Converting .rpm to .deb using alien

I am trying to convert .rpm to .deb using alien command: sudo alien <name of package>.rpm But it's just create a directory that has the same name but never get .deb to install it There is no ...
0
votes
0answers
39 views

“rpm -qa kernel” command lists only older version of the kernel on CentOS. why?

Typing rpm -qa kernel on CentOS terminal only shows kernel version - 3.10.0-957.5.1.el7.x86_64 but I do have 4.20.12-1.el7.elrepo.x86_64 also installed and currently running. $ rpm -qa kernel ...
0
votes
1answer
236 views

How do I set a RPM package to require Java 8 or higher, whose dependencies can be satisfied by Java 11

I'm trying to package an RPM that requires any Java version above Java 8. The RPM works fine if there's no Java installed, or if JRE/JDK for 8 is installed. HOWEVER if I install OpenJDK 11, when I ...
0
votes
0answers
26 views

How to install specific NetworkManager package in Linux

While installing the NetworkManager package to a specific version it's always recommending to install stable NetworkManager package. Example- If I am trying to install: # yum install NetworkManager-...
0
votes
2answers
49 views

Change and Remove several package by command

I want to remove several package by using rpm -qa --last to check, i afraid doing wrongly and crash the system. Question: I have installed pcsc tool for two installation in one system, how to set ...
0
votes
1answer
51 views

How to configure rpmbuild to forbid installing 32 bit package in 64 bit systems?

I'm packaging software in RPM and distributing it in different packages by architecture (32bit or 64bit). Some libraries of my 32bit package have binaries that cannot be executed in 64bit systems (...
1
vote
1answer
73 views

CentOS rpm package not available when using yum

I wanted to install Oracle 11.2 on my centOS7. I did all but one prerequisite steps. Oracle requires me to have a lot of rpm packages preinstalled. Do I need to find all of them and then download ...
0
votes
1answer
121 views

cannot offline install vnc server on CentOS 7

I am trying to install realvnc server on my CentOS 7 VM. I've downloaded the rpm package from the official website. I am using ESXI and nothing is or should be connected to the internet. When trying ...
0
votes
1answer
31 views

How to easily convert Debian script to RPM script? [closed]

I'm aiming to translate a Debian package to an RPM package to install it on a CentOS Linux 7 (Red Hat).I used alien to accomplish it: alien --to-rpm --scripts --keep-version debian_pkg.deb. However, ...
1
vote
1answer
398 views

No rpmlib(SetVersions) with the rpm-4.11.3-35.el7.x86_64.rpm?

How to resolve the following problem without the rpmlib(SetVersions): [root@cspt3db5 install]# [root@cspt3db5 install]# [root@cspt3db5 install]# rpm -ivh libgpm-1.20.1-alt18.1.x86_64.rpm ...
1
vote
1answer
44 views

Why does tab completion not work for all rpm command options?

When running the command rpm --query --all the options such as --query and -all are auto-completed when using the tab key. When running the command rpm --verify --all, the option --all does not auto-...
0
votes
1answer
92 views

Why package installation with yum show wrong source repository?

I have a brand new CentOS 7 VM. Right after a global yum -y update I'm trying to install additional packages, for instance net-snmp. Package net-snmp 1:5.7.2-33.el7_5.2 (...
0
votes
0answers
45 views

Centos: no such package(s) for specific nginx version

I tried to build a customized nginx with specific nginx version with module in https://github.com/anomalizer/ngx_aws_auth I setup the nginx repo # nginx.repo [nginx] name=nginx repo baseurl=http://...
2
votes
1answer
52 views

What are the relationships between package commands?

RPM based package managers support subcommands such as requires, recommends, conflicts, obsoletes, suggests and supplements. In reading the rpm man pages and dependencies documentation, it isn't ...
6
votes
1answer
335 views

Where I can find original CentOS RPM Spec files?

Recently CentOS upgraded from 7.5 to 7.6 and now one of the packages upgraded to a newer version I'm not ready to use yet. I'm planning instead to build and support an older version of this package. ...
-1
votes
2answers
35 views

rpm used before to install/upgrade packages - would now want to use yum instead

Someone was performing an upgrade of a software running on our RHEL Server with rpm -Uvh package_name.rpm I'd like to use yum -U package_name.rpm Can this cause any problem or inconsistency?
0
votes
2answers
60 views

rpm -e package does not remove entry from /etc/passwd

I've been playing around with Splunk and got some questions: I have installed it using rpm -iv splunk-7.2.3-06d57c595b80-linux-2.6-x86_64.rpm I removed it next using rpm -e splunk-7.2.3-...
0
votes
1answer
259 views

alien conversion from deb to rpm on fedora 27

I find myself unable to convert a .deb package to .rpm to install it on fedora. I am not able to download the equivalent rpm file, so conversion is my only way out. I get this error after using the ...
3
votes
1answer
314 views

How to set an environment variable during package installation

I am working on a legacy cross-platform project packaged to both DEB and RPM formats. Once the Linux package is installed, an environment variable holding the path to the installation folder is ...
-1
votes
2answers
42 views

How is RPM package installed?

This is like a 'chicken and egg' question. RPM package manager (similarly other package management programs) is packaged in an RPM package itself and installed. But then how is RPM initially installed?...
2
votes
0answers
135 views

How to build an RPM package for python app that works in Fedora 28 and 29, which have different default Python3 version?

What I Want To Do I'm trying to build an RPM package of my app that could be installed in different Fedora distros, which have different default Python 3 versions (i.e. Fedora 28 has python3.6, and ...
2
votes
1answer
145 views

Disable automatic package update in RPM package manager for single application in CentOS7

How can I disable automatic package update in RPM package manager for a single application in CentOS 7?
1
vote
1answer
337 views

Package libibumad is obsoleted by mlnx-ofa_kernel

I wanted to update a KVM virtualization suite (VMmanager KVM) running on CentOS 7. The error I am getting: Package libibumad-17.2-3.el7.x86_64 is obsoleted by mlnx-ofa_kernel-4.3-OFED.4.3.1.0.1.1....
0
votes
1answer
52 views

How to ingore rpmfusion source repos when downloading source package

I have few rpm repos in my Fedora installation and I've want to download source package and got error that synchronization of rpmfusion-free-updates-source and rpmfusion-nonfree-updates-source failed. ...
0
votes
0answers
20 views

Using RPM's '–prefix NEWPATH option' with alien

Alien can used to install an RPM to Ubuntu and it works great. However on CentOS I can do the following sudo rpm -i --prefix=/tmp/acme acme-1.1-1.el7.noarch.rpm i.e. the RPM can be installed to a ...