This domain for sale… Please contact riyesh@gmail.com
Extracting RPM
We can try this with apache rpm
cd /usr/src
wget http://www.apache.org/dist/httpd/binaries/rpm/i386/httpd-2.0.59-1.i386.rpm
extract rpm using rpm2cpio command
rpm2cpio httpd-2.0.59-1.i386.rpm | cpio -idmv
rm -rf httpd-2.0.59-1.i386.rpm
Output:
./etc/…
./usr/..etc..
./var/…etc.
list the location
ls
Output:
etc var usr
Add user for easy administration
useradd rpmbuild
switch to user rpmbuild
su – rpmbuild
create directories for rpmbuild
mkdir ~/rpm ~/rpm/BUILD ~/rpm/RPMS ~/rpm/RPMS/i386 ~/rpm/RPMS/x86_64 ~/rpm/RPMS/i686 ~/rpm/RPMS/noarch ~/rpm/SOURCES ~/rpm/SPECS ~/rpm/SRPMS ~/rpm/tmp
exit
Then you need to create a file ~/.rpmmacros with at least the following lines (otherwise the rpmbuild command will check /usr/src/redhat/ directory)
vi …











