Linux

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • How to add an entry in the rpm database (without a package on hand)

    5 answers - 441 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi All,
    As the subject says, I'd like to add an entry into the rpm database without
    actually having that package on hand. I'm looking for tips on how to do
    this.
    (this isn't a install/update case where -nodeps would do, there's some
    software looking for an entry in the rpm db)
    Thank you in advance,
    Andrew
    Rpm-list mailing list
    Rpm-list (AT) redhat (DOT) com
  • No.1 | | 660 bytes | |

    Nov 15, 2006, at 11:33 AM, Andrew Ross wrote:

    Hi All,
    --
    As the subject says, Id like to add an entry into the rpm database
    without actually having that package on hand. Im looking for tips
    on how to do this.

    (this isnt a install/update case where nodeps would do, theres
    some software looking for an entry in the rpm db)
    --

    The easiest way is to get the package and install with

    , you need to build a package with whatever you want, and
    install.

    Which is really exactly the same as the previous suggestion.

    73 de Jeff

    Rpm-list mailing list
    Rpm-list (AT) redhat (DOT) com
  • No.2 | | 947 bytes | |

    11/15/06, Andrew Ross <grof (AT) rogers (DOT) comwrote:
    >
    >
    >

    Thanks for the quick reply Jeff.
    >
    >
    >

    I was wondering if it were possible to add an entry without an rpm, or
    creating an rpm at all. I guess not.
    >
    >
    >

    The issue is that the RPM database is literally an indexed collection
    of rpm headers. Basically the same header that is in the package.
    So in order to add an "entry" as you call it you must have a header.
    There are portions of the API that one could use to generate a header
    and add the said header the DB, but I have no idea what the minimum
    information is that would be required to create this header, and
    suspect you would have a bear of a time getting this working.

    Cheersjames

    Rpm-list mailing list
    Rpm-list (AT) redhat (DOT) com
  • No.3 | | 1205 bytes | |

    I assume you want to satisfy some requires from some other packages,
    although you mentioned without rpm and/or creating one, here is how easy
    it is to bypass using and satisfy whatever requirements that
    other package has, assuming you really want to bypass the requirements,
    here is a minimal spec file, say something like dummy.spec, build it as
    root or non-root with the following stanza:

    rpmbuild '_rpmdir /tmp' -bb dummy.spec

    you should end up with something like:

    Wrote: /

    install it with (you may need to be root here though):

    rpm -Uvh /

    here is the sample spec file:

    # spec file starts
    Name: dummy
    Version:1.0.0
    Release:1.0.0
    Vendor:dummy
    Group:dummy
    Summary: Provides %{name}
    License:%{vendor}
    # in Provides: you add whatever you want to fool the system
    Provides:another-dummy >= 3.4.5-6.7.8
    Provides:yet-another-dummy =< 3.4.5
    Provides:also-dummy
    Buildroot:%{_tmppath}/%{name}-%{version}-root

    %description
    %{summary}

    %files
    # spec file ends

    I was wondering if it were possible to add an entry without an rpm, or
    creating an rpm at all. I guess not.
  • No.4 | | 954 bytes | |

    11/15/06, Igor Pasemnik <ipasemnik (AT) liquidcomputing (DOT) comwrote:
    I assume you want to satisfy some requires from some other packages,
    although you mentioned without rpm and/or creating one, here is how easy
    it is to bypass using and satisfy whatever requirements that
    other package has, assuming you really want to bypass the requirements,
    here is a minimal spec file, say something like dummy.spec, build it as
    root or non-root with the following stanza:

    I was making this really hard. This is a much easier solution.
    Hmmmsome times you have to with their problem rather than the
    question they asked.

    Yeah, and one could with a little creativity wrap this up in a simple
    shell script that
    creates the package on the fly and installs, so this user could have:

    addRPMEntry some_silly_requirement

    Cheersjames

    Rpm-list mailing list
    Rpm-list (AT) redhat (DOT) com
  • No.5 | | 1041 bytes | |

    11/15/06, James <james.oden (AT) gmail (DOT) comwrote:
    11/15/06, Igor Pasemnik <ipasemnik (AT) liquidcomputing (DOT) comwrote:
    I assume you want to satisfy some requires from some other packages,
    although you mentioned without rpm and/or creating one, here is how easy
    it is to bypass using and satisfy whatever requirements that
    other package has, assuming you really want to bypass the requirements,
    here is a minimal spec file, say something like dummy.spec, build it as
    root or non-root with the following stanza:

    I was making this really hard. This is a much easier solution.
    Hmmmsome times you have to with their problem rather than the
    question they asked.

    Yeah, and one could with a little creativity wrap this up in a simple
    shell script that
    creates the package on the fly and installs, so this user could have:

    addRPMEntry some_silly_requirement
    --
    Attached is a hand grenadeenjoyjames

    Rpm-list mailing list
    Rpm-list (AT) redhat (DOT) com

Re: How to add an entry in the rpm database (without a package on hand)


max 4000 letters.
Your nickname that display:
In order to stop the spam: 2 + 1 =
QUESTION ON "Linux"

EMSDN.COM