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

Thread: Remove unused packages with zypper or yast

  1. #1

    Default Remove unused packages with zypper or yast

    Is there a way to accomplish this? I don't see it in the man pages.

  2. #2
    palladium NNTP User

    Default Re: Remove unused packages with zypper or yast

    devnullv2 wrote:
    > Is there a way to accomplish this? I don't see it in the man pages.


    i'm running 10.3 which has a different zypper man than do the later
    versions (_guess_ you are not using 10.3?), but my man zypper says:

    remove (rm) [options] <name>

    so, just make the list of packages/applications you don't use and then
    put them into this CLI formula, one at a time in the "name"
    position...you probably need to look at the man's options:

    zypper rm [options] <name>

    --
    palladium

  3. #3

    Default Re: Remove unused packages with zypper or yast

    Actually, let me clarify.

    Removing packages isn't a problem.

    I want to remove all unused packages. Apt in ubuntu/debian, i believe pacman in Arch, and aptitude all can keep track of what libraries and such are no longer in use by any application and they have commands where you can simply remove all packages not in use by the system without you having to go through and compile a list (which would next to impossible).

    Also, does anyone know if there's a cli front end to search/download/install packages from the build service?

  4. #4

    Post Re: Remove unused packages with zypper or yast

    Quote Originally Posted by devnullv2 View Post
    I want to remove all unused packages. Apt in ubuntu/debian, i believe pacman in Arch, and aptitude all can keep track of what libraries and such are no longer in use by any application and they have commands where you can simply remove all packages not in use by the system without you having to go through and compile a list (which would next to impossible).
    Actually it is slightly more complex.
    But no, there is no an autoremove option for zypper or YaST. I don't really miss it, and so I forgot about it, but I was expecting it to be available for 11.2... Perhaps for 11.3.

    Quote Originally Posted by devnullv2 View Post
    Also, does anyone know if there's a cli front end to search/download/install packages from the build service?
    You can do more or less that with webpin and osc.

  5. #5
    palladium NNTP User

    Default Re: Remove unused packages with zypper or yast

    devnullv2 wrote:
    > all can keep track of what libraries and
    > such are no longer in use by any application


    hmmmm, sounds like a tracking program keeps a list of untouched for
    xxx days stuff..

    as far as i know that feature is not here, but i do not know for sure
    (disk space is pretty darn inexpensive these days...why don't you log
    it in openFATE and see if it gets put into our bag of tricks..

    > Also, does anyone know if there's a cli front end to
    > search/download/install packages from the build service?


    you, mean like zypper?
    just add the interesting build service repo and let'er rip!

    be aware, though that you can get conflicting packages from the
    different repos and really gum up the works that way...there is sound
    advice withing some noob stickies (and other places) to stick to the
    four primary repos, unless you know how to resolve problems you
    introduce by enabling more..

    or, maybe you are looking for this, where you can read up on all
    aspects of the Build Service: http://en.opensuse.org/Build_Service

    --
    palladium

  6. #6

    Default Re: Remove unused packages with zypper or yast

    hmmmm, sounds like a tracking program keeps a list of untouched for
    xxx days stuff..

    as far as i know that feature is not here, but i do not know for sure
    (disk space is pretty darn inexpensive these days...why don't you log
    it in openFATE and see if it gets put into our bag of tricks..
    I think it's really more of a dependency tracker, keeping up with how many (if any) apps symlink against a particular package or not, but i'm sure it's a bit more complicated than that.

  7. #7
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: Remove unused packages with zypper or yast

    this has been requested on openFATE but it will not be present in 11.2

    https://features.opensuse.org/300758

  8. #8
    palladium NNTP User

    Default Re: Remove unused packages with zypper or yast

    good find, good info!

    --
    palladium

  9. #9

    Default Re: Remove unused packages with zypper or yast

    Quote Originally Posted by microchip8 View Post
    this has been requested on openFATE but it will not be present in 11.2

    https://features.opensuse.org/300758
    good to know

  10. #10

    Default Re: Remove unused packages with zypper or yast

    Maybe you want to use "rpmorphan".

    But as for any of those "autoremove" features, be careful in what you are doing, even on distributions that claim this as an official feature of their package management there are glitches (though rare).

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
  •