Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: list files in package using zypper

  1. #1

    Default list files in package using zypper

    When i nned to know all the files on an installed package I used to do

    Code:
    rpm -qa |grep package
    rpm -ql  package
    Now I'm trying to do it with zypper but I can find the way. There is a way?

    regards

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,964

    Default Re: list files in package using zypper

    I guess you studied the man page of zypper for it. I only glanced through it and could not find such a function.

    That is not strange IMHO. zypper is about package management. Not about RPM management.
    I wonder why you are not satisfied with the RPM commands. Why another way to achieve what already exists?
    Henk van Velden

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,046
    Blog Entries
    2

    Default Re: list files in package using zypper

    This is one of the functions often commented as "missing" from zypper, I also submitted a bugzilla feature request recently(I'm sure I'm not the first to request the feature) but the result was that if it can be done well using the rpm command, then there is no need to implement in zypper.

    Regardless your thoughts on whether it should also be possible in zypper, here is the rpm command:

    Code:
    # rpm -qpl file.rpm
    Personally, IMO this is one of the most important package queries, it's the starting point for a number of tasks including...

    Modifying config files (where are they?)
    Finding related documentation installed part of the package
    If not installed in a PATH, then how to find the executable
    Path to be used if creating a Desktop shortcut

    TSU

  4. #4
    Join Date
    Sep 2012
    Posts
    5,380

    Default Re: list files in package using zypper

    Quote Originally Posted by hcvv View Post
    Why another way to achieve what already exists?
    Personally I miss the ability to query for files in not installed packages. urpmi (Mandrake and its derivatives) offers elaborate queries on package database. Like queries what provides or requires specific feature. Effectively urpmi allows almost any query that can be used by RPM.

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,046
    Blog Entries
    2

    Default Re: list files in package using zypper

    Quote Originally Posted by arvidjaar View Post
    Personally I miss the ability to query for files in not installed packages. urpmi (Mandrake and its derivatives) offers elaborate queries on package database. Like queries what provides or requires specific feature. Effectively urpmi allows almost any query that can be used by RPM.
    Zypper supports those kinds of queries well, also.

    Just a few aren't supported that would round out and complete the idea that you might be able to use zypper for everything (You can't).

    TSU

  6. #6
    Join Date
    Sep 2012
    Posts
    5,380

    Default Re: list files in package using zypper

    Quote Originally Posted by tsu2 View Post
    Zypper supports those kinds of queries well, also.
    How can I list files in a package (from repository, of course) that is not installed?

  7. #7
    Join Date
    Jun 2008
    Location
    Wola (PL)
    Posts
    64

    Default Re: list files in package using zypper

    arvidjaar wrote:

    >
    > tsu2;2514285 Wrote:
    >>
    >> Zypper supports those kinds of queries well, also.

    >
    > How can I list files in a package (from repository, of course) that is
    > not installed?
    >
    >

    You can't.
    --
    Pozdrawiam / Greetings,
    Mariusz Fik
    openSUSE Community Member
    openSUSE 12.2 Rocks!

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: list files in package using zypper

    On 2013-01-02 01:47, Fisiu wrote:
    > arvidjaar wrote:
    >
    >>
    >> tsu2;2514285 Wrote:
    >>>
    >>> Zypper supports those kinds of queries well, also.

    >>
    >> How can I list files in a package (from repository, of course) that is
    >> not installed?
    >>
    >>

    > You can't.
    >


    You may, to some extent, using "pin".

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

  9. #9
    Join Date
    Jun 2008
    Location
    Wola (PL)
    Posts
    64

    Default Re: list files in package using zypper

    Carlos E. R. wrote:

    > On 2013-01-02 01:47, Fisiu wrote:
    >> arvidjaar wrote:
    >>
    >>>
    >>> tsu2;2514285 Wrote:
    >>>>
    >>>> Zypper supports those kinds of queries well, also.
    >>>
    >>> How can I list files in a package (from repository, of course) that is
    >>> not installed?
    >>>
    >>>

    >> You can't.
    >>

    >
    > You may, to some extent, using "pin".
    >


    Pin:
    | searches the installed packages (rpm -qi, -ql) and/or
    | the ARCHIVES.gz file for the desired information. It
    | shows also README, README.SuSE, FAQ, when available.

    You mean 'webpin'? Then it's possible to find package which contains desired
    file but still no possible to list all files from not installed package.
    --
    Pozdrawiam / Greetings,
    Mariusz Fik
    openSUSE Community Member
    openSUSE 12.2 Rocks!

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,982
    Blog Entries
    1

    Default Re: list files in package using zypper

    Quote Originally Posted by Fisiu View Post
    arvidjaar wrote:

    >
    > tsu2;2514285 Wrote:
    >>
    >> Zypper supports those kinds of queries well, also.

    >
    > How can I list files in a package (from repository, of course) that is
    > not installed?
    >
    >

    You can't.
    --
    Pozdrawiam / Greetings,
    Mariusz Fik
    openSUSE Community Member
    openSUSE 12.2 Rocks!
    I agree that it would be useful to have this kind of functionality with zypper - Along the lines of repoquery...

Page 1 of 2 12 LastLast

Posting Permissions

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