Using emerge -C kde-base/kde or emerge unmerge -C kde-base/kde fails to unmerge the package so I can reinstall it. There were some errors creating the default KDE directories were not created. I want to re-merge the kde-base/kde ebuilds so I was trying to remove it. emerge world done 1/2/2003 and latest sync done same date 1800hrs EST (tz). I did not find any previous information on this.
please post the errors
/ # emerge unmerge -C kde-base/kde !!! Couldn't find match for unmerge kde-base/kde selected: 3.0.5a protected: none omitted: none >>> Packages in red are slated for removal. >>> Packages in green will not be removed. >>> Waiting 5 seconds before starting... >>> (Control-C to abort)... >>> Unmerging in: 5 4 3 2 1 These are the responses. First try. >>> Unmerging kde-base/kde-3.0.5a... No package files given... Grabbing a set. >>> Regenerating /etc/ld.so.cache... * Regenerating GNU info directory index... * Processed 66 info files. * IMPORTANT: 1 config files in /etc need updating. * Type emerge --help config to learn how to update config files. --------Next try emerge unmerge kde-base/kde !!! Couldn't find match for kde-base/kde >>> unmerge: No packages selected for removal. If I try to install it back: emerge kde-base/kde Calculating dependencies ...done! >>> emerge (1 of 1) kde-base/kde-3.0.5a to / >>> Unpacking source... >>> Source unpacked. >>> Install kde-3.0.5a into /var/tmp/portage/kde-3.0.5a/image/ category kde-base strip: >>> Completed installing into /var/tmp/portage/kde-3.0.5a/image/ >>> Merging kde-base/kde-3.0.5a to / >>> Regenerating /etc/ld.so.cache... >>> kde-base/kde-3.0.5a merged. kde-base/kde selected: none protected: 3.0.5a omitted: none >>> clean: No packages selected for removal. >>> Regenerating /etc/ld.so.cache... >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * Regenerating GNU info directory index... * Processed 66 info files. * IMPORTANT: 1 config files in /etc need updating. * Type emerge --help config to learn how to update config files.
kde is a metapackage. it doesn't install anything on its own, all it does is pull in dependencies. these dependecies in total become the Gentoo KDE-package. hence, when it removes nothing, it does it's job. if you which to uninstall what kde-base/kde installed you'll need to look at the dependecies in that ebuild and remove them manually. portage should probably sometime learn to understand the concept of a metapackage, so we don't have to fake it like this, but until then, you're stuck.
emerge -p depclean this is handled by several other bugs.
Just installed kde 3.4 and had this issue trying to remove 3.3.2. IMHO if the meta package is going to exist for installation, it really should be allowed to work for un-merging too. Otherwise, people not fluent with portage -- i.e. an average end-user, will be completely stumped by this and have lots of MB of files he/she can't get rid of. This workaround was provided on the NG and sort of works. qpkg -v -I kde |grep 3.3.2 although this misses arts. The whole kde list shows all packages though and I can pick through the 3.3.x packages. Awful lot of work though :(