Linux - compile .src.rpm
The difference between .rpm and .src.rpm is that .src.rpm includes the source codes and it is required to compile to install.
rpm -i [software-package].src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bp [software-package].specs
cd /usr/src/redhat/BUILD/[software-package]
./configure
make && make install
OR
rpmbuild --target i386 --rebuild [software-package].src.rpm
/usr/src/redhat/RPMS/i586/xl2tpd-1.1.11-2.i386.rpm
rpm -i [software-package].src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bp [software-package].specs
cd /usr/src/redhat/BUILD/[software-package]
./configure
make && make install
OR
rpmbuild --target i386 --rebuild [software-package].src.rpm
/usr/src/redhat/RPMS/i586/xl2tpd-1.1.11-2.i386.rpm
Comments
Post a Comment