Link to home
Start Free TrialLog in
Avatar of redstar01
redstar01Flag for Viet Nam

asked on

How to build a simplest RPM ?

I have some binary file, for example : mypro1, mypro2
I want to build a rpm to install to /bin/myprog1 , /sbin/myprog1
and run  myprog1 after install complete

What about simplest rpm to do this?
I already document but it seem complex and almost build rpm with SourceCode

Thank you!
Avatar of farzanj
farzanj
Flag of Canada image

Please answer the following questions.

So, are you running Red Hat?

Do you have source code from where you could recompile?

Did you make a spec file yet?

Avatar of redstar01

ASKER

Yes, I'm using Centos (RedHat)
I have not spec file and have only 2 binary file, have Not source code!
Ok.  I have done so many RPMS, never once without the source code but we can certainly try it.  It is a little long process.

First you need to create a spec file.  Generally, I work on a machine with a full install--as many packages as possible and make a special unprivileged user to create RPMS.

In addition you have to make your directory structure, directory where you will have your source code -- not in your case, directory where you will have your spec file and directories where the process will produce RPMS.

In addition you have to set certain macros to set paths, etc.
ASKER CERTIFIED SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial