Professional Web Applications Themes

rpm - the prerequisites before installing package? - Linux Setup, Configuration & Administration

Dear experts, I'm still wondering how to figure out what the prerequisites are before installing a package. So, you can investigate what packages, libraries, etc. are required first. Instead of using trial and error. Suse has a great gui tool in Yast. You click on the package you are thinking of installing, and it shows the: - info on the package - what it requires - what it prerequires But, I can't seem to get this to work. (I do know that this package requires a lot.) rpm -q --whatprovides gnome-system-monitor-2.0.4-25.src.rpm no package provides gnome-system-monitor-2.0.4-25.src.rpm rpm -q --provides gnome-system-monitor-2.0.4-25.src.rpm package ...

  1. #1

    Default rpm - the prerequisites before installing package?

    Dear experts,

    I'm still wondering how to figure out what the prerequisites
    are before installing a package. So, you can investigate what
    packages, libraries, etc. are required first.
    Instead of using trial and error.

    Suse has a great gui tool in Yast. You click on
    the package you are thinking of installing, and
    it shows the:
    - info on the package
    - what it requires
    - what it prerequires

    But, I can't seem to get this to work. (I do know that
    this package requires a lot.)

    rpm -q --whatprovides gnome-system-monitor-2.0.4-25.src.rpm
    no package provides gnome-system-monitor-2.0.4-25.src.rpm

    rpm -q --provides gnome-system-monitor-2.0.4-25.src.rpm
    package gnome-system-monitor-2.0.4-25.src.rpm is not installed

    rpm -q --requires gnome-system-monitor-2.0.4-25.src.rpm
    package gnome-system-monitor-2.0.4-25.src.rpm is not installed

    rpm -q --whatrequires gnome-system-monitor-2.0.4-25.src.rpm
    no package requires gnome-system-monitor-2.0.4-25.src.rpm

    rpm -q --prerequires gnome-system-monitor-2.0.4-25.src.rpm
    --prerequires: unknown option

    Does anyone know the syntax?

    Thanks
    linuxquestion@yahoo.com Guest

  2. #2

    Default Re: rpm - the prerequisites before installing package?

    com wrote: 

    Do it the easy way:

    rpm -i --test whatever-1.0.rpm

    If you have all the dependencies covered this command will
    just complete with no output. (It won't actually do
    anything, it will just "test" to see what would happen.) If
    you have unresolved dependencies it will tell you.

    Bonus: If all dependencies are covered you can just recall
    the command (up-arrow in bash), delete "--test" and press
    enter and it's installed.


    BTW, crossposting to 5 newsgroups without setting the
    followup-to header is somewhat frowned upon.

    Followup-to: comp.os.linux.redhat

    --
    Kevin D. Snodgrass
    kdsnodgrass (at) yahoo [dot] com

    Kevin Guest

  3. #3

    Default Re: rpm - the prerequisites before installing package?

    In comp.os.linux.misc com wrote: 
     
     
     
     

    That's bogus, you query an uninstalled rpm using the "-p" switch,
    but then a src rpm won't go into the rpm db and does not have any
    perquisites to install, there is the .spec file, sources and
    additional patches in the src.rpm package, everything will be
    installed in /usr/src/packages, /usr/src/redhat or wherever your
    distro is placing src.rpm.

    I'd suggest to get/read the maximum-rpm guide, try a google search.

    --
    Michael Heiming

    Remove +SIGNS and www. if you expect an answer, sorry for
    inconvenience, but I get tons of SPAM
    Michael Guest

  4. #4

    Default Re: rpm - the prerequisites before installing package?

    |I'm still wondering how to figure out what the prerequisites
    |are before installing a package. So, you can investigate what
    |packages, libraries, etc. are required first.
    |Instead of using trial and error.
    |
    |Suse has a great gui tool in Yast. You click on
    |the package you are thinking of installing, and
    |it shows the:
    |- info on the package
    |- what it requires
    |- what it prerequires
    |
    |But, I can't seem to get this to work. (I do know that
    |this package requires a lot.)

    Just go ahead and install it and YaST will propose to install all the
    dependencies, direct and indirect, so you say yes to that.
    --

    eiszf@rqbrpj.com Guest

  5. #5

    Default Re: rpm - the prerequisites before installing package?

    On 20 Dec 2003 23:16:28 -0800, com wrote:
     

    .... you could opt to install the package, using the
    '--test' switch to see what it *would* do (and report)

    --
    << http://michaeljtobler.homelinux.com/ >>
    "Nuclear war would really set back cable." - Ted Turner
    mjt Guest

  6. #6

    Default Re: rpm - the prerequisites before installing package?

    On Sun, 21 Dec 2003 14:06:00 GMT, com wrote:
     

    .... and what will yast do if the dependencies are outside
    of yast's domain, such as some third party component?

    --
    << http://michaeljtobler.homelinux.com/ >>
    One difference between a man and a machine is
    that a machine is quiet when well oiled.
    mjt Guest

  7. #7

    Default Re: rpm - the prerequisites before installing package?

    com wrote:
     
     

    rpm -qp --requires packagefile.rpm

    --
    Markku Kolkka
    fi
    Markku Guest

  8. #8

    Default Re: rpm - the prerequisites before installing package?

    On 20 Dec 2003 23:16:28 -0800, com wrote: 

    rpm -Uvh --test *.rpm


    Bit Guest

  9. #9

    Default Re: rpm - the prerequisites before installing package?

    |> Just go ahead and install it and YaST will propose to install all the
    |> dependencies, direct and indirect, so you say yes to that.
    |
    |... and what will yast do if the dependencies are outside
    |of yast's domain, such as some third party component?

    In that case YaST is not suitable. But I suspect the OP was making
    things harder than they are.
    --

    owfqbd@feguks.com Guest

  10. #10

    Default Re: rpm - the prerequisites before installing package?


    <com> wrote in message
    news:google.com... 

    Umm. That's because you're asking about an installed package named
    "gnome-system-monitor-2.0.4-25.src.rpm
    ", not the local file. And it's very tough to even guess from an SRPM what
    might be needed: the RPM construction process itself is what generates the
    list of provided libraries, files, and the dependencies. And you absolutely
    *CANNOT* tell what may require a package just from the packe source file: my
    glibc library package cannot know in advance what packages may make use of
    and depend on it.

    But you can try "rpm -q --whatrequires gnome-system-monitor" and similar
    questions.


    Nico Guest

  11. #11

    Default Re: rpm - the prerequisites before installing package?

    Well, I did some more experimenting. I think that Nico is right.
    It's (most probably) not possible to query the src file, and
    get the info cleanly. You are probably still stuck with trial
    and error --test. :(

    I tried some of the queries, but still couldn't get the list
    of prerequisites.

    rpm -q --whatprovides gnome-system-monitor-2.0.4-25.src.rpm
    no package provides gnome-system-monitor-2.0.4-25.src.rpm

    rpm -q --provides gnome-system-monitor-2.0.4-25.src.rpm
    package gnome-system-monitor-2.0.4-25.src.rpm is not installed

    rpm -q --requires gnome-system-monitor-2.0.4-25.src.rpm
    package gnome-system-monitor-2.0.4-25.src.rpm is not installed

    rpm -q --whatrequires gnome-system-monitor
    no package requires gnome-system-monitor

    rpm -q --whatrequires gnome-system-monitor-2.0.4-25.src.rpm
    no package requires gnome-system-monitor-2.0.4-25.src.rpm


    rpm -q --prerequires gnome-system-monitor-2.0.4-25.src.rpm
    --prerequires: unknown option


    However, an interesting thing. I had tried to install this
    package, got errors, and it didn't install. I found the
    temp subdirectories that it used during installation:

    find / -type f | grep -i gnome-system

    /home/suse/src/gnome-system-monitor-2.0.4-25.src.rpm
    find: /proc/1914/fd/4: No such file or directory
    /usr/src/redhat/BUILD/gnome-system-monitor-2.0.4/Makefile.in
    ....
    /usr/src/redhat/BUILD/gnome-system-monitor-2.0.4/config.log

    /usr/src/redhat/SOURCES/gnome-system-monitor-2.0.4.tar.bz2
    /usr/src/redhat/SPECS/gnome-system-monitor.spec

    --------------

    The interesting thing was this file:
    /usr/src/redhat/SPECS/gnome-system-monitor.spec

    It looks like the installation script and had some VERY
    long lines showing "neededforbuild" and "usedforbuild"

    # neededforbuild alsa alsa-devel atk atk-devel audiofile bonobo-activation ...

    # usedforbuild aaa_base acl attr bash bind9-utils bison coreutils cpio ...

    That's the closest I came to the answer.

    ---------------

    Also interestingly, I tried to erase the file, but it didn't work.
    Unless it is already installed, it doesn't look like you can erase it.

    rpm --erase gnome-system-monitor
    error: package gnome-system-monitor is not installed


    Again, I hope this helps anyone who has the same question.

    ------------------

    "Nico Kadel-Garcia" <net> wrote in message news:<com>... 
    >
    > Umm. That's because you're asking about an installed package named
    > "gnome-system-monitor-2.0.4-25.src.rpm
    > ", not the local file. And it's very tough to even guess from an SRPM what
    > might be needed: the RPM construction process itself is what generates the
    > list of provided libraries, files, and the dependencies. And you absolutely
    > *CANNOT* tell what may require a package just from the packe source file: my
    > glibc library package cannot know in advance what packages may make use of
    > and depend on it.
    >
    > But you can try "rpm -q --whatrequires gnome-system-monitor" and similar
    > questions.[/ref]
    linuxquestion@yahoo.com Guest

  12. #12

    Default Re: rpm - the prerequisites before installing package?

    com wrote: 

    Try this:

    rpm -qp --requires gnome-system-monitor-2.0.4-25.src.rpm


    Notice the first arg, "-qp". That makes rpm check a package
    that isn't currently installed.

    --
    Kevin D. Snodgrass
    kdsnodgrass (at) yahoo [dot] com

    Kevin Guest

  13. #13

    Default Re: rpm - the prerequisites before installing package?

    This is the result:

    rpm -qp gnome-system-monitor-2.0.4-25.src.rpm
    gnome-system-monitor-2.0.4-25

    rpm -qp --requires gnome-system-monitor-2.0.4-25.src.rpm
    - nothing

    No prerequisites at all. I'm expecting a huge list.

    Have you tried this command combination before?



    "Kevin D. Snodgrass" <net> wrote in message news:<net>... 
    >
    > Try this:
    >
    > rpm -qp --requires gnome-system-monitor-2.0.4-25.src.rpm
    >
    >
    > Notice the first arg, "-qp". That makes rpm check a package
    > that isn't currently installed.[/ref]
    linuxquestion@yahoo.com Guest

  14. #14

    Default Re: rpm - the prerequisites before installing package?

    In comp.os.linux.setup com wrote: 
     
     
     

    Mmh, did already answer this question over a week ago in this
    thread, but then if you don't read the answers you get.

    --
    Michael Heiming

    Remove +SIGNS and www. if you expect an answer, sorry for
    inconvenience, but I get tons of SPAM
    Michael Guest

  15. #15

    Default Re: rpm - the prerequisites before installing package?

    <com> wrote in message
    news:google.com... 

    WORKSFORME. Just grabbed the version of gnome-system-monitor I had sitting
    around.

    [whoopersnowball RPMS]$ rpm -qp --requires
    gnome-system-monitor-2.4.0-1.i386.rpm
    /bin/sh
    libICE.so.6
    libORBit-2.so.0
    libSM.so.6
    libart_lgpl_2.so.2
    libatk-1.0.so.0
    libbonobo-2.so.0
    libbonobo-activation.so.4
    libbonoboui-2.so.0
    libc.so.6
    libc.so.6(GLIBC_2.0)
    libc.so.6(GLIBC_2.1)
    libc.so.6(GLIBC_2.2)
    libdl.so.2
    libgconf-2.so.4
    libgdk-x11-2.0.so.0
    libgdk_pixbuf-2.0.so.0
    libglib-2.0.so.0
    libgmodule-2.0.so.0
    libgnome-2.so.0
    libgnomecanvas-2.so.0
    libgnomeui >= 2.2.0
    libgnomeui-2.so.0
    libgnomevfs-2.so.0
    libgobject-2.0.so.0
    libgthread-2.0.so.0
    libgtk-x11-2.0.so.0
    libgtop-2.0.so.0
    libgtop2 >= 2.0.3
    libgtop_common-2.0.so.0
    libgtop_sysdeps-2.0.so.0
    libm.so.6
    libpango-1.0.so.0
    libpangoft2-1.0.so.0
    libpangox-1.0.so.0
    libpangoxft-1.0.so.0
    libpopt.so.0
    libpthread.so.0
    libpthread.so.0(GLIBC_2.0)
    libstartup-notification-1.so.0
    libwnck >= 2.2.0
    libwnck-1.so.4
    libxml2.so.2
    libz.so.1
    rpmlib(CompressedFileNames) <= 3.0.4-1
    rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    [whoopersnowball RPMS]$

    --
    William Hooper

    Give a man a match, you keep him warm for an evening.
    Light him on fire, he's warm for the rest of his life.


    William Guest

  16. #16

    Default Re: rpm - the prerequisites before installing package?

    |rpm -qp gnome-system-monitor-2.0.4-25.src.rpm
    |gnome-system-monitor-2.0.4-25
    |
    |rpm -qp --requires gnome-system-monitor-2.0.4-25.src.rpm
    |- nothing
    |
    |No prerequisites at all. I'm expecting a huge list.

    There are obviously no prerequisites for a SOURCE package. It's the
    binary package you should run rpm on.
    --

    skbzhq@cpqfxj.com Guest

Similar Threads

  1. Replies: 2
    Last Post: August 21st, 09:21 PM
  2. installing a specific package
    By dominant in forum PERL Modules
    Replies: 3
    Last Post: August 22nd, 12:15 PM
  3. Installing a package without overwriting files
    By Johan Parin in forum Debian
    Replies: 1
    Last Post: August 5th, 11:20 AM
  4. .NET Training order / prerequisites
    By Bari Allen in forum Microsoft Access
    Replies: 1
    Last Post: July 24th, 07:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139