What | Removed | Added |
---|---|---|
CC | hans@schwimmbeck.de |
Because there is no equivalent to Debians apt autoremove in openSUSE, I made a little script which tries to mimic it and resides as zypper_autoremove in /usr/local/bin. ----------------- #!/bin/sh zypper rm -u $(zypper pa --unneeded | grep 'i |' | cut -d'|' -f3 | tr -d ' ' | uniq | tr '\n' ' ') ----------------- The command in brackets prints a list of unneeded packages separated by blanks. This list can be used by "zypper rm -u" to remove the packages recursively. It has to be run as root and should work as long as the output format of "zypper pa --unneeded" does not change. Of course it should be used with care! An "official" solution would be very much appreciated.