Re: [gentoo-user] Uncluttering my world file
On Wednesday 08 June 2005 18:43, Richard Fish wrote: 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. It wasn't my question but many thanks anyway! Uwe -- 95% of all programmers rate themselves among the top 5% of all software developers. - Linus Torvalds http://www.uwix.iway.na (last updated: 20.06.2004) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Uncluttering my world file
On Wed, 8 Jun 2005 08:34:34 -0700, Kevin O'Gorman wrote: So: is there an easy way to find out if a package can be removed from world because it is already in there as a dependency or because of the profile? I'd like to pare world down to just the things that make a difference. Remove the line from the world file and run emerge depclean -p If depclean wants to remove it, it was probably installed as a dependency of something you no longer have. You can also use equery depends ,packagename to find what packages depend on it. -- Neil Bothwick WinErr 007: System price error - Inadequate money spent on hardware pgpnMi5W8hH49.pgp Description: PGP signature
Re: [gentoo-user] Uncluttering my world file
Mark Knecht wrote: On 6/8/05, Kevin O'Gorman [EMAIL PROTECTED] wrote: My world file seems remarkably long to me at 129 lines. I know I've added some stuff, but many of these entries ring no bells in my memory. I think a big part of what has happened is that in various throes of dealing with portage, I've emerged particular things without the --oneshot flag -- I had this system for quite a while before I even knew about that flag. So: is there an easy way to find out if a package can be removed from world because it is already in there as a dependency or because of the profile? I'd like to pare world down to just the things that make a difference. ++ kevin 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
Re: [gentoo-user] Uncluttering my world file
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
Re: [gentoo-user] Uncluttering my world file
Mark Knecht wrote: 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. Yes, _unmerging_ anything in this list could be extremely dangerous. It might lead you to unmerge python or even glibc...and then you would be really hosed. I would consider the output a guide for manually (and cautiously!) editing your world file! -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Uncluttering my world file
Hi, On Wednesday 08 June 2005 17:34, Kevin O'Gorman wrote: My world file seems remarkably long to me at 129 lines. I know I've added some stuff, but many of these entries ring no bells in my memory. I think a big part of what has happened is that in various throes of dealing with portage, I've emerged particular things without the --oneshot flag -- I had this system for quite a while before I even knew about that flag. So: is there an easy way to find out if a package can be removed from world because it is already in there as a dependency or because of the profile? I'd like to pare world down to just the things that make a difference. Yes, the tool available in [1] does this job pretty good! Check the -sw switch for that. take care, have fun /christian [1] http://forums.gentoo.org/viewtopic-t-260866-highlight-unclepine.html pgpsahQJZE2Ui.pgp Description: PGP signature