Questions tagged [rpm]

1

votes
0

answer
321

Views

Is there a defined list of the exit codes that rpm returns based on the type of error it had?

Each time rpm command returns different exit codes. For example- In case of failed dependency sometimes echo $? gives 1 and sometime 5. Can someone explain this?
Arun Prakash
1

votes
0

answer
50

Views

Building a SELinux image - RPM Package compilation Error

I've enabled the SELinux by doing the below changes, Added meta-selinux path to BUILDDIR/conf/bblayers.conf file. Set DISTRO_FEATURES_append=' pam selinux' in in BUILDDIR/conf/local.conf file. I've executed the below command to generate a default se-Linux image, $ bitbake core-image-selinux And gett...
nullbyte91
1

votes
1

answer
39

Views

What prerequisites does the rpm-maven-plugin require?

What does the rpm-maven-plugin plugin require to build an rpm? What command line utilities and/or other programs need to be installed?
PaulJ
1

votes
1

answer
40

Views

rpm signature verification fails on CentOS, works on Fedora

Why does the following work on Fedora (28), but not on CentOS (7.5)? wget https://download.fman.io/1.3.5/fman.rpm sudo rpm -v --import https://download.fman.io/rpm/public.gpg rpm -K fman.rpm On Fedora, I get fman.rpm: digests signatures OK whereas on CentOS: fman.rpm: RSA sha1 ((MD5) PGP) md5 NOT OK...
Michael Herrmann
1

votes
0

answer
37

Views

How to configure %ghost files with rpm-maven-plugin

When creating a rpm package using a SPEC file it is possible to configure files in the %files section which will not be included in the rpm itself but owned by it. Typical use-case are log-files which do not exist when the rpm is created but will be created when the service / application runs. Those...
Michael P.
1

votes
2

answer
79

Views

Install4j missing digest in RPM archives

rpm files produced with install4j are missing the digest by default. This forces the user to use the --nodigest flag when installing them. Is there a way to tell install4j to generate the checksum for rpm files?
jumpinglangur
1

votes
1

answer
35

Views

How to access --prefix value in spec file?

I have a query regarding rpms. I am installing an rpm using 'rpm --prefix=/home/cloud-user -ivh xyz.rpm' command. I want to access this prefix(/home/cloud-user) inside the spec file. which variable will have this value? how does the spec file access it from the command? Note: I am working on relocat...
Akshat Sharma
1

votes
0

answer
57

Views

set RPM package name according to version using CMAKE/CPack

I want to generate RPM file and later progress the version using build machine. What I want to do is to run cpack -R '100.0.4d' or similar fashion In return get rpm file: myapp-100.0.4d.rpm. This is to support automated version generation to do so I constructed the following CMakeLists.txt: PROJECT...
LordTitiKaka
1

votes
1

answer
100

Views

Upgrade PHP 5.6 to 7.2

I currently have php72 installed on amazon linux one. [ehost ~]$ php -v PHP 7.2.11 (cli) ( built: Oct 16 2018 23:50:44) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies When I attempt to install a custom rpm I get the followi...
Shawn Rose
1

votes
1

answer
60

Views

No package confluent-community-2.11 available

I am trying to install kafka on on centOS using this page . https://docs.confluent.io/current/installation/installing_cp/rhel-centos.html but getting this error No package confluent-community-2.11 available. After running this page command sudo yum clean all && sudo yum install confluent-community...
user1555115
1

votes
0

answer
50

Views

CPack without a CMake project

I'm trying to create a package using CPack but struggling to find examples or documentation that helps me for my use case where I didn't build the code using a cmake project. I have a GO project that has produced a binary that I want installed on a system via either RPM on Linux or MSI on Windows. M...
john
1

votes
0

answer
38

Views

Gradle publish RPM to Nexus Yum Repo fails on sha1 file

