banjo Posted October 21, 2003 Report Share Posted October 21, 2003 I have a real nOObie question this time. I downloaded and installed a source rpm called abcm2ps-3.7.11-1.src.rpm The install went OK as far as I can tell. But now I cannot find the source anywhere. Where did the source code go? I suppose that this is in a tutorial somewhere, but I can't find that either. If I want to modify the source before building it, where do I look for it to do that? Do I have to get a tar.gz? I know that I must be missing something obvious, but I am having a brain cramp or something. A pointer to a tutorial is fine if there is one that covers this subject. Thanks in advance. Banjo (_)=='=~ Quote Link to comment Share on other sites More sharing options...
Ixthusdan Posted October 21, 2003 Report Share Posted October 21, 2003 Easiest for sources: rpmbuild --rebuild the.source.rpm Do this as root. Then go to /usr/src/RPM/RPMS/i586/new.built.rpm You'll find a fresh new rpm just for you. I would install it using urpmi /usr/src/RPM/RPMS/new.built.rpm You don't even have to go to the directory, unless of course you don't know what the rpm is called! Oh, if you want to modify, you'll find them in the /usr/src/RPM/SPECS directory. Quote Link to comment Share on other sites More sharing options...
banjo Posted October 21, 2003 Author Report Share Posted October 21, 2003 So rebuilding the package extracts the source from the tar.gz down in /usr/src? I guess I assumed that installing it would do that. Ah, me. So much to learn.... so little time. Thanks for the info. I am not at my Linux box right now, so I will have to try this when I get home. Banjo (_)=='=~ Quote Link to comment Share on other sites More sharing options...
bvc Posted October 21, 2003 Report Share Posted October 21, 2003 If I want to modify the source before building it, where do I look for it to do that? Do I have to get a tar.gz? No you don't need a tar.gz. See: rpmbuild --help rpm -help (probably rpmbuild)has a command that'll extract ONLY. Then you can go to the /usr/src/ tree and modify the source b4 building. Quote Link to comment Share on other sites More sharing options...
Qchem Posted October 21, 2003 Report Share Posted October 21, 2003 Correct me if I'm wrong but if you just install the src.rpm (rpm -ivh name-of.src.rpm) shouldn't that just install the source so you change the spec sheet before doing a rpmbuild -bb /path/to/package.spec Quote Link to comment Share on other sites More sharing options...
bvc Posted October 21, 2003 Report Share Posted October 21, 2003 d/k? never tried it that way. Always thought it was incorrect....for some reason? Is that how you do it? Does it work and ONLY extract to /usr/src? Quote Link to comment Share on other sites More sharing options...
banjo Posted October 21, 2003 Author Report Share Posted October 21, 2003 So, then all of this is owned by root? And then you go in and mess around with the source code as root and rebuild? That makes me nervous. I don't like to play around as root. It appears that this rpm system is designed mostly for grabbing the source and building a package as is, and not so much for folks who want to make changes. Am I still missing something? (sorry to be such a pain....) Banjo (_)=='=~ Quote Link to comment Share on other sites More sharing options...
bvc Posted October 21, 2003 Report Share Posted October 21, 2003 http://mandrakeusers.org/viewtopic.php?t=4...t=rpmbuild+user Search the Forum for "rpmbuild AND user". Somewhere, maybe with another search, there's a 2 or 3 page thread on it. Root works for me :P Quote Link to comment Share on other sites More sharing options...
banjo Posted October 21, 2003 Author Report Share Posted October 21, 2003 Thanks for the pointer. I think that the internal workings of this are starting to gel in my mind (a scary thought). Banjo (_)=='=~ Quote Link to comment Share on other sites More sharing options...
bvc Posted October 21, 2003 Report Share Posted October 21, 2003 Yep, linux can definately do that Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.