Guest asprayama Posted January 27, 2005 Report Share Posted January 27, 2005 http://www.geocities.com/asprayama/if-so/if-so.html What is if-so ? if-so is abbreviation of words 'install from - sources'. Some people who use redhat/fedora based systems wants to install software from sources, compile with desired cpu opts, and don't have troubles with package management. rpm and apt give You exellent and pleasure possibility to manage _binary_ packages. But some things apt doesn't do: it can't recursive fetch sources, build and install compiled rpms. On debian based machines there is apt-build package, but if You work with redhat like system, it will not help You. So, this is an utility I wrote in a free time that can do all that staff. Of cource it open-source and licensed under GPL. You can change sources for Your needs. How it works First if-so asks apt about desired package runtime deps, then download build deps for that runtime dependencies, then download all dependency sources, compile and install them. After that if-so downloads desired package source, and build deps, compiles and install it. Then if-so removes just used build dependencies. if-so written completely with freepascal, so it doesn't have any dependency except rpm and apt. How to use if-so <packagename> <architecture> <architecture> value may be athlon, i386, i486, i586, i686. If this value don't entered, if-so by default will compile package for i386. if-so --help or if-so will print help screen Examples: if-so mpg321 i686 if-so mpg321 Quote Link to comment Share on other sites More sharing options...
Guest anon Posted January 27, 2005 Report Share Posted January 27, 2005 Welcome to the board. It sounds great! thanks for writing it and letting us all know. Could you get it to work for Mandrake? EDIT There is an apt for MDK in Contrib, Hmmm......i wonder if.... Quote Link to comment Share on other sites More sharing options...
Guest asprayama Posted January 28, 2005 Report Share Posted January 28, 2005 Welcome to the board.It sounds great! thanks for writing it and letting us all know. Thank You very much Could you get it to work for Mandrake? Yes, sure, I can get it work with MDK ;) Just now it requires recompilation of sources, but in version 1.1 there will be configuration file, and it woll be more simpler to get it work with MDK and any other rpm distribution ;) Just now I can recompile it for MDK but I need some info for it. if Your work with rpmbuild --rebuild somepackage.src.rpm, which is the path MDK stores compiled binaries by default? Quote Link to comment Share on other sites More sharing options...
Guest anon Posted January 28, 2005 Report Share Posted January 28, 2005 Its /usr/src/RPM/SRPMS /i656/i386 etc. I tried out if-so after creating a /usr/src/redhat/SRPMS directory. But the biggest problem i found is that hardly any mandrake mirrors carry the hdlists for srpms. In fact i only found one mirror and that was for cooker only. So unless mandrake start adding hdlists for source rpms no one can use if-so. :sad: Quote Link to comment Share on other sites More sharing options...
jlc Posted January 31, 2005 Report Share Posted January 31, 2005 /me way of the source up2date --get-source <filename> rpm -ivh /were/i/put/it rpmbuild -ba --target=whatever/i'm/on <filename> Most of the time I do it that way because I edit the spec file. But if-so looks cool. thx 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.