How to install .src.rpm packages in openSuse

suse.png

This tutorial will cover the basics on how to install a .src.rpm package in OpenSuse. This applies to any SuSE version, and actually also to other distros (except step 5) as well.

1) you need to install the rpmbuild command itself, plus maybe kde3 devel packages, in case in step 2) it complains about dependencies

2) As a root, type:
rpmbuild –rebuild package_name.src.rpm
This is the simplest form, you can do a man rpmbuild to check more options

3) This will create a RPM, normally located in /usr/src/packages/………
For example it could be /usr/src/packages/RPMS/i586/ package_name.rpm

4) Now install normally: cd into the dir where the rpm is and type
rpm -Uvih your_rpm_package.rpm

5) then run SuSEconfig

This step ain’t strictly necessary but wont hurt either. On the other hand it is always run by Yast too every time you install or uninstall something.

6) Your installed rpm package will appear normally in Yast, you can uninstall from there if you want to

7) You can reuse the rpm that has been created in this way, so you might want to save it in case for instance you need to reformat, etc etc

Source

Related Posts

Comments are closed.