Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi All, I am trying to get a cop 1

Status
Not open for further replies.

CaKiwi

Programmer
Apr 8, 2001
1,294
US
Hi All,

I am trying to get a copy of the source of ifconfig. I have dowloaded net-tools-1.60.tar.bz2 and net-tools-1.60-2mdk.src.rpm but don't know how to extract the source out of them. My distro is Mandrake 8.1.

Thanks in advance. CaKiwi
 
Hi,

If the tarball is a source tarball you just do :

$ cd your_download_directory
$ tar jxvf net-tools-1.60.tar.bz2
$ cd net-tools-1.60

For the srpm, you do :

# rpm -Uvh net-tools*.src.rpm
# cd /usr/src/Mandrake/SOURCES

You will probably then just find a similar tarball of the source there which you'd need to unpack similarly to the above (use 'zxvf' for a tar.gz instead of 'jxvf').

Normally when you build the rpm from source it will unpack on the fly (into /usr/src/Mandrake/BUILD) so thats why the source is not unpacked when you install the source rpm.

If you are interested, to build the binary rpm you do :

# cd /usr/src/Mandrake/SPECS
# rpm -bb --target=i686 net-tools.spec

When its finished the rpm will be in :

/usr/src/Mandrake/RPMS/i686

and you can install it in the usual way.

Hope this helps

 
Hi ifincham,

Thanks for prompt and complete answer (as usual!). I'll try it tonight. CaKiwi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top