Re: Compile vs. rpm installation



J.O. Aho schreef:
jamcnat@xxxxxxxxx wrote:
I recently compiled a newer version of Apache. The older version was
installed when I initially installed Linux. When I issue the command
'rpm -qa | grep apache', it comes back with the older version but not
the newer version.

This means you didn't build a RPM and installed it, the RPM system won't know
what you install if you don't use RPM to install what you want to install.
This true for any other package manager.


Both versions work albiet in different document
homes. The older version's binaries are in /usr/sbin; the newer in /
usr/local/apache/bin.

This depends on packages you install that depends on apache, they will keep on
looking at the old install and in worst case the package will use binaries,
settings and so on for the older version and cause you trouble as you wish
them to play with the new version.


Anyway, here is my question: Is there any way to
create an rpm file from compiled source code and then install it as an
rpm?

Mandrivia (at least when it still was called Mandrake) had a install-wrapper
that could make a binary rpm of the compiled source, but those times I have
tested it, it failed the task.


This is not critical although it would allow a comprehensive view
of what's installed on the system via the rpm command. Thanks for any
elaboration on this.

I do suggest you learn to write a spec file and use it to build the RPM, a
good way is to use the spec file that comes with the official source rpm,
modify it to the new version you want to build (many times it's enough just
update the version numbers) and then build the RPM. You will IMHO get a better
system that way and you don't have to keep old versions of programs installed,
as they will be required by other packages.


You can also install checkinstall
(http://www.asic-linux.com.mx/~izto/checkinstall/)
.



Relevant Pages

  • Re: Redhat to Freebsd
    ... >>researching security updates or in performing kernel or package updates. ... >>I assume it is only the Redhat distro that has the ease of RPM installation? ... So you can build from sources with ports, or install binaries ...
    (comp.unix.bsd.freebsd.misc)
  • Re: ./configure command
    ... The package is not available. ... machines which don't even have an OS at all, let alone RPM, ... There is not a "the tool to package and install on Fedora". ... If he wants to avoid trouble, ...
    (Fedora)
  • Re: Backing up whole system
    ... Amanda is packaged by Fedora and if Gene feels that the packages are ... fedora's rpm is/was incapable of handling the nuances of using only enough ... When an rpm package can build a complete user from scratch, ... Do you really believe that rpm can install every package under the sun, ...
    (Fedora)
  • Re: [SLE] deCSS
    ... >> Anyone know of a reasonably easy decss program to copy DVDs to my hard ... This let's you compile from source but converts it to an rpm ... Then instead of make install you type checkinstall. ... package to meet the dependencies it may not be recognized by the other ...
    (SuSE)
  • Re: Ubunto
    ... developing Java on Fedora? ... The javadoc is in a third package, ... The lower layer is RPM - RPM files and the 'rpm' command, which is all about taking RPM files and unpacking them into the filesystem. ... It will then transactionally install all of them ...
    (comp.lang.java.programmer)