I am trying to publish an RPM artifact from our project into a Yum Repo on Nexus via Gradle: publishing { repositories { ivy { url 'http://myrepo:8081/repository/myproject' credentials { username 'aaa' password 'xxx' } layout 'pattern', { artifact '${buildRpm.outputs.getFiles().getSingleFile().getNa...
ChrisDekker
1

votes
2

answer
1.4k

Views

Is there a sqlite entension for PHP in RedHat Enterprise Linux 5?

I'm trying to use some off-the-shelf PHP code in RHEL5 which requires the sqlite package (not the PDO one) but it appears this is not included in the base php5.1.6 rpm bundled with RHEL5. Unfortunately, due to circumstances beyond my control, I don't have access to the installation media or RHN acce...
symcbean
1

votes
2

answer
749

Views

How to use an RPM option in a yum upgrade?

I need to upgrade an RPM installed via YUM, which has an fatal bug in its postun section. This will get run (and delete the program's user, which is what I want to not happen) when I run 'yum upgrade'. I know that if I were using rpm directly, I could just use the '-nopostun' option to skip this sec...
Rachel
1

votes
1

answer
1.3k

Views

How to take user input during install

So when I create a debian package, I am able to write a post-installation shell script that runs just fine. Currently mine is configured to do echo 'Please enter your MySQL Database user (default root)' read MYSQL_USER echo 'Please enter the MySQL Database user password (default root)' read -s MYSQ...
Sam
1

votes
1

answer
611

Views

Build Linux Packages on Cygwin

Is it a good idea to build RPMs and Debian packages on Cygwin? Our release server is windows, so our options are either that or start up VMs with linux to handle the task. I'm just not sure if VMs are taking a nuclear bomb to an ant. Is there a way to do the building in Cygwin? If so, how? So far I'...
Sam
1

votes
1

answer
503

Views

How to avoid conflict when creating 32 and 64 bits rpms

We have to compile binary RPMs for both architectures (i386 and x86_64) for centos. When we want to install both, we have conflicts on common files (like in /usr/include, /bin, ...) Is there .spec creation rules that help avoiding these conflicts ?
1

votes
2

answer
3.7k

Views

Required JDK 1.6 rpm for x64 Redhat

I downloaded the jdk-6u21-linux-x64-rpm.bin from Sun and installed the Java. During execution the rpm which got extracted is jdk-6u21-linux-amd64.rpm. I am trying to build an application which requires libjvm.so. And in the above JDK it is found in /usr/java/jdk1.6.0_21/jre/lib/amd64/server/libjvm....
hits_lucky
1

votes
2

answer
3.4k

Views

RPM Requires i386 version of a package

Not really certain if this belongs here... but... I am successfully building an RPM for Centos, the problem is that it is a 32bit binary (don't ask..) - the requires part of the rpm spec only installs the 64bit/x86_64 version of a required library. I am linking against libicu, and I want the rpm to...
maxpenguin
1

votes
1

answer
177

Views

OR dependencies in RPM?

Can I produce an RPM package where several dependencies are listed in a choose-one-from-those manner? Reason why I'm asking, my app needs a scalable Mincho-style Japanese font, and it looks like different flavors of RPM-based Linux provide different ones, with no common denominator. I don't want to...
Seva Alekseyev
1

votes
1

answer
1.8k

Views

Distutils, older rpm, and customized spec file

I finally got my program packaged in a RPM on Fedora 14 yesterday, and I thought that it would be easy to build it the same way on a CentOS 4.8 box. It turns out that the older version of rpm and distutils are severally limited, and I'm not having any luck working around it. The basic problem is th...
fandingo
1

votes
1

answer
787

Views

How do you create an rpm from a self-extracting executable?

I have a .bin file (Linux self extracting binary files), say installme.bin I want to make an RPM out of it. What would be the simplest strategy? An almost empty spec file with: %post ./installme.bin Would it work? Many thanks in advance
Alain
1

votes
1

answer
1.6k

Views

No emacs package on rpmforge (RHEL)

When trying to install emacs on RHEL 5.5, I get the following error: $ sudo yum install emacs Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Install Process No package emacs available. Nothing to do I've already install rpmforge....
user8125
1

votes
2

answer
1.2k

Views

RPM + writing script in the spec file

is it possible to write ksh script in the spec file? the target is during rpm -i my_rpm.rpm according to the spec file , ksh script will do some installation & configuration for example run other script and edit some files THX
jon
1

votes
1

answer
653

Views

How to override CONFIG_SITE in a spec file (best practice)

If a user attempting to build an rpm from a specfile has CONFIG_SITE set in the environment when running rpmbuild, and the specfile builds with './configure --prefix=/usr && make', then the user's settings in the CONFIG_SITE can completely mangle the build. (As a concrete example, suppose /usr/shar...
1

votes
1

answer
8.3k

Views

RPM spec made relocatable by adding prefix but while installing i do not see the files installed

Summary: A small lighttpd Name: lighttpd Version: 1.4.28 Release: 1000 License: LGPL Group: Applications/Webserver URL: http://www.lighttpd.com/ Source: http://www.lighttpd.com/lighttpd-%{version}.tar.gz BuildRoot: %{name}-%{version} Prefix: /opt/src/Opensource/lighttpd-1.4.28/install #Do not termin...
vishu
1

votes
1

answer
1.1k

Views

Problem with multiple listings of the same file in RPM spec

I have some problems with an rpm spec file that is listing the same file multiple times. For this spec we do some normal compilation and then we have script that copies everything to the buildroot. Within this buildroot we have a lot of generic scripts that need to be installed on the final system,...
LiKao
1

votes
1

answer
48

Views

How to know the version of RPM during installation

I have created a script for deployment. During the pre script, is it possible to know whats the version of the rpm I am deploying. I want to create a backup file with the version of the RPM (in its name) so that i can trace back the version of the RPM file.
explorer
1

votes
1

answer
272

Views

standardized conclusion required for rpm upgrade process

The rpm command provides three main operations for upgrading and installing packages: Upgrade An upgrade operation means installing a new version of a package and removing all previous versions of the same package. If you have not installed a package previously, the upgrade operation will install t...
user1234
1

votes
1

answer
186

Views

Why can you install the same package by different names with Yum

On Centos 6 I can do # yum install webserver or # yum install httpd And both commands will install httpd (apache) I am building an RPM and I don't know which one I should use or why they are different. Do packages have a 'generic' name that you can address them by? For instance if you had lighttpd i...
ActionOwl
1

votes
1

answer
971

Views

install rpm packages and dealing with dependencies

I am trying to install apt-get on centos. wget http://pkgs.repoforge.org/apt/apt-0.5.15lorg3.2-1.el4.rf.x86_64.rpm rpm -i apt-0.5.15lorg3.2-1.el4.rf.x86_64.rpm error: Failed dependencies: libbeecrypt.so.6()(64bit) is needed by apt-0.5.15lorg3.2-1.el4.rf.x86_64 libreadline.so.4()(64bit) is needed by...
1

votes
1

answer
1.8k

Views

Error while installing RPM -%post script of spec-failed dependencies /bin/sh

I am trying to build RPM for my java code.RPM build and install sections works fine.But,later i have added a shell script in %post section to run shell script file that creates some files and starts the java application.The file gets copied fine.But, in %post section I get the failed dependencies b...
keerthi
1

votes
1

answer
170

Views

Cloning Ruby on rails application on a second box - no internet connection

I have a RoR application running on box1...it obviously has Ruby, RubyGems, and Rails installed on that box, along with a few other gems. I want to copy this whole set-up so it runs independentally on box2 as well. Neither box has an internet connection, but an internet connection is available on an...
Exbi
1

votes
1

answer
737

Views

Remove Django tests using setup.py bdist_rpm

I'm trying to remove all of the tests directories as well as the tests.py files when creating an RPM from a setup.py file using bdist_rpm. I have tried excluding it from find_packages(), but it only removes tests packages, which is only half the issue. any tests.py files remain in packages that do...
intargc
1

votes
1

answer
436

Views

Change the initial applications in the Mock RPM build environment

Underneath the /var/lib/mock folder of my CentOS 6.2 machine, I can see all the initial applications in a target build OS. If I want to add JDK as an extra application, how can I do it please? Thanks!
Hongyu Zhang
1

votes
1

answer
1.3k

Views

Query all rpm's installed as non-root?

As the title states I would like to know how to list all rpms that have been installed after I've initialized my own db (I've browsed the man pages and googled but that didn't bring me fortune): rpm --initdb --root /home/username/local --dbpath /home/username/local/lib/rpm ? Executing rpm -qa will n...
PistolPete
1

votes
1

answer
468

Views

Compile and build the cobbler source code rpm for fedora

Recently I read this post http://howto.basjes.nl/linux/doing-pxe-without-dhcp-control and want to try using cobbler. Because I need the latest cobbler to run on my Fedora and I need to compile and install from the source code instead of using yum install. I am a beginner of linux programming and wa...
Xianlin
1

votes
1

answer
139

Views

how do reference a source directory from and artifiact declared as a dependency

I have an assembly module that builds the directory structure I need under the target directory. All folders are there as expected. These dirs include config, docs, lib etc. Some include jars while the others contain stadard shell scripts and files etc. Now I want to reference this artifact, lets sa...
user983022
1

votes
2

answer
536

Views

Building a GlassFish RPM with latest updates?

To make software deployment more reliable and easier it's a good idea to use the operating system's package management to distribute the software. Now I want to package GlassFish as RPM. Goals: - build once, deploy multiple times - package GlassFish with latest updates - package customized GlassFish...
try-catch-finally
1

votes
1

answer
9.3k

Views

How to Install YUM on Cent OS 5.8 [closed]

I managed to uninstall it by accident. I have found the package yum-3.2.22-39.e15.centos.noarch.rpm and when I try to install it says Failed dependencies: yum-fastestmirror is needed by yum-3.2.22-39.el5.centos.noarch So I got that and tried installing that and I get more failed dependencies: rpmlib...
Usman

View additional questions