On 6/8/05, Richard Fish <[EMAIL PROTECTED]> wrote: > Mark Knecht wrote: >
> >Hi Kevin, > > I don't know of an automated way to do it. I had to go through my > >machines by hand doing the emerge/depclean/revdep-rebuild process I > >outlined in an email on this subject to Grant this morning. It took me > >a while to get it done. > > > > > > > > Here is a script to do it: > > cat /var/lib/portage/world | \ > while read line; do > count=`equery depends "$line" | wc -l` > test $count -gt 0 && echo $line > done > > This will output every package listed in world that is a dependancy of > something else. Of course, you need a recent version of gentoolkit to > get equery. > > -Richard > > -- > gentoo-user@gentoo.org mailing list > > Interesting results. I don't think I'd want to remove these and I thing the system would complain a bit if I removed vim. Anyway, it was an intersting experiment. myth11 root # ./CHECK-world app-editors/vim sys-apps/pciutils media-tv/mythtv myth11 root # cat /var/lib/portage/world sys-apps/slocate sys-kernel/gentoo-sources app-portage/gentoolkit media-sound/alsa-tools media-plugins/alsa-jack media-sound/alsa-utils app-editors/vim media-plugins/mythweather x11-wm/fluxbox sys-apps/pciutils app-laptop/laptop-mode-tools media-video/ati-drivers sys-kernel/linux-headers sys-boot/grub media-libs/alsa-oss media-plugins/mythnews app-admin/syslog-ng media-tv/mythtv app-misc/screen myth11 root # -- gentoo-user@gentoo.org mailing list