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.
$ 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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.