I just upgraded to OpenSUSE 12.2 from OpenSUSE 12.1 by changing all of my repositories to target 12.2 (instead of 12.1). Now that I've upgraded, I've found a bunch of packages that have no repository*, which the YaST Software Manager marks with red text in the version column. I can scroll through these and remove every single one, but I'm wondering if the zypper search (zypper se) or the Software Manager has any way to target/select all of these at once.*- These packages had a repository (OpenSUSE 12.1 something), but since I replaced those repositories with the 12.2 repositories, they no longer have a repository association. This doesn't create a problem, because the 12.2 repositories should contain everything I need to run my system.
OpenSUSE: Find all Packages without a repository
package management;opensuse;repository;yast;zypper
Using Martin's answer/guidance, I wrote a quick script to take a string of packages to remove, zremove.sh:#!/bin/shpkgs=while read linedo        pkgs=$pkgs $linedonezypper rm $pkgsAfter noticing that all of my packages without a repository had a distribution of openSUSE 12.1 in the rpm query, I issued this command to locate and remove all of them:rpm -qa --qf '%{DISTRIBUTION} : %{NAME}\n' | grep openSUSE 12.1 : | sed 's/openSUSE 12.1 : //' | sudo zremove.shThis doesn't generally answer the question of how to find all packages without a backing repository, but it did solve my initial issue.