Re: Compile vs. rpm installation
- From: Canned <user@xxxxxxxxxxxxxx>
- Date: Sat, 08 Dec 2007 19:56:46 +0100
J.O. Aho schreef:
jamcnat@xxxxxxxxx wrote:You can also install checkinstall
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.
(http://www.asic-linux.com.mx/~izto/checkinstall/)
.
- Follow-Ups:
- Re: Compile vs. rpm installation
- From: Crashdamage
- Re: Compile vs. rpm installation
- References:
- Compile vs. rpm installation
- From: jamcnat@xxxxxxxxx
- Re: Compile vs. rpm installation
- From: J.O. Aho
- Compile vs. rpm installation
- Prev by Date: Re: kernel panic : unable to mount root fs on unknown-block(0,0)
- Next by Date: Re: Buying a Seagate hard drive? - note this....
- Previous by thread: Re: Compile vs. rpm installation
- Next by thread: Re: Compile vs. rpm installation
- Index(es):
Relevant Pages
|