Skip to content
Advertisement

Tag: rpm

Extract second word from a file in yum repository file using command line or bash

I wanted to extract a paticular file path from a text file (yum repository file) The file contents looks like this My requirement is to extract sslclinetkey path of both rhel-8-for-x86_64-appstream-rpm and rhel-8-for-x86_64-baseos-rpm through the command line or script Any help would be appreciated UPDATE I tried this way, but I am getting multiple entries But I only need of

rpm.spec hide warning that comes after %post

I’m trying to solve this problem for a few days now but still nothing… Let’s say for example this is my upgrade.sh: And this is my rpm.spec file: Now I got example.rpm file. After I’m running the command rpm -U example.rpm this is the output I’m getting: Everything works fine with the upgrade, my only problem is that I don’t

RPM SPEC Systemd enable and start

I have created a RPM SPEC file but I am struggeling with Systemd enabling and starting. Updating the package through yum disables and stops the service. The distribution is Centos 7.x I have installed the service under /etc/systemd/system. This is what I have tried so for but it does not work. I have not found any good working examples of

How to uninstall RPM without dependencies error in cent os?

I installed the openssl rpm some long days ago. After that i am unable to uninstall the rpm so that i deleted the /usr/bin/openssl folder manually.Though I deleted it manually, when i grep using this command rpm -qa openssl i can find the rpm. But when i execute the openssl command in terminal it is showing bash: openssl: command not

RPM require kernel-devel package of currently installed kernel

I have written an RPM spec that has a requirement for the kernel-devel package. However, that is satisfied by the installation of any kernel-devel package. How do I specify that the RPM requires the kernel-devel package of the currently running kernel version. For example, our customer could be running 3.10.0-514, however the latest is 3.10.0-693. If you execute “yum install

rpm -q -> query only the descripton

I can query the informations about a rpm-package with Example-Result of a Query: But I only want to query the Description. Is that possible? The reason for that is that I want to process this information (the Description) in a C++ Program (I do this with popen()). Maybe something like this: Answer This is the correct sollution:

Why there are many i686 RPMs in CentOS x86_64 repository?

I’m looking at http://mirror.centos.org/centos-7/7.3.1611/os/x86_64/Packages where there are many i686 RPMs included. Not every x86_64 RPM has its i686 RPM counterpart though. I thought i686 packages are for 32 bit machine only, but why are they present under x86_64 directory? Are they really needed for 64 bit distribution? Answer I thought i686 packages are for 32 bit machine only, but why

Install Section of rpm package

I am naive on creating RPM packages. I want to know the meaning of below command: Answer in the %install section, you are supposed to install all your files in the %{buildroot] directory; just the way they will be installed on the final system. he cleans this directory. I never use this; since my buildroot is unique for each of

Advertisement