Questions tagged [rpm]

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

1
vote
2answers
129 views

Install custom perl modules

I have build an RPM from a proprietary software collection in a CentOS 7 environment but the build process required executing some Perl modules (.pm files) found within the source itself. When I ...
1
vote
1answer
875 views

how do I manage dependencies for this manually installed rpm file?

How do I manage the dependencies while manually downloading and installing these rpm files? Googling the names of the rpm files results in differently-named rpm files. I cannot use yum install ...
0
votes
2answers
1k views

Cannot install libstdc++-4.4.4-13.el6.i686.rpm on OEL 6.8

I'm trying to install libstdc++-4.4.4-13.el6.i686.rpm but it says newer version of this package is already installed. [root@isoft Downloads]# rpm -ivh libstdc++-4.4.4-13.el6.i686.rpm warning: libstdc+...
0
votes
1answer
35 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
31 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?
1
vote
1answer
83 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
1answer
43 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
2answers
26 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.
0
votes
0answers
25 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 ...
2
votes
3answers
73 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
26 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
1answer
1k views

Getting Error in Dependency Resolution during installing vlc media player on centos7?

I was trying to install vlc on centos7 using yum install vlc as root user, But didn't succeed. I think previously I install wrong repository. I am getting following error. Following is only part ...
0
votes
3answers
28 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
41 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
0answers
7 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
25 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
0
votes
0answers
2k views

bash script to verify rhel patching

we have several redhat servers which we patch from redhat satellite. To avoid confusion, I'll use the term "host" to denote the server which is being patched. We have a script, say, patch.sh, which ...
1
vote
0answers
27 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?
10
votes
3answers
2k views

How to create a list of all applications which were manually installed?

I use Fedora and I'd like to have all the package names in a list, but only the ones I installed myself, not the default ones.
0
votes
2answers
2k views

Yum repository throwing - [Errno -1] Package does not match intended download

I am building a Yum repository to install RPM packages. I am creating a folder mkdir -p ~/yum/el7/x86_64 and moving rpm file to it under same path given above. Here is my my-app.repo file info. [my-...
4
votes
3answers
11k views

How does rpm resolve library dependencies?

I try to make a package of a program which is linked to such library (output from ldd): libwx_baseu-2.8.so.0 => /usr/lib64/wx-2.8-wxcontainer/libwx_baseu-2.8.so.0 Pretty straightforward, right? ...
1
vote
2answers
41 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
1answer
51 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 ...
1
vote
1answer
2k views

Upgrading Berkeley DB rpm in a Centos OS

I have a software which needs Berkeley DB 4.5 or above. But in my CentOS 5.11 x86_64 Server I have: Package db4-4.3.29-10.el5_5.2.x86_64 already installed and latest version Package db4-4.3.29-10....
0
votes
0answers
13 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
13 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 ...
3
votes
3answers
4k views

When using createrepo can I place rpms in multiple directories?

When I use the createrepo command can I place RPMs (within the base dir) in multiple directories (think hierarchical) and still have yum recursively look at all the RPMs the directories within the ...
0
votes
0answers
19 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
25 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
30 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 ...
2
votes
1answer
2k views

How to install Python module dependencies from my RPM?

I have an application that I am packaging as an RPM and installing on CentOS 7. When I install the RPM I want it to install some compiled binaries as well as some Python modules with their ...
1
vote
1answer
129 views

Package file without .rpm or .tar.gz… What to do?

I'm busy installing ELK package on a few RHEL6 servers, but we have two mail servers which are still RHEL5 i386 servers. So I go to https://www.elastic.co/downloads/logstash and downloaded the Linux ...
0
votes
1answer
15 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 --...
166
votes
12answers
111k views

What are the pros/cons of deb vs. rpm?

For whatever reasons, I've always used RPM based distributions (Fedora, Centos and currently openSUSE). I have often heard it stated that deb is better than rpm, but when asked why, have never been ...
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)...
3
votes
1answer
43k views

How to install a RPM package in a right way?

I know its very basic question(but i am new to centos7), and very much confused, the examples i have checked over net someone is using YUM or first wget or tarball.Please tell the right way to install ...
1
vote
3answers
2k views

trying to install chef-client package via local yum repo

I am trying to make chef-11.16.4-1.el6.x86_64.rpm available to our servers via a local yum repo that we've built. it is not available in RHEL Repos, so i had to manually download and save it in our ...
2
votes
1answer
119 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
0answers
20 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-...
11
votes
6answers
62k views

How to fix GPG key retrieval failed: [Errno 14]?

I'm using Centos 6.5 and when I want to install packages from yum I get this error: GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puias How can I fix ...
0
votes
1answer
522 views

Cannot connect to any host (including localhost) using PAC Manager on CentOS 7

I'm using following system: $ cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) $ uname -a Linux X 3.10.0-327.4.4.el7.x86_64 #1 SMP Tue Jan 5 16:07:00 UTC 2016 x86_64 x86_64 x86_64 GNU/...
5
votes
2answers
162 views

Does anyone bother to remove rpmkeys?

My Fedora 26 system still has rpmkeys installed from Fedora 25 and RPMFusion for Fedora 25: $ rpm -qa gpg-pubkey --qf "%{version}-%{release} %{summary}\n" fdb19c98-56fd6333 gpg(Fedora 25 Primary (25) ...
5
votes
1answer
2k views

How to override anaconda/kickstart package ordering?

I am building a bootable ISO to be used to install a Linux image (Oracle Linux, 5.8). This is using anaconda with a kickstart file to select the packages to be loaded. Some of these packages are ...
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 ...
3
votes
1answer
4k views

What do all the letters and numbers in a Red Hat RPM version number mean e.g. openssl-devel-0.9.8e-27.el5_10.1?

What do all the letters and numbers in the rpm name openssl-devel-0.9.8e-27.el5_10.1 mean? I recognize the openssl-devel-0.9.8e part because that's the same number applied by the developement team at ...
1
vote
1answer
2k views

How to install mysql-server 5.6 on RHEL 5.8 (when MySQL-server 5.0 is already installed)

I want to install mysql-server 5.6 on RHEL 5.8, but when trying rpm -i or rpm -Uvh it complains that I already have version 5.0 on there. I am happy to replace, upgrade or install another instance.
4
votes
2answers
344 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 ...
1
vote
1answer
5k views

Reinstaling NSS library on CentOS (Amazon AMI)

I had a problem during updating of the packages on CentOS AMI from Amazon (S3). I got a bunch of duplicated packages. Among them: nss-softokn-freebl-3.16.2.3-14.2.38.amzn1.x86_64 is a duplicate with ...
0
votes
2answers
653 views

CentOS 6, having hard time with yum, repos and installing packages

I'm having some hard time with yum. My end goal is to install the pymssql library for Python. It fails because it needs freetds install. yum install freetds fails with Loaded plugins: fastestmirror ...
0
votes
2answers
829 views

localinstall from cdrom can't find dependencies - RHEL 6.2

I have .iso of RHEL 6.2 with basic packages inside. When I install a rpm using yum install or yum localinstall it can't install due to it can't find the dependencies although it can be found inside ...