Is there any alternatives for yum autoremove
in rpm
or zypper
? (openSUSE doesnt have yum)
I need it because zypper installs recommended packages by default and often doesnt clean them automatically
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityIs there any alternatives for yum autoremove
in rpm
or zypper
? (openSUSE doesnt have yum)
I need it because zypper installs recommended packages by default and often doesnt clean them automatically
zypper
doesn't seem to have an exact match, but:
To remove a package with its (unneeded) dependencies:
zypper rm --clean-deps <package>
To find packages that are probably not needed anymore:
zypper packages --unneeded
as an addition to the answer by Chris:
check the lists in
zypper packages --installed-only --suggested
and
zypper packages --installed-only --recommended
most likely there is some stuff pulled-in by recommended/suggested deps which is "unneeded" for your particular configuration
If asking dependencies to uninstall a single package. Then run below command. It will skip dependencies and only target rpm will remove only.
rpm -e packagename --nodeps