![](https://seccdn.libravatar.org/avatar/cf917cada2f9fa339a7de84795dded5e.jpg?s=120&d=mm&r=g)
On Mon, Apr 18, 2016 at 12:34 PM, Dominique Leuenberger / DimStar <dimstar@opensuse.org> wrote:
On Mon, 2016-04-18 at 12:17 +0200, Olaf Hering wrote:
What are the options to uninstall a removed package? […] So I wonder how to run the 'zypper rm ffmpeg-devel' during 'zypper dup'.
If ffmpeg-devel no longer exists in openSUSE:Factory, it is automatically added as a weakremoves() in the _product and 'zypper dup' takes care of removing it IFF it can be removed without breaking dependencies of other stuff on the system.
I haven't tested the exact case of of "ffmpeg-devel", but after DUPs we're regularly seeing the problem of previous-openSUSE-release packages still being installed, both in the supported one-version DUP case and, unsurprisingly, the unsupported two-or-more-versions DUP case (the latter often causes, unsurprisingly, all other kinds of problems). We're doing our DUPs with a (python-)fabric script; here is an incomplete list of packages we have encountered. Some might be cause be the mentioned two-version DUPs: ------------------------------ 8< ------------------------------ if release_after_dup == '13.1': _rm_if_installed("libblocxx6") # removes "limal", too. _rm_if_installed("libpng15-15") _rm_if_installed("libserf-1-0") _rm_if_installed("libyui-ncurses4") _rm_if_installed("libyui4") _rm_if_installed("limal") # should already be removed by this point, see above. _rm_if_installed("microcode_ctl") _rm_if_installed("yast2-mouse") _rm_if_installed("cpp47") _rm_if_installed("gcc47") _rm_if_installed("kernel-desktop") _rm_if_installed("libarchive12") _rm_if_installed("libcolord1") _rm_if_installed("libicu49") _rm_if_installed("libimobiledevice3") _rm_if_installed("libxtables9") _rm_if_installed("xtables-addons-kmp-default") _rm_if_installed("cantarell-fonts") _rm_if_installed("desktop-translations") _rm_if_installed("ghostscript-x11") _rm_if_installed("gxditview") _rm_if_installed("libX11-xcb1") _rm_if_installed("libXpm-tools") _rm_if_installed("libjpeg62") _rm_if_installed("libply-splash-core2") _rm_if_installed("libproxy1-config-gnome3") _rm_if_installed("ypbind") _rm_if_installed("yp-tools") _rm_if_installed("crda") _rm_if_installed("nfs-client") _rm_if_installed("nfsidmap") _rm_if_installed("wireless-tools") _rm_if_installed("wireless-regdb") _rm_if_installed("xorg-x11-libs") _rm_if_installed("bundle-lang-gnome-de") _rm_if_installed("bundle-lang-gnome-en") _rm_if_installed("bundle-lang-gnome-extras-de") _rm_if_installed("bundle-lang-gnome-extras-en") _rm_if_installed("gnome-icon-theme-extras") _rm_if_installed("fbset") _rm_if_installed("gsettings-backend-dconf") _rm_if_installed("gtk2-immodule-inuktitut") _rm_if_installed("gtk2-immodule-thai") _rm_if_installed("gtk2-immodule-vietnamese") _rm_if_installed("gtk3-immodule-amharic") _rm_if_installed("gtk3-immodule-inuktitut") _rm_if_installed("gtk3-immodule-thai") _rm_if_installed("gtk3-immodule-vietnamese") _rm_if_installed("nscd") _rm_if_installed("libXaw7") _rm_if_installed("libXmu6") _rm_if_installed("ntfs-3g") _rm_if_installed("libntfs-3g83") _rm_if_installed("libyui-ncurses-pkg4") if release_after_dup == '13.2': _rm_if_installed("cryptsetup-mkinitrd") _rm_if_installed("libgcrypt11") _rm_if_installed("libicu51_2") _rm_if_installed("libicu51_2-data") _rm_if_installed("libjson0") _rm_if_installed("libnl1") _rm_if_installed("libprocps1") _rm_if_installed("libyui-ncurses5") _rm_if_installed("libyui5") _rm_if_installed("ruby20") _rm_if_installed("gtk3-theming-engine-adwaita") _rm_if_installed("libplist1") _rm_if_installed("libupower-glib1") _rm_if_installed("libxkbcommon0") _rm_if_installed("gnome-icon-theme") _rm_if_installed("gtk2-metatheme-adwaita") _rm_if_installed("gtk3-metatheme-adwaita") _rm_if_installed("cantarell-fonts") _rm_if_installed("gcr-viewer") _rm_if_installed("gtk2-theming-engine-adwaita") _rm_if_installed("metatheme-adwaita-common") _rm_if_installed("yast2-x11") if release_after_dup == 'Leap_42.1': _rm_if_installed("branding-basedonopensuse") _rm_if_installed("bundle-lang-common-ar") _rm_if_installed("bundle-lang-common-en") _rm_if_installed("cryptsetup-mkinitrd") _rm_if_installed("dhcpcd") _rm_if_installed("grub2-branding-basedonopensuse") _rm_if_installed("libdirectfb-1_6-0") _rm_if_installed("libgcrypt11") _rm_if_installed("libicu51_2") _rm_if_installed("libicu51_2-data") _rm_if_installed("libimobiledevice4") _rm_if_installed("libjson0") _rm_if_installed("libmozjs185-1_0") _rm_if_installed("libplist1") _rm_if_installed("libprocps1") _rm_if_installed("libpyglib-gi-2_0-python2-0") _rm_if_installed("libudev0") _rm_if_installed("libupower-glib1") _rm_if_installed("libusbmuxd2") #redundant (removed with libplist1) _rm_if_installed("libyui-ncurses5") _rm_if_installed("libyui5") #redundant (libyui-ncurses5) _rm_if_installed("libzmq3") _rm_if_installed("pm-utils") _rm_if_installed("ruby20") _rm_if_installed("rubygem-fast_gettext") #redundant (ruby20) _rm_if_installed("rubygem-ruby-dbus") #redundant (ruby20) _rm_if_installed("suspend") #redundant (libgcrypt11) ------------------------------ >8 ------------------------------ Not all of these packages are caused by the problem the OP has; some are just packages we do not need or want on our old servers, so we remove them during DUP; however, as we do not track the reason for removal, I sadly can't tell which is which. (I DUPed a server from 13.1 to Leap today and at least the following 13.1 packages were still installed afterwards: branding-basedonopensuse bundle-lang-common-ar cryptsetup-mkinitrd dhcpcd grub2-branding-basedonopensuse libicu51_2 libicu51_2-data ruby20 rubygem-fast_gettext rubygem-ruby-dbus.) To detect such packages *after* a DUP, we do something like this since around openSUSE 11.x (example after a DUP to Leap): ------------------------------ 8< ------------------------------ rpm -qa --qf '%{name}-%{version} %{distribution}\n' | grep -v 'openSUSE[ _:]Leap[ _:]42.1' | grep -v '(none)' | sort ------------------------------ >8 ------------------------------ -- HTH Christopher 'm4z' Holm / 686f6c6d "We must respect the other fellow's religion, but only in the sense and to the extent that we respect his theory that his wife is beautiful and his children smart." --H. L. Mencken -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org