On Thu, 2003-03-27 at 03:52, Mohammed Awad wrote:
> I meant by RPMed: 
> ready for directly extracting  the source code of a module (like IPCHAIN)
> from.
> And I meant by (not RPMed):
> I must have the RPM run over the whole operating system first, to populate a
> database for the source code files of the operating system, before I can
> extract the source code of the (IPCHAIN)?
> 

I'll try.

If you want to install the source code for a package you don't need to 
do anything other then install the package that contains it.

Red Hat is an RPM based linux distribution and as such already has
everything done that is necessary.

to install the source code:

rpm -ivh ipchains-blah-blah.src.rpm

source code packages NOT the same as the binary package and are named
packagename-version-release-src.rpm by convention


Read the rpm man page and play around a bit and you will get it pretty
quick I bet.

for instance:

to see all packages installed:

rpm -qa

to see the information about a package

rpm -qi ipchains

to see the information about a package that is contained in a file (not
installed)

rpm -qip packagefilename

eg.

  rpm -qif hylafax-4.1.5-2rh8.i386.rpm 
file hylafax-4.1.5-2rh8.i386.rpm is not owned by any package
[EMAIL PROTECTED] tmp]# rpm -qip hylafax-4.1.5-2rh8.i386.rpm 
Name        : hylafax                      Relocations: (not
relocateable)
Version     : 4.1.5                             Vendor: (none)
Release     : 2rh8                          Build Date: Tue 25 Mar 2003
04:00:34 PM CST
Install date: (not installed)               Build Host:
sambatest.internal.stanfieldodell.com
Group       : Applications/Communications   Source RPM:
hylafax-4.1.5-2rh8.src.rpm
Size        : 3246246                          License: better than LGPL
Signature   : (none)
Packager    : Darren Nickerson <[EMAIL PROTECTED]>
URL         : http://www.hylafax.org/
Summary     : HylaFAX(tm) is a sophisticated enterprise strength fax
package
Description :
HylaFAX(tm) is a sophisticated enterprise-strength fax package for
class 1 and 2 fax modems on unix systems. It provides spooling
services and numerous supporting fax management tools.
The fax clients may reside on machines different from the server
and client implementations exist for a number of platforms including
windows.

list the files in a package:

rpm -ql packagename

to see what package a file belongs to 

rpm -qf /full/path/to/file

Lots of more stuff too.



HTH

Bret



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to