RPM question

 
SOLVED
Go to solution
Alex Lavrov
Regular Advisor

RPM question

Hello,
is there any tool to view how rpm file was built? It's drictories, spec files etc.
Also, where can I find a *good* documentation about building rpm files (wuth examples).

Thank you for help.
16 REPLIES 16
Alexander Chuzhoy
Honored Contributor

Re: RPM question

here's a link
http://rpm.redhat.com/RPM-HOWTO
I used it to build my rpms.

Best Regards.
Jerome Henry
Honored Contributor

Re: RPM question

rpm -ql package
rpm -q --filesbypkg package
man rpm
Good tut on package building :
http://freshrpms.net/docs/fight/

hth

J
You can lean only on what resists you...
Alex Lavrov
Regular Advisor

Re: RPM question

Thank you for replies.

I saw in few documentations:
rpm -ba

But my RedHat AS 3.00 linux box says that -ba is unknown option ....

Weird ...
Alexander Chuzhoy
Honored Contributor
Solution

Re: RPM question

You need to add a line to /etc/popt
rpm exec --ba rpmb -ba


Best regards.
Alex Lavrov
Regular Advisor

Re: RPM question

It works!

Tank you very much for the help! :-)
Alex Lavrov
Regular Advisor

Re: RPM question

Hello again, another RPM problem.
When I put some file in the %files section,
I get this message:
Requires(rpmlib): rpmlib(ConpressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) < 4.0.-1
Checking for unpackaged files: /usr/lib/rpm/check-files %{buildroot}
getOutputFrom(): Broken pipe

Any ides how to solve it?

thanx.
Jerome Henry
Honored Contributor

Re: RPM question

Hi
This is because the .spec file is missing a definition of a build-root directory in the "Buildroot:" field, AFA I remember, RH3.0's current build-root definition is this:
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u}

hth

J
You can lean only on what resists you...
Alex Lavrov
Regular Advisor

Re: RPM question

It helped, thank you, but probable I'm missing something.

I want to build rpm that does not build a thing. I want it only put some files, maybe modify some files and that's it.

What is the best way to create that kind of rpm? It's gonna be package with files that will be copied to different directories ...
No build, no install ...
Just untar and copy.

Or maybe rpm is not good for me ...
Jerome Henry
Honored Contributor

Re: RPM question

Hi again,

If you just want to pack and unpack things, why don't you just use tar ? (man tar) It will make from several files and directories one zipped archive, you'll extract theneafter...
Or do you want to specifically use rpm for that purpose ?

J
You can lean only on what resists you...