Questions tagged [rpm]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
8k views

Unable to use yum repos whether with baseurl or mirrorlist in CentOS 6.5

Since a couple of days, I'm unable to retrieve repositories data with Yum, in my CentOS 6.5 server. I did yum clean all a dozen of times, it emptied all but didn't solved the problem. I tried to ...
3
votes
2answers
222 views

What does the word “rolling” mean in a rpm package version context?

What does the word "rolling" in "1:13.0.1.9-2.rolling.el7" below signify? ================================================================================================= Package ...
0
votes
0answers
20 views

Install yum on a Linux system

I have aLinux distribution, which does not have yum or dnf, only rpm. Unfortunately, since rpm does not manage the packages or resolve dependencies, it implies downloading and installing each ...
1
vote
1answer
1k views

Build CentOS RPM for current git release, unsuccessful rebuild with alternate prefix

I am stuck in an effort to provide an maintain an up-to-date git release for a collection of CentOS Linux servers. I was hoping to be able to create binary RPMs that I could just have published to a ...
0
votes
2answers
29 views

How to target specific rows of lines for the output of rpm -qi?

So if I rpm -qi a package it will return this: Name : testpackage Version : xxxxxxx Release : xxxxx Architecture: xxxxxx Install Date: xxxxxxxxxxx Group : xxxxxxxxxxx Size ...
1
vote
1answer
32 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/...
2
votes
1answer
109 views

Cannot build RPM packages from SRPM using mock

I've successfully built the SRPM and after that step I'm trying to build the RPM from the SRPM. Following is the directory from where I am building the RPM. THe Source RPM are in the following ...
1
vote
2answers
668 views

rpm mock - complex rpm building

Lets say I want to make an RPM which delivers an Apache Webserver with its own OpenSSL: /mydir/apache_postfix1 /mydir/openssl_postfix1 Since Apache mod_ssl requires a real OpenSSL installation I ...
-1
votes
1answer
27 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
65 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?
0
votes
1answer
1k views

Multiple prefix tags in rpm spec file

I have an rpm that builds two packages. I tried to add separate Prefix tags in the preamble each of the packages. However, as there is one prep section, I am not able to address the prefix each of ...
1
vote
1answer
28 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 ...
1
vote
1answer
1k views

rpmbuild different path for sysconfdir

I am building rpm for opensips and i want to install this package in /opt/opensips path instead of default system path I have define following in my SPEC file %define _prefix /opt/opensips %...
2
votes
2answers
984 views

AIX apache rpm dependencies

I am evaluating the Crowd SSO by Atlassian. Now to get apache to use CROWD for authentication, there is a connector available by the vendor. Problem Unfortunately they do not provide anything for ...
0
votes
1answer
56 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 ...
1
vote
1answer
1k views

Bash - Running a bash script from within a ksh script

I am on RHEL 6.7 and have a korn shell script that does check pre-reqs, prepares the system for rpm install's (creating directories if they are not already that are required by the product), stops ...
-2
votes
0answers
33 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
7 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
21 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 ...
5
votes
2answers
18k views

RPM: Installed (but unpackaged) file(s) found on Centos 6 with CUPS 1.7.1

Trying to install CUPS 1.7.1 on Centos 6.5 via RPM, I use: # rpmbuild -ta cups-1.7.1-source.tar.bz2 --without dbus --without libusb1 but stops with below error: Checking for unpackaged file(s): /...
0
votes
2answers
3k 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-...
0
votes
1answer
15 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
42 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, ...
9
votes
5answers
21k views

read only TMOUT variable – workaround to disable automatically exit shell when there is no activity

We have here a read only Bash variable. I am not allowed to unset that variable. $ echo $TMOUT 1800 As a workaround I wrote those lines (that my session don't exit) #!/usr/bin/perl $|++; while (1) ...
0
votes
1answer
1k views

Creating arbitrary directory in kickstart before %post

One of the non-OS packages that I need to install via kickstart config requires a pre-existing (non-standard) directory, is there a way to create arbitrary directory before %post in kickstart? ...
2
votes
1answer
463 views

Package depends on mpich, cannot be installed because nothing provides libmpi.so.12

I have some software that uses MPI. I have created an RPM package from that. The requirements are such that mpich and mpich-devel are included: BuildRequires: libstdc++-devel autoconf gcc-c++ ...
1
vote
1answer
52 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 ...
1
vote
1answer
917 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
1answer
15 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,...
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+...
2
votes
3answers
666 views

how to install ccrypt on CentOS

I'm trying to install ccrypt on centOS, but I'm getting the following error: yum install ccrypt No package ccrypt available. I tried to download the rpm and install it manually but it will require ...
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 ...
1
vote
0answers
38 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
88 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
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 ...
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
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....
1
vote
2answers
545 views

How to list all commands contained in a specific rpm package?

I found this exact question for Debian here: List all commands of a specific Debian package But it seems no one has ever asked this for RHEL/CentOS (or OpenSUSE for that matter). For instance, I can ...
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 $ ...
1
vote
0answers
27 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
2answers
1k views

Have /bin/bash not /usr/bin/bash but Cant install RPM Update because of Failed Dependency

Linux system with bash located in /bin and not /usr/bin. Attempting to install (as root) glibc-common-2.17-222.el7.x86_64 using either of the following commands: rpm -ivh glibc-2.17-222.el7.x86_64....
2
votes
1answer
3k views

how to find which repo does one rpm package belong to

How to know which repo does one rpm package belong to? I searched the yum manual, and I didn't find the option. And it is useless to use yum list installed.
0
votes
0answers
17 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
44 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 ...
2
votes
2answers
6k views

Is there a standard way of locating a package's config files?

Just curious if there is a standard way of locating where a package puts the config files for a program (assuming the documentation for the package doesn't include this information). The reason way I ...
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
62 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
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 ...
1
vote
3answers
55 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. ...