Skip to content

Tag: rpm

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 wit…

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 foun…

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…

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…

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…