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 Package Manager is a package management system used primarily for GNU/Linux operating systems. It used the .rpm file format.

3
votes
1answer
121 views

Trouble removing package using Yum on CentOS7

Problem: Removing python-boto from the system and Yum. It appears to be no longer installed, but still appears in Yum. Tried: yum clean all; yum check; rpm -e --noscripts python-boto and rpm -e --...
1
vote
1answer
28 views

Can not start sshd service: relocation error

After updating openssh version from 5.3 to 7.9 I am having problems when I try to start sshd service, The script that I executed is: rpm -Uvh openssh-latest-7.9p1-1.el6.cgsl7741.x86_64.rpm --...
2
votes
2answers
180 views

How to extract rpm preamble

I am working on a non-redhat based machine and I need to extract Version: x.y.z and Release: a.b.c information from some .rpms that pass across the machine. Typically one would do: rpm -qip ./Foo.x....
-2
votes
0answers
30 views

403 error only under https for .deb files

I have a web server. Until now I used only http, but now I configured https and found a nasty problem: everything works fine (pages and pictures), but some debian and rpm packages can't be downloaded ...
0
votes
1answer
26 views

yum update fails: _rpm.error: invalid header data

I am trying to update a package, but it fails with what appears to be a rpm database error - is there a way to repair this? bash-4.2# yum update icinga2 ... Transaction test succeeded Running ...
2
votes
1answer
28 views

Binaries generated by perl's PAR::Packer break when packaged in RPM

I have a perl script that I want to be usable on systems with no perl interpreter installed (like a linux container, for example). I generate a binary with PAR::Packer and everything appears to work ...
0
votes
1answer
25 views

RPM from installed package

The question is simple. I have an old CentOS 7 system that has some installed packages with specific version numbers. However, these versions are unavailable now in the repository they were downloaded ...
0
votes
1answer
173 views

reposync/createrepo or rsync for mirroring a yum repository?

In the redhat docs there is this howto https://access.redhat.com/solutions/23016 It uses reposync and createrepo to mirror a repository server. But you can also use rsync to just mirror the whole ...
9
votes
1answer
140 views

searching for installed rpms by vendor

I am trying to figure out the syntax to use to search installed rpms by a specific Vendor in Linux. I was ideally just trying to use the rpm -qi grepping for a specific vendor but that doesn't seem to ...
2
votes
2answers
52 views

How do I install RPMs on a machine that is completely isolated?

So I have a single machine on which I have installed CentOS Minimal and nothing more. It is completely isolated. This means the following: It can never be connected to another server or laptop The ...
2
votes
1answer
36 views

How to make my RPM abort install based on outcome of %pre scriptlet

I am creating an RPM package that installs some tools on a system. I want to check some machine state before installing my RPM package. My initial instinct is to just run some commands from within ...
0
votes
1answer
22 views

Get a rpm subpackage to be installed with an update

As part of my internship task, I've to deploy OpenVPN clients on around 60-70 client devices that run CentOS (which reside on private networks and cannot be accessed directly). I'm quite new to ...
0
votes
1answer
154 views

yum install sshpass dependency issue

I am running centos 6.10 and I am trying to install sshpass. It is telling me that I am missing a dependency, but when I try to install the dependency, it appears to already be present. Does anyone ...
2
votes
1answer
63 views

How to remove package from rpm database

I have a Centos 6 server that I accidentally added a RHEL 7 package to it's rpm database. Added wrong package sudo rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7....
1
vote
0answers
147 views

error: unpacking of archive failed on file /etc/httpd/logs: cpio: rename

I'm working on an old server of mine. I'm trying to run yum update and there seems to be an issue. So far, I've tried setting that log directory to 777 and same with the 2 log files within it. That ...
0
votes
1answer
59 views

Offline installation ImageMagick

I am trying to install ImageMagick into a RedHat 7 which is offline. To do so, I've downloaded ImageMagick RPM along with it's dependencies using : repotrack -p . ImageMagick but also tried with ...
2
votes
2answers
393 views

Yum can't add rpm repository via yum install command

I have CentOS Linux release 7.4.1708 Linux distro. I need to install some package. The first command to execute is to add repoistory: yum install https://extras.getpagespeed.com/release-el7-latest....
0
votes
1answer
154 views

