info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing the new version


From: Geoff Beier
Subject: Re: Installing the new version
Date: Thu, 11 Dec 2003 09:29:12 -0500
User-agent: Mutt/1.4.1i

On Thu, Dec 11, 2003 at 01:16:08PM +0000, Andy Jones wrote:
> At 12:59 pm 11/12/03, Cristian Adam wrote:
> >> rpm -i cvs-1.11.10-cvshome.org.1.src.rpm
> >                                                           ^
> >You installed the source rpm, is that what you wanted?
> 
> Well, that was the only RPM there was ::grin::
> 
> As I said, there was no apparent effect.  No source files appeared in 
> /usr/local/src or anywhere else.  And certainly no compiling took place.
> 
Depending on whether you were root when you executed that command, it 
went to your %_topdir, or /usr/src/redhat/SOURCES. But installing a
source RPM only installs sources; it doesn't compile them.

It sounds like you need to read an rpm tutorial prior to performing any
other commands as root :-) I seem to recall "Maximum RPM" is good, but
someone on a redhat-oriented list may have a more current
recommendation.

Here are the quick steps to safely and properly install from a source
RPM (assuming that all are performed from your non-root user home directory):

1. echo %_topdir $HOME/rpmbuild >~/.rpmmacros
# this makes source go into a directory you control, so that you don't
# compile as root, which is a bad idea and fails for some packages. Only
# take this step if your .rpmmacros file doesn't yet exist... if it
# already exists, edit the one that's there.

2. mkdir -p rpmbuild/BUILD  rpmbuild/RPMS  rpmbuild/SOURCES rpmbuild/SPECS  
rpmbuild/SRPMS

3. rpm -i cvs-1.11.10-cvshome.org.1.src.rpm
# this should unpack the source into rpmbuild/SOURCES and the spec into
# rpmbuild/SPECS

4. rpmbuild -ba rpmbuild/SPECS/cvs-1.11.10.spec
# this will compile cvs for you and make a regular RPM

5. sudo rpm -Uvh rpmbuild/RPMS/i386/cvs-1.11.10*.rpm
# this will install the 3 RPMs that are built by step 4.
# if you do not have sudo installed and configured, use "su" to become
# root first.

Good luck... hope this helps.

Geoff





reply via email to

[Prev in Thread] Current Thread [Next in Thread]