Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Could someone more learned with Linux than I please post some newbie-friendly instructions for all the newbies like myself?
Specif icily how do you create an rpm from source, the best places to find dependency packages that always crop up, and how to safely and properly uninstall rpm's.
I'm using SuSE 9.2 but rpm seems to be ubiquitous across distributions so I believe that the instructions shouldn't vary.
That is all.
Thanks in advance.
A spec file may be included by the package's authors or you may have to create one yourself. I have onnly built rpms on Fedora Core, and they have a spec file template that you can easily reconfigure to meet your needs. To check dependencies, I usually watch the configure process either by compiling the source package manually or by watching rpm trying to build the rpm from the spec file I've made. Suse has some rpm building tools to help people build rpms for their distro but unfortunately I can't remember what the packages are called. Take a look at rpm.org, you may find some useful information there.
Originally posted by Icarus315 from having source rpms, what is the next step - making them into binary rpms? Thanks.
huh?
rpm -ta filename.tar.gz
or
rpmbuild -ta filename.tar.gz
will build binary rpms from a tarball (as well as source rpms) provided the tarball has a spec file. in redhat, rpms get generated in /usr/src/redhat/RPMS/i386 and srpms will get generated in /usr/src/redhat/SRPMS
For everything you could ever want to know about rpm, go to the RedHat website, and search for Max-rpm. It's their book about rpm: what it is, what it does, how to build a source tree, how to write a spec file, etc.
I like to use the program checkinstall to build rpms from source packages. It works quite well on my SuSe & Red Hat boxes both. As for dependencies & such I have installed apt on my boxes to avoid rpm hell .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.