Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

Red Hat RPM Advice



 If you install the src rpm file, it'll end up under /usr/src/redhat, where
you'll find these directories:

   BUILD/ RPMS/  SOURCES/  SPECS/  SRPMS/

  The source tarball is usually in SOURCES along with the various patch files
that redhat has added. Just untar the tarball (usually xxx.tar.gz),
apply the patches, cd into the source directory and run make.

Example:

 Here's what the net-snmp src rpm put in SOURCES:

-rw-rw-r--    1 root     root          310 Jun 27  2002
net-snmp-5.0.1-initializer.patch
-rw-rw-r--    1 root     root          859 Aug 31  2002
net-snmp-5.0.1-nolibelf.patch
-rw-r--r--    1 root     root      2128267 Jun 26  2002 net-snmp-5.0.1.tar.gz

 cd /usr/src/redhat/SOURCES
 tar zxvf net-snmp-5.0.1.tar.gz

 The above generated this directory:

 drwxr-xr-x   13 274      wheel        4096 Oct 13  2002 net-snmp-5.0.1/

 Next run;

  patch < net-snmp-5.0.1-initializer.patch
  patch < net-snmp-5.0.1-nolibelf.patch

 And you should have a patched source tree ready to cd into and run make/make
install.

 HTH, but YMMV

 Dave Gavin

On Sat, 18 Oct 2003 10:38:58 -0400 David Kramer <david at thekramers.net> wrote:

> On Friday 17 October 2003 19:50, karina.popkova at verizon.net wrote:
> > I need to install some RedHat RPMs
> > I have an old Lap Top with RH 7.3, which runs fine.
> >
> > I have Cd set and (obviously) the RPMs I need are on disk 4 and 5.
> > I can mount CDs and view listing of Pkgs.
> >
> > Where is appropriate to copy Pkgs,
> > prior to install ?
> 
> You don't need to.  When you execute the program below, you can give it the 
> path of the .rpm file on the CD without copying it over, and the rpm 
> command will deal with where to put the files contained in the .rpm file.
> 
> > Book at Barnes & nobles says:
> >
> > use:
> > > rpm -Uhv somename.pkg    // to install
> 
> Note: don't include the // or anything after it.
> 
> So let's say that you've got your cd mounted at /mnt/cdrom and the file was 
> in the i386/RPM directory of the CD, and the package was foo-1.39.rpm.
> 
> rpm -Uvh /mnt/cdrom/i386/rpm/foo-1.39.rpm
> 
> will do what you want.
> 
> > what directory should I copy src.rpms to, from CD,
> > prior to install or
> > un-archiving pkg into files (?)
> 
> You don't need the .src.rpm files if you have the .rpm files.  The .src.rpm 
> files are only needed if you want to compile the package on your machine.
> 
> > Then whre should source files reside?
> > Assume files end up in /usr/include/linux    (???)
> 
> Yes (I think), but that's only if you compile a .src.rpm yourself instead of 
> installing the .rpm files.
> 
> .rpm files contain precompiled binaries, and just need to be installed with 
> the rpm command.
> 
> >
> > Any advice appreciated
> >
> > Karina
> >
> >
> > _______________________________________________
> > Discuss mailing list
> > Discuss at blu.org
> > http://www.blu.org/mailman/listinfo/discuss
> 
> -- 
> -------------------------------------------------------------------
> DDDD   David Kramer                           http://thekramers.net
> DK KD  
> DKK D  "Remember folks - Traffic lights timed for 35 mph
> DK KD  are also timed for 70 mph."
> DDDD                                                    Jim Samuels 
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss


--
Being shot out of a cannon will always be better than being squeezed
out of a tube.  That is why God made fast motorcycles, Bubba....
                    "Song of the Sausage Creature" Hunter S. Tompson





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org