Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 38

Thread: List all installed packages?

  1. #21

    Default Re: List all installed packages?

    Quote Originally Posted by wolfi323 View Post
    I did understand you, but I don't think there is a way to do what you want with YaST or zypper.
    I see

    Quote Originally Posted by wolfi323
    Even the history only states whether a package got installed or removed, not why.
    Surely it must keep track of that information somehow though. For example, consider the following 2 scenarios.

    Scenario 1. Lets say I install Vim using zypper. Then, later on I install another application that uses Vim as a dependency (GVim for example). If I uninstall GVim, it should leave Vim installed because it was not originally installed as a dependency for GVim.

    Scenario 2. Lets say I install GVim using zypper. It should automatically install Vim as a dependency for it. Then, later on when I remove GVim, it should automatically uninstall Vim as well, because it was installed as a dependency for GVim and is no longer needed.

    In order for scenario 1 to work at all, zypper has to know what the initial reason for installing Vim was (dependency vs explicit). I'm not in front of my openSUSE installation right now so I can't test scenario 1, but I'd be a little horrified to find that zypper removes explicitly installed applications just because I removed another explicitly installed application which has it listed as a dependency.

    Quote Originally Posted by wolfi323
    You could maybe parse the log file (/var/log/zypper.log) somehow to get that information, but I'm not aware of any existing application/script that would do that and present you a list like you want.
    I'll definitely take a look. I might write my own script if I necessary.

    Quote Originally Posted by wolfi323
    You might want to file a feature request at http://fate.opensuse.org/.
    I'll do that. Thanks!

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

    Default Re: List all installed packages?

    On 2014-02-27 18:26, kalantir wrote:
    >
    > wolfi323;2627476 Wrote:
    >> But IIUYC, you could have a look at "rpmorphan" (included in the
    >> standard repo). That might just do what you want.
    >> http://rpmorphan.sourceforge.net/

    > I'll take a look at that, but I'm really not looking for orphans.
    > Explicitly installed packages should not ever be treated as orphans
    > since the user went out of their way to make sure it was installed.


    But you see, when you tell the installer that you want to install, say,
    KDE, or Gnome, or XFCE, those desktops were intentionally installed. You
    only clicked once, on KDE, for instance, but that in fact selects a few
    patterns, and those bring hundreds of packages. All of them
    intentionally installed.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  3. #23

    Default Re: List all installed packages?

    Quote Originally Posted by kalantir View Post
    Scenario 1. Lets say I install Vim using zypper. Then, later on I install another application that uses Vim as a dependency (GVim for example). If I uninstall GVim, it should leave Vim installed because it was not originally installed as a dependency for GVim.

    Scenario 2. Lets say I install GVim using zypper. It should automatically install Vim as a dependency for it. Then, later on when I remove GVim, it should automatically uninstall Vim as well, because it was installed as a dependency for GVim and is no longer needed.

    In order for scenario 1 to work at all, zypper has to know what the initial reason for installing Vim was (dependency vs explicit). I'm not in front of my openSUSE installation right now so I can't test scenario 1, but I'd be a little horrified to find that zypper removes explicitly installed applications just because I removed another explicitly installed application which has it listed as a dependency.
    It does not uninstall anything else by default when you uninstall gvim.

    There's the --clean-deps option which would uninstall all unneeded dependencies, but I have no idea how that works. (I never used that myself)

    Btw, apparently zypper does remember how a package got installed.
    The history file (/var/log/zypp/history) contains lines such as:
    Code:
    2014-02-27 17:56:18|install|kernel-default-devel|3.11.10-7.1|x86_64||repo-update|d329f54734413a14581659752e93dc55f34f6545fed5d459d2acf6f99239ae52|
    2014-02-27 17:56:24|install|kernel-xen-devel|3.11.10-7.1|x86_64||repo-update|073cdfa67e7d2e31982e48b20f4c8573c92486e5a07da059089632631556fa97|
    2014-02-27 17:56:25|install|kernel-syms|3.11.10-7.1|x86_64|root@amiga|repo-update|fc636271cfc13eaf80e8634c63b7166d487f3bd1de67ad247ccc5bfeac5b1962|
    The part marked in red specifies who installed the package. In this case I (root@amiga) called "zypper in kernel-syms", so the kernel-syms line has "root@amiga". The other two packages got installed automatically as dependencies, they have an empty field (could also be "pid:app", i.e. the process-id and application if known).

    For --clean-deps apparently only packages without a user name in that sixth field are uninstalled.
    I found this information in this bug report:
    https://bugzilla.novell.com/show_bug.cgi?id=679213
    Last edited by wolfi323; 27-Feb-2014 at 11:49.

  4. #24

    Default Re: List all installed packages?

    On 02/27/2014 12:06 PM, kalantir pecked at the keyboard and wrote:
    > wolfi323;2627423 Wrote:
    >> Well, "unneeded" just means that no other package requires it.
    >>

    > So I was right. It does not appear to me that this is really the case
    > based on the output I posted above though.
    >
    >> I don't know exactly what criterias libzypp uses to decide which
    >> packages are "unneeded" though.
    >> But it looks like it also takes Suggests and Recommends into account and
    >> doesn't consider recommended/suggested packages as "unneeded".
    >>

    > Well that's really unfortunate. Is there any way at all for me to list
    > only explicitly installed packages (meaning it wasn't installed as a
    > dependency. It was installed explicitly through the package manager by
    > the user)


    Short answer, /*NO*/.
    There will need to be some interaction on your part to fond out what was
    installed and when. Since the only user that can install *any* package
    is /*root*/ you will never find out who physically sat at the keyboard
    and installed a package explicitly unless you are the only user with
    access to the physical machine. Unlike MS Windows ordinary users do not
    have the ability to use any form of the package manager. This is where
    linux's core security comes from.
    > which are not required by other applications (for
    > clarification, it's important to note that an explicitly installed
    > application can still be required by another application that the user
    > installed later)?


    Again, only the user root can install rpm packages for system wide use.

    Ken

  5. #25

    Default Re: List all installed packages?

    Quote Originally Posted by robin_listas View Post
    But you see, when you tell the installer that you want to install, say,
    KDE, or Gnome, or XFCE, those desktops were intentionally installed. You
    only clicked once, on KDE, for instance, but that in fact selects a few
    patterns, and those bring hundreds of packages. All of them
    intentionally installed.
    Yes, I would very much like for those packages to show up in my query minus the packages which are required as dependencies for other packages. For example, there are definitely KDE packages which are required as dependencies by other KDE packages. What I'm trying to do would filter those ones out and only show me the relevant ones (the ones that aren't required as dependencies). The ability to do this is what led me to trim down my KDE installation on Arch. I have a relatively small hard drive (less than 100GB) and trimming down KDE alone saves me a significant amount of space.

  6. #26

    Default Re: List all installed packages?

    Quote Originally Posted by kensch View Post
    On 02/27/2014 12:06 PM, kalantir pecked at the keyboard and wrote:
    Again, only the user root can install rpm packages for system wide use.
    I sincerely believe that you have completely misunderstood what I'm asking about on every level. In either case I think I have the answers I need now. I'll either have to write my own script to parse /var/log/zypp/history and/or file a feature request to add this feature (and probably a few others). More likely I'll just try out Chakra. That's the other KDE-centric distro I've been meaning to give a proper go.

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

    Default Re: List all installed packages?

    On 2014-02-27 19:26, kalantir wrote:

    > Scenario 2. Lets say I install GVim using zypper. It should
    > automatically install Vim as a dependency for it. Then, later on when I
    > remove GVim, it should automatically uninstall Vim as well, because it
    > was installed as a dependency for GVim and is no longer needed.


    There is an experimental feature in YaST, named "cleanup when deleting
    packages". It claims to do just that, but it knows noting about
    intentionally installed or not. I think it just attempts to remove
    whatever the package you click on lists as dependencies, and keeps them
    if some other package claims them as dependencies.

    It has been there for some releases, but it has been little tested.

    Then there is another related feature, "show history". It parses
    "/var/log/history". In my system it is broken, it stops reading at June
    2013.
    [...]
    Ok, I found why. I have to report a bug.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

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

    Default Re: List all installed packages?

    On 2014-02-27 20:06, kalantir wrote:
    >
    > robin_listas;2627490 Wrote:
    >>
    >> But you see, when you tell the installer that you want to install, say,
    >> KDE, or Gnome, or XFCE, those desktops were intentionally installed. You
    >> only clicked once, on KDE, for instance, but that in fact selects a few
    >> patterns, and those bring hundreds of packages. All of them
    >> intentionally installed.
    >>

    > Yes, I would very much like for those packages to show up in my query
    > minus the packages which are required as dependencies for other
    > packages. For example, there are definitely KDE packages which are
    > required as dependencies by other KDE packages. What I'm trying to do
    > would filter those ones out and only show me the relevant ones (the ones
    > that aren't required as dependencies). The ability to do this is what
    > led me to trim down my KDE installation on Arch. I have a relatively
    > small hard drive (less than 100GB) and trimming down KDE alone saves me
    > a significant amount of space.


    But the design goal of openSUSE is not small systems. Certainly not if
    you install the KDE pattern.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  9. #29

    Default Re: List all installed packages?

    Quote Originally Posted by robin_listas View Post
    There is an experimental feature in YaST, named "cleanup when deleting
    packages". It claims to do just that, but it knows noting about
    intentionally installed or not. I think it just attempts to remove
    whatever the package you click on lists as dependencies, and keeps them
    if some other package claims them as dependencies.
    I'm thinking that the openSUSE package management isn't really for me. I can appreciate what has been done in terms of KDE-related patches, but I don't think the package manager was designed with users like me in mind. I will probably recommend it to other people who want a nice KDE experience out of the box though.

  10. #30

    Default Re: List all installed packages?

    Ken Schneider wrote:
    > Since the only user that can install *any* package
    > is /*root*/ you will never find out who physically sat at the keyboard
    > and installed a package explicitly unless you are the only user with
    > access to the physical machine.


    Creating such a log is what sudo is for, when correctly configured.

Page 3 of 4 FirstFirst 1234 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
  •