[Top][All Lists]

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

Re: info about redhat

From: Geoff Beier
Subject: Re: info about redhat
Date: Tue, 15 Jul 2003 09:48:22 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701

Mark D. Baushke wrote:
You may build your own from sources:

Fetch a copy of the .src.rpm file from the downloads page:

and then rebuild it with the following commands:

  sudo rpm --rebuild
  sudo rpm -Fvh /usr/src/redhat/RPMS/i386/
I don't want to pick nits, but you *really* shouldn't build as the superuser. Also, current versions of rpm have moved the building to rpmbuild; --rebuild doesn't work by default as a switch to rpm on Redhat 8 or 9. To build as a normal user, simply decide where you want to build your RPMs. I chose a directory called "rpmbuild" in my home directory. (The following steps assume you're currently in your home directory.)

1. Create the working directory structure:
mkdir -p rpmbuild/BUILD rpmbuild/SOURCES rpmbuild/SPECS rpmbuild/SRPMS rpmbuild/RPMS rpmbuild/RPMS/i386

2. Configure RPM:
echo "%_topdir $HOME/rpmbuild" >> $HOME/.rpmmacros

3. Execute rpmbuild as a normal user:
rpmbuild --rebuild

4. Install the rpm as the super user:
sudo rpm -Fvh rpmbuild/RPMS/i386/



reply via email to

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