Is rpm2cpio installed by default on CentOS - centos

I am writing some scripts for CentOS. Is rpm2cpio installed by default on CentOS?
I read somewhere rpm2cpio comes with rpm package, but I am not sure. I couldn't figure out from RMP project website.
For CentOS 5 and 6.

The rpm package is installed by default on CentOS and RHEL systems, and rpm2cpio is included in the rpm package as shown here:
$ rpm -ql rpm | grep -P 'rpm2cpio$'
/usr/bin/rpm2cpio
Therefore, yes, rpm2cpio is included in CentOS 5 and 6.

Related

Install other dependency rpm during the rpm installation

i need to install openjdk 11 along with my rpm. my software runs on java 11 but our pc have different version of java already installed.
please help me to install openjdk11 along with my rpm installation
i tried using yum install inside %pre
%pre
java-11-openjdk
You cannot manipulate the RPM database in scriptlets. You need to put Requires: java-11-openjdk and then provide the RPM in the same manner as your own software, e.g. yum/dnf repository, burned to a CD, etc.

How can I install the perl-RRD-Simple package on CentOS 7?

I'm trying to install TSung on CentOS 7, but I'm having trouble installing the dependencies.
When I tried to install perl-RRD-Simple.noarch, yum shows no package available. So I downloaded an RPM file and did:
rpm -ivh perl-RRD-Simple-1.43-1.el5.rf.noarch.rpm
But I got an error:
error: Failed dependencies:
perl(RRDs) is needed by perl-RRD-Simple-1.43-1.el5.rf.noarch
How can I install the perl-RRD-Simple package? RRDtool is already installed.
RRD::Simple depends on RRDs.pm, the Perl bindings for RRDtool. RRDs.pm is in the rrdtool-perl package; on CentOS 7, rrdtool-perl is in the base repo, so you can just do:
yum install rrdtool-perl
You'll also need to find a different perl-RRD-Simple RPM, since perl-RRD-Simple-1.43-1.el5.rf.noarch.rpm is for EL5. The only one I can find for EL7 is here.
Alternatively, you can build your own RPM.

centos libgeos repository missing

On centos 7.3 minimal trying to install shapely or geopandas requires access to https://github.com/libgeos/libgeos libgeos.
Trying to install this via sudo yum install libgeos-dev tells me that this package is not available. It seems that I am lacking a repository. So far I have been unable to find a working one as http://trac.osgeo.org/geos is pointing to https://yum.postgresql.org/repopackages.php#pg96 for the RPM but still after rpm -Uvh https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm the installation candidate is not found.
It seems that for CentOS this package is called geos-devel and can be found through RPM Fusion.
yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
yum install geos-devel
Also see: https://rpmfusion.org/Configuration

Cannot install Flexisip (Linphone SIP server) on Centos 6.8

I am building Voice Call feature for Android app by using Linphone.
On server (CentOS 6.8), I install Flexisip by tutorial on Homepage of Linphone wiki (https://wiki.linphone.org/wiki/index.php/Flexisip:installation).
However in step 1, I cannot install "EPEL repository" for hiredis-devel package because this link is not found: http://mirror.ibcp.fr/pub/epel/7/x86_64/repoview/epel-release.html. If I ignore step 1, then when install Flexisip, it require hiredis-devel with version 0.11 or higher.
So I have some questions:
Can I install Flexisip on CentOS 6.8 ? or Flexisip require CentOS 7 and more recent ?
If I can install Flexisip on CentOS 6.8, how can I install hiredis-devel with version 0.11 or higher ? (because Flexisip require hiredis-devel with version 0.11 or higher, I only can install hiredis-devel with version 0.10 on CentOS 6.8)
Thanks all (sorry I am not native English speaker)
First, you need to download the file using Wget and then install it using RPM on your system to enable the EPEL repository. Use below links based on your Linux OS versions. (Make sure you must be root user).
RHEL/CentOS 7 64 Bit
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
RHEL/CentOS 6 32-64 Bit
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
RHEL/CentOS 6 64-Bit ##
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

Unable to install rpm package in Red Hat Linux

I am using Red Hat Linux installed on VMWare ESXi.
I am using putty to access the machine.
I want to install xyz.noarch.rpm package on RHEL system.
When I try the command
rpm -ivh xyz.noarch.rpm
I get an error package already installed.
When I verify the same by using the rpm -q xyz.noarch.rpm.
I get response as package xyz.noarch.rpm is not installed.
I also tried with the uninstalling the same by using the command as rpm -ev xyz.noarch.rpm the also I get the same response as package xyz.noarch.rpm is not installed.
Can anybody help me to sort out the issue?
The file is named xyz.noarch.rpm, but in the database it's just xyz. So try rpm -qi xyz.
i faced a similar issue and found that both installation and removal (erase) was not working for a rpm package that i installed. i tried using
rpm -e --allmatches <package-name>
more info at : http://www.redhat.com/archives/rpm-list/2002-March/msg00138.html