How to make rpm install from user avoid curl SSL errors?

I am trying install a RPM from an url directly from anaconda kickstart (CentOS7) %post phase but I encountered an interesting error: ``` + rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-...
12
votes
1answer
3k views

What's the difference between `yum install <local path>` and `yum localinstall <local path>`

If I have an RPM located on a local disk - what is the diffrefence between the following yum commands? sudo yum install /tmp/rpm_name.rpm sudo yum localinstall /tmp/rpm_name.rpm Note: I use RedHat/...
0
votes
1answer
80 views

How can I make rpm -q --whatprovides see the same libraries as yum provides?

For context, I'm trying to set up a Chef script that calls out to a third-party installer. In the third-party installer is this function: isLibbz() { rpm -q --whatprovides libbz2.so.1 >/dev/...
0
votes
0answers
90 views

Where is the networker public key?

I am trying to install a networker backup client on linux (CentOS). At the moment I have to use "yum install --nogpgcheck" to do this, since I could not find the public gpg-key for their rpms. ...
0
votes
1answer
57 views

rhel7 yum repository metadata GPG signatures

I'm trying to sign yum repo metadata using GPG, as part of a Jenkins job. This is proving more difficult than I first imagined, but I'm sure lots of people must have done this already. I've worked ...
0
votes
1answer
327 views

“is allowed multiple installs, skipping” prevents downgrade of kernel on Centos6

I have 2.6.32-696.23.1.el6.x86_64 installed and would like to downgrade to 2.6.32-696.10.3.el6.x86_64 but the following command results in a skipping message: yum downgrade -y --disableexcludes=all ...
0
votes
0answers
104 views

How to remove python-virtualenv RPM using commands that are run from an installing RPM?

I need to install virtualenv from an RPM. I do this from the RPM's post-install script, with the following: pip2 install pip --upgrade pip2 install virtualenv --upgrade However, the pip2 install ...
0
votes
0answers
1k views

yum error: cannot import name ts

We had a power hit to one of our servers during a yum update, and now trying to run yum produces the following: # yum update error: Failed to initialize NSS library There was a problem importing one ...
0
votes
1answer
84 views

RHEL 7.5 Cannot Yum install from text file [duplicate]

I cannot figure out why installing packages listed in a text file with Yum wouldn't work but for some reason it does not. Yum cycles through all the listed package names and and lists them as ...
1
vote
1answer
511 views

Tell yum to install the exact version of my package dependencies

I'd like to install a package named pA. Package pA-1.0.0-0 depends on package pB-1.0.0-0. On a yum repository, one can find both pB-1.0.0-0 and pB-1.1.0-0. Package pA-1.0.0-0 is not compatible with ...
0
votes
0answers
1k views

Centos yum error: Failed to initialize NSS library - other fixes not working for me

Basic issue from screenshot: yum error: Failed to initialize NSS library There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: cannot ...
0
votes
0answers
120 views

Reinstall Zypper 1.5.3 Opensuse 11.4

A colleague of mine unfortunately removed a package with zypper ending up removing zypper from the server. I am trying to reinstall it via the .rpm package. I have tried downloading it via wget: ...
0
votes
1answer
151 views

How to build standalone Intl extension from bundled source

For a long time I've maintained my own package of the PECL Intl extension for PHP 5, but upgrading now to PHP 7 I'm unable to build the extension that's bundled with PHP. With a clean installation I ...
2
votes
1answer
4k views

yum/rpm Failed to initialize NSS library in chroot

I am performing a yum update from CentOS 7.4 to CentOS 7.5, when nspr and nss soft-softoken receive the updates, I am left with the following error: yum update nspr error: Failed to initialize NSS ...
0
votes
1answer
44 views

debian and yum packages - is there a way we can set max mem % and CPU % limits?

Is there a hard limit we can set on Debian and RPM packages? My thought is to put 20% CPU, 20% Memory and 200 MB Disk Usage hard limits. So the package can play within those limits and not beyond that....
0
votes
0answers
267 views

PostgreSQL installation on an internal cloud instance with severely limited network access

I am running into a "I'm sure there's a better way" problem here: I am trying to get postgresql running on a cloud instance. This cloud instance is in our internal network. It cannot access ...
2
votes
1answer
132 views

How can two RPMs be mutually exclusive providers of the same functionality?

I have a breakfast package that Requires toast, bacon, and eggs. Importantly, breakfast needs exactly one eggs implementation to be a balanced meal. The scrambled-eggs package Provides eggs. So does ...
3
votes
3answers
278 views

RPM package dependencies

I modified the .spec file from a source RPM available in the EPEL repository. # yumdownloader pjproject # yumdownloader --source pjproject # diff -u pjproject.spec{.orig,} --- pjproject.spec.orig ...
-1
votes
1answer
67 views

What is the dpkg equivalent of “rpm -i”?

I have a package installed on an Ubuntu machine, and I need to list the metadata of that installed package to determine where it came from. On a Redhat based machine, "rpm -i [packagename]" will give ...
0
votes
2answers
297 views

Can I run for loop over %files directive in the .spec file?

I am writing a spec file which creates multiple packages. Can I use a for loop over %files directive with different names, like this: for name in {package1, package2, package3} ; do %files -n $name ...
-1
votes
1answer
348 views

Installing MySQL on Red Hat Linux on the remote server without internet using pre-downloaded RPM packages

I am trying to install MySQL on the Red Hat Linux remote server without the internet. Problem is : Can't use internet on the server (so cant use 'yum install ..' commands) Solution found: To pre-...
0
votes
1answer
71 views

difference of nagios-plugins and nagios-plugins-all rpm packages

I am a bit confused as to the purpose of those two rpm packages installed from epel repository. As far as i can see , nagios-plugins package just installs a few scripts: /usr/lib64/nagios/plugins/...
3
votes
2answers
2k views

primary.sqlite.bz2 not found on private repo

I've been setting up a private repo for the company I'm working. At the beginning it was working properly, but today, when I'll try to install a new rpm that I've build I had this ugly error : http://...
0
votes
2answers
54 views

How to distinguish rpm package files from files generated by make install

What I have: CentOS 7 based server Part of files (programs) set from sources (configure && make install) No kind of sources left (no spec files, nothing) What I need: remove these ...
2
votes
1answer
250 views

Possible to remove rpm package off of remote hosts using ssh?

Good afternoon all! long time lurker, first time poster here. I am trying to use a script to remove an rpm remotely (foo). There are too many hosts to efficiently do this manually. There are ...
4
votes
1answer
2k views

yum install local rpm trows error if up to date

when installing rpm packages from local file directory it runs fine the first time sudo yum install packages/* -y --disablerepo=* when the same thing is run the second time as part of automated ...
0
votes
1answer
1k views

Strongswan Installation for CentOS 7

I'm want to use IKEv2 VPN on a CentOS 7.* VMs, and I want to Authenticate the users with our RADIUS server. Currently, I'm using yum install strongswan command to install the strongswan repo, but it ...
0
votes
1answer
163 views

/var/lib/rpm/__db.xxx files delete update alerts

A security audit team has set up File intergrity management solution on some of the linux servers handled by the company I work with. They are questioning us about some alerts they've got regarding /...
2
votes
1answer
397 views

What's the correct way to force RPM erase & Install instead of upgrade?

I have an RPM whose software recently had its database schema completely redesigned. The current version (We'll call it B.0) is incompatible with older versions of the database schema. Fortunately ...
1
vote
1answer
569 views

How to update unixODBC via yum on EB awsLinux

In summary I need to update unixODBC on the Elastic Beanstalk PHP instances, preferably using yum as it's quite easy to manage via .ebextensions. AWS Linux: 64bit Amazon Linux 2017.03 v2.4.2 running ...
0
votes
0answers
1k views

Unable to update package with YUM

I am trying to update an openssl package on my node. # yum update openssl-1.0.1e-60.el7.x86_64 Loaded plugins: product-id, rhnplugin, subscription-manager This system is receiving updates from RHN ...
0
votes
2answers
2k views

Create local repository with all dependencies from rpm

I have a custom rpm given to me by a vendor that has dependencies that are pulled when installed. I need to install this package on a closed network system, so I cannot access the internet to gather ...
0
votes
1answer
120 views

Is it OK to copy files installed with rpm to another location?

I have a script I'm using to install some rpms in my docker image which is shown below. yumdownloader common-jars-${RELEASE_VERSION} \ test-jars-${RELEASE_VERSION} \ rpm -ivh --force --...