Re: Compiling & installing RPMs

From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 07/11/03


Date: 10 Jul 2003 22:20:23 GMT

Vikas Agnihotri <fornewsgroups@vikas.mailshell.com> writes:

]This might be a RPM FAQ but I wasnt able to find the answer to it.

]What is the best way to install software using RPM if I have

]1. a .tar.bg2 or .tar.gz file

You need to crete a .spec file which lists the rpm procedures to
compile, install etd. Then do
rpm -ba /usr/src/RPM/SPECS/nameofprogram.spec
(making sure you put the tar file in /usr/src/RPM/SOURCES

]2. a source RPM (srpm)
rpm --rebuild name.of.the.src.rpm

Then in both cases install the created arm by
rpm -Uhv /usr/src/RPM/RPMS/i?86/name.of.the.i?86.rpm
where ? is the processor you set it up for (eg 386 for redhat, 586 for
Mandrake, etc)

]In both cases, the software would need to be compiled and then installed. I
]was hoping that RPM has a automatic way to do the "./configure;make;make
]install" routine given either of the above packages?

Yes.

]Thanks for any help



Relevant Pages

  • Re: Dependencies
    ... Should you install it or no? ... RPM is just a low-level tool that does one thing and that one ... If getting the GPG keys causes you heartburn, ... > To stay in the RPM subject, Apache give keys for their tarball versions. ...
    (linux.redhat)
  • Re: Three newbie questions!
    ... You can see the main groups, then the applications ... Until you get to know the names of applications, it is best to use RPM ... You normally find a README, an INSTALL, and a doc ... If you have installed any libraries, then you must run the following ...
    (comp.os.linux.setup)
  • FW: [SLE] YaST Online Update Problem
    ... >>update one of the rpms manually to see if rpm will give you a better error ... >SuSE to try to apply one of the patches? ... >I've always used YaST for Online Updates and for installing new packages. ... Not only that, but at the end of the install, it ...
    (SuSE)
  • Re: How to install Java/Frefox in FC6 -
    ... just don't trust java and rpm in the same breath, ... recall that when building packages, you always opt for ./configure && ... make && make install and I don't recall a single instance where you have ... I rebuilt kde to kde-3.3.0 using konstruct, didn't fix it. ...
    (Fedora)
  • Re: Hello plus question
    ... >> something like White Box Enterprise Linux (Open Source version of Red ... and thus yum install will handle ... >Steven is comfortable with handling rpm and dependencies then he can go ... there are an old saying - the admins problems is the admins ...
    (Fedora)