Re: [SLE] Help with using rpm

From: Marius Roets (Marius.Roets_at_eskom.co.za)
Date: 07/29/03

  • Next message: Turd Ferguson: "[SLE] checkinstall help"
    Date: Tue, 29 Jul 2003 07:13:07 +0200
    To: <Joe_Morris@ntm.org>, <suse-linux-e@suse.com>
    
    

    Thanks Joe,
    This is more info than I could find, and suddenly all makes sense. In the documentation I always skip the part about creating your own rpm's because I didn't think that relevant to what I want to do. This includes the parts about spec files etc. I see however that this is closely related to building src rpm's. I am sure I now know enough to make sense of the man pages and howto's.

    Thanks a lot, you have helped a lot.

    Regards
    Marius Roets

    >>> "Joe Morris (NTM)" <Joe_Morris@ntm.org> 28/07/2003 16:21:03 >>>
    Marius Roets wrote, On 07/28/2003 09:23 PM:

    >I'm an old fashioned type of guy that likes to use the tarball method for making and installing software. I am however slowly coming over to the rpm way of doing things. I like the idea of having a central repository where you can see what you have on your system, and manipulate it from there.
    >
    You can use this method with checkinstall and get both. You can
    onfigure and make as normal, but instead of make install, use
    checkinstall instead. If you configure /etc/checkinstallrc first, you
    can have very easy installs, basically only giving a description and
    checking the defaults. It works great for me, and it is on the CDs/DVD.

    >The reason I mostly stay away from rpm's is that I don't know how to compile the source versions. I often need to change the configuration before compiling which is traditionally done with options to ./configure. I don't know how to this with rpm. In fact, I know very little about how the source rpm's work, and I haven't been able to find a decent tutorial on this subject.
    >
    >
    You would do this for a src.rpm by editing the spec file in
    /usr/src/packages/SPECS. In this, especially if it is a SuSE src.rpm,
    you will find a listing of what packages you will need to "compile" the
    package, and you will find a configure line that sounds like you are
    familiar with. You could make the changes there and 'customize' the rpm
    for your specs (no pun intended).

    >I'd like to know things like how to compile src rpm's,
    >
    rpm -bb --target=ix86 xxx.spec (replace x's to fit your machine type and
    spec name. this will produce an optimized rpm, finally found in
    /usr/src/packages/RPMS/ix86)

    >how to change the code,
    >
    Make or find a patch, add the patch to the sources line and add a patch
    command. A good study is to install the source rpm for a package you
    have to study how SuSE did it. That's how I learned a lot.

    >how to change configure options and compiler options etc.
    >
    Edit the spec file's configure command.

    > Also how does the src rpm relate to binary version. Do you need both, or just one of them. Do they give the same results?
    >
    The src rpm installs the sources, patches, etc in
    /usr/src/packages/SOURCES and the spec file in /usr/src/packages/SPECS.
    They are useless intil you build the binary and install. The binary
    needs to be built, which is potentially easier with a src rpm (since all
    decisions, command lines, etc, are given you in the spec file), but that
    is the only one you need to be able to use the program.

    >Unfortunately, the man pages are not very helpful in this regard and I would appreciate it if somebody can point me to tutorial that can answer these questions.
    >
    Sorry, I learned the hard way, trial, error, getting help. It works as
    well. HTH.

    -- 
    Joe Morris
    New Tribes Mission
    Email Address: Joe_Morris@ntm.org 
    Web Address: http://www.mydestiny.net/~joe_morris 
    Registered Linux user 231871
    God said, I AM that I AM.  I say, by the grace of
    God, I am what I am.
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com 
    Also check the archives at http://lists.suse.com 
    Please read the FAQs: suse-linux-e-faq@suse.com 
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Turd Ferguson: "[SLE] checkinstall help"

    Relevant Pages

    • Re: installing for the first time
      ... > and I thought it was great that it was easy to install the basics. ... > good to do but I did't have any gpg public keys installed. ... It obvious you have never used the command line before, ... program by typing rpm at a prompt. ...
      (Fedora)
    • Re: [SLE] Help with using rpm
      ... You could make the changes there and 'customize' the rpm ... spec name. ... A good study is to install the source rpm for a package you ... Edit the spec file's configure command. ...
      (SuSE)
    • [opensuse] BASH script help needed - Why is full path required?
      ... the full path name for rpm to be able to install the file, ... script is executed in the same directory as the file. ... I have underlined the rpm ... file as a command line option or make sure it is in the present working ...
      (SuSE)
    • Re: RPM creation questions
      ... the file INSTALL inside the rpm file doesn't contain ... spec file, and figure out how it works. ... "rpmbuild -ba" command, and their commands are not used when the binary ...
      (comp.os.linux.misc)
    • Re: Dependencies
      ... Should you install it or no? ... RPM is just a low-level tool that does one thing and that one ... If getting the GPG keys causes you heartburn, ... > To stay in the RPM subject, Apache give keys for their tarball versions. ...
      (linux.redhat)