* [gentoo-user] Cleaning up world
@ 2009-05-19 17:32 felix
2009-05-19 17:55 ` Volker Armin Hemmann
` (4 more replies)
0 siblings, 5 replies; 15+ messages in thread
From: felix @ 2009-05-19 17:32 UTC (permalink / raw
To: gentoo-user
In a previous thread, I learned about keeping world simple with
--oneshot. I realized how mine had gotten so bloated -- when I
update, I edit the --pretend output and feed that directly into
emerge without the benefit of --oneshot.
So today I started a cleanup project. I began by moving world to
world-bloated and running emerge --depclean -p just to see what would
happen. The answer is ... a loop!
There were a couple of missing or out of date packages and I emerged
them. But libusb has to be 10.6 to make some packages happy and 10.7
to satisfy others.
I have been down this route before. I don't feel like unmerging
either side of the mess, and even if I didn't want the packages, it is
way too much hassle to unmerge them one by one as the list of unhappy
packages grows.
So, what is the proper way to recreate a proper world file? If
depclean can finally run one of these days when gentoo gets back in
sync, is staring with an empty world file as good as anything else?
The idea of trying to make intelligent guesses about which packages
are truly top level, out of 3000+ packages, is not enticing.
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-19 17:32 [gentoo-user] Cleaning up world felix
@ 2009-05-19 17:55 ` Volker Armin Hemmann
2009-05-19 18:25 ` felix
2009-05-19 18:09 ` Alan McKinnon
` (3 subsequent siblings)
4 siblings, 1 reply; 15+ messages in thread
From: Volker Armin Hemmann @ 2009-05-19 17:55 UTC (permalink / raw
To: gentoo-user
On Dienstag 19 Mai 2009, felix@crowfix.com wrote:
> In a previous thread, I learned about keeping world simple with
> --oneshot. I realized how mine had gotten so bloated -- when I
> update, I edit the --pretend output and feed that directly into
> emerge without the benefit of --oneshot.
>
> So today I started a cleanup project. I began by moving world to
> world-bloated and running emerge --depclean -p just to see what would
> happen. The answer is ... a loop!
>
> There were a couple of missing or out of date packages and I emerged
> them. But libusb has to be 10.6 to make some packages happy and 10.7
> to satisfy others.
>
> I have been down this route before. I don't feel like unmerging
> either side of the mess, and even if I didn't want the packages, it is
> way too much hassle to unmerge them one by one as the list of unhappy
> packages grows.
>
> So, what is the proper way to recreate a proper world file? If
> depclean can finally run one of these days when gentoo gets back in
> sync, is staring with an empty world file as good as anything else?
> The idea of trying to make intelligent guesses about which packages
> are truly top level, out of 3000+ packages, is not enticing.
nano -w world
remove everything you did not install.
Oh, and why that --pretend and feed into emerge' crap? Just do -a and world
will not be bloated at all.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-19 17:32 [gentoo-user] Cleaning up world felix
2009-05-19 17:55 ` Volker Armin Hemmann
@ 2009-05-19 18:09 ` Alan McKinnon
2009-05-21 22:11 ` Mick
2009-05-19 18:10 ` Neil Bothwick
` (2 subsequent siblings)
4 siblings, 1 reply; 15+ messages in thread
From: Alan McKinnon @ 2009-05-19 18:09 UTC (permalink / raw
To: gentoo-user
On Tuesday 19 May 2009 19:32:01 felix@crowfix.com wrote:
> In a previous thread, I learned about keeping world simple with
> --oneshot. I realized how mine had gotten so bloated -- when I
> update, I edit the --pretend output and feed that directly into
> emerge without the benefit of --oneshot.
>
> So today I started a cleanup project. I began by moving world to
> world-bloated and running emerge --depclean -p just to see what would
> happen. The answer is ... a loop!
>
> There were a couple of missing or out of date packages and I emerged
> them. But libusb has to be 10.6 to make some packages happy and 10.7
> to satisfy others.
>
> I have been down this route before. I don't feel like unmerging
> either side of the mess, and even if I didn't want the packages, it is
> way too much hassle to unmerge them one by one as the list of unhappy
> packages grows.
>
> So, what is the proper way to recreate a proper world file? If
> depclean can finally run one of these days when gentoo gets back in
> sync, is staring with an empty world file as good as anything else?
> The idea of trying to make intelligent guesses about which packages
> are truly top level, out of 3000+ packages, is not enticing.
Step 1 is to make sure the machine is up to date - emerge -avuND world
Otherwise you are trying to take things out and portage is trying to put
things in - confusing. Then satisfy the blockers like that issue with libusb,
but chances are emerge world fixed that already.
Edit the world file and remove every version number in that file if present.
You don;t need it and portage is infinitely better at tracking it than you
are. Then remove everything with a category ending in "lib", these rarely need
to be in world.
Periodically run emerge -av --depclean adding things back to world that you do
want - it's a rinse and repeat process.
If you use kde and gnome, I'll bet you have every package listed. Remove them
all and add kde-meta or gnome back in (or maybe the @kde set if you use that).
Let portage worry about dependencies.
By now you should be getting the idea that there's no easy way to recreate a
minimum world file from an existing system. eix-test-obsolete looks like it
ought to do this, but unfortunately doesn't.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-19 17:32 [gentoo-user] Cleaning up world felix
2009-05-19 17:55 ` Volker Armin Hemmann
2009-05-19 18:09 ` Alan McKinnon
@ 2009-05-19 18:10 ` Neil Bothwick
2009-05-19 18:16 ` Daniel Iliev
2009-05-19 18:21 ` Stroller
4 siblings, 0 replies; 15+ messages in thread
From: Neil Bothwick @ 2009-05-19 18:10 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 827 bytes --]
On Tue, 19 May 2009 10:32:01 -0700, felix@crowfix.com wrote:
> So, what is the proper way to recreate a proper world file? If
> depclean can finally run one of these days when gentoo gets back in
> sync, is staring with an empty world file as good as anything else?
No, starting with your existing world and removing packages, then running
--declean is the way to do it.
> The idea of trying to make intelligent guesses about which packages
> are truly top level, out of 3000+ packages, is not enticing.
It's not that hard, just remove anything you don't run yourself or as a
startup service. Start by deleting any lib packages.
--
Neil Bothwick
furbling, v.:
Having to wander through a maze of ropes at an airport or bank
even when you are the only person in line.
-- Rich Hall, "Sniglets"
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-19 17:32 [gentoo-user] Cleaning up world felix
` (2 preceding siblings ...)
2009-05-19 18:10 ` Neil Bothwick
@ 2009-05-19 18:16 ` Daniel Iliev
2009-05-19 18:21 ` Stroller
4 siblings, 0 replies; 15+ messages in thread
From: Daniel Iliev @ 2009-05-19 18:16 UTC (permalink / raw
To: gentoo-user
On Tue, 19 May 2009 10:32:01 -0700
felix@crowfix.com wrote:
> In a previous thread, I learned about keeping world simple with
> --oneshot. I realized how mine had gotten so bloated -- when I
> update, I edit the --pretend output and feed that directly into
> emerge without the benefit of --oneshot.
>
> So today I started a cleanup project. I began by moving world to
> world-bloated and running emerge --depclean -p just to see what would
> happen. The answer is ... a loop!
>
> There were a couple of missing or out of date packages and I emerged
> them. But libusb has to be 10.6 to make some packages happy and 10.7
> to satisfy others.
>
> I have been down this route before. I don't feel like unmerging
> either side of the mess, and even if I didn't want the packages, it is
> way too much hassle to unmerge them one by one as the list of unhappy
> packages grows.
>
> So, what is the proper way to recreate a proper world file? If
> depclean can finally run one of these days when gentoo gets back in
> sync, is staring with an empty world file as good as anything else?
> The idea of trying to make intelligent guesses about which packages
> are truly top level, out of 3000+ packages, is not enticing.
>
QUICK & DIRTY:
emerge autounmask
autounmask =app-portage/udept-0.5.99.0.2.95-r1
dep -w
About the "dirty" part. Don't use "dep" for anything else. It's
masked for a good reason - it's outdated and doesn't work with current
portage versions. "-w" is the only feature I use and it works for me.
Use at your own risk, make a backup of the world file, etc...
--
Best regards,
Daniel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-19 17:32 [gentoo-user] Cleaning up world felix
` (3 preceding siblings ...)
2009-05-19 18:16 ` Daniel Iliev
@ 2009-05-19 18:21 ` Stroller
4 siblings, 0 replies; 15+ messages in thread
From: Stroller @ 2009-05-19 18:21 UTC (permalink / raw
To: gentoo-user
On 19 May 2009, at 18:32, felix@crowfix.com wrote:
> ...
> So today I started a cleanup project. I began by moving world to
> world-bloated and running emerge --depclean -p just to see what would
> happen. The answer is ... a loop!
It appears you no longer have a world file (because you moved it,
rather than copying).
I would copy it then, as Volker suggests, edit the original.
> There were a couple of missing or out of date packages and I emerged
> them. But libusb has to be 10.6 to make some packages happy and 10.7
> to satisfy others.
If this is _really_ the case, then look at the packages that need 1.6.
Look at the later, ~x86 or masked, versions of them and find one that
supports 1.7. Unmask that & emerge it.
As Alan hints at ("Edit the world file and remove every version number
in that file if present"), I think you might find that you don't
really have any packages that won't support later than 1.6. Perhaps
you just have 1.6 pinned in your world file, or you have an older
version of a package (which has since been upgraded to support 1.7)
pinned.
Stroller.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-19 17:55 ` Volker Armin Hemmann
@ 2009-05-19 18:25 ` felix
2009-05-19 18:35 ` Daniel Pielmeier
2009-05-19 19:31 ` Volker Armin Hemmann
0 siblings, 2 replies; 15+ messages in thread
From: felix @ 2009-05-19 18:25 UTC (permalink / raw
To: gentoo-user
On Tue, May 19, 2009 at 07:55:23PM +0200, Volker Armin Hemmann wrote:
> Oh, and why that --pretend and feed into emerge' crap? Just do -a and world
> will not be bloated at all.
Because I don't always want it to upgrade everything it wants to.>
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-19 18:25 ` felix
@ 2009-05-19 18:35 ` Daniel Pielmeier
2009-05-19 19:31 ` Volker Armin Hemmann
1 sibling, 0 replies; 15+ messages in thread
From: Daniel Pielmeier @ 2009-05-19 18:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 584 bytes --]
felix@crowfix.com schrieb am 19.05.2009 20:25:
> On Tue, May 19, 2009 at 07:55:23PM +0200, Volker Armin Hemmann wrote:
>
>> Oh, and why that --pretend and feed into emerge' crap? Just do -a and world
>> will not be bloated at all.
>
> Because I don't always want it to upgrade everything it wants to.>
>
Another quick thing would be copying the world file to a temporary
location and run regenworld. The created world file is not minimal but
in your case if you have still a few hundred entries in world the world
will be cut down a bit.
--
Daniel Pielmeier
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-19 18:25 ` felix
2009-05-19 18:35 ` Daniel Pielmeier
@ 2009-05-19 19:31 ` Volker Armin Hemmann
2009-05-20 14:24 ` Paul Hartman
2009-05-28 15:31 ` Valmor de Almeida
1 sibling, 2 replies; 15+ messages in thread
From: Volker Armin Hemmann @ 2009-05-19 19:31 UTC (permalink / raw
To: gentoo-user
On Dienstag 19 Mai 2009, felix@crowfix.com wrote:
> On Tue, May 19, 2009 at 07:55:23PM +0200, Volker Armin Hemmann wrote:
> > Oh, and why that --pretend and feed into emerge' crap? Just do -a and
> > world will not be bloated at all.
>
> Because I don't always want it to upgrade everything it wants to.>
then mask the stuff.
Usually dependencies don't end up in world. But thanks to the stuff you do
they did. Now you have a monster - starting to delete lines is a first step.
Look into /usr/portage/profiles/base/packages.
Everything in there must not be in your world file.
Afterwards start the big deleting. You have gnome installed? Remove everything
X11, glib, gtk from world. kde? qt does not belong there.
With a little bit of thinking you can reduce world A LOT.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-19 19:31 ` Volker Armin Hemmann
@ 2009-05-20 14:24 ` Paul Hartman
2009-05-28 15:31 ` Valmor de Almeida
1 sibling, 0 replies; 15+ messages in thread
From: Paul Hartman @ 2009-05-20 14:24 UTC (permalink / raw
To: gentoo-user
On Tue, May 19, 2009 at 2:31 PM, Volker Armin Hemmann
<volkerarmin@googlemail.com> wrote:
> On Dienstag 19 Mai 2009, felix@crowfix.com wrote:
>> On Tue, May 19, 2009 at 07:55:23PM +0200, Volker Armin Hemmann wrote:
>> > Oh, and why that --pretend and feed into emerge' crap? Just do -a and
>> > world will not be bloated at all.
>>
>> Because I don't always want it to upgrade everything it wants to.>
>
> then mask the stuff.
>
> Usually dependencies don't end up in world. But thanks to the stuff you do
> they did. Now you have a monster - starting to delete lines is a first step.
>
> Look into /usr/portage/profiles/base/packages.
> Everything in there must not be in your world file.
>
> Afterwards start the big deleting. You have gnome installed? Remove everything
> X11, glib, gtk from world. kde? qt does not belong there.
>
> With a little bit of thinking you can reduce world A LOT.
Another one is that anything beginning with lib* almost never needs to
be in world.
Basically as others have said, my thought process is that if it is not
a program that I use directly, it does not need to be in world. The
exception being optional helper apps for certain multimedia programs
that are not dependencies, but will be used to enhance the operation
of the program if they are present. (think of various media
encoders/decoders etc)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-19 18:09 ` Alan McKinnon
@ 2009-05-21 22:11 ` Mick
2009-05-21 22:23 ` Paul Hartman
2009-05-22 6:49 ` Alan McKinnon
0 siblings, 2 replies; 15+ messages in thread
From: Mick @ 2009-05-21 22:11 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 816 bytes --]
On Tuesday 19 May 2009, Alan McKinnon wrote:
> Edit the world file and remove every version number in that file if
> present. You don;t need it and portage is infinitely better at tracking it
> than you are. Then remove everything with a category ending in "lib", these
> rarely need to be in world.
Arrrgh! Does this mean that I shouldn't have all these in there:
media-libs/libdvdcss
media-libs/libdvdnav
media-libs/libdvdread
media-libs/libflash
media-libs/libmodplug
media-libs/libmp4v2
media-libs/libmpcdec
media-libs/libmpeg2
media-libs/libmpeg3
media-libs/libogg
media-libs/libpng
media-libs/libquicktime
media-libs/libsamplerate
media-libs/libsdl
media-libs/libtheora
Also, as you can see from media-libs/libmpeg am I having duplicate packages in
there?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-21 22:11 ` Mick
@ 2009-05-21 22:23 ` Paul Hartman
2009-05-22 6:49 ` Alan McKinnon
1 sibling, 0 replies; 15+ messages in thread
From: Paul Hartman @ 2009-05-21 22:23 UTC (permalink / raw
To: gentoo-user
On Thu, May 21, 2009 at 5:11 PM, Mick <michaelkintzios@gmail.com> wrote:
> On Tuesday 19 May 2009, Alan McKinnon wrote:
>
>> Edit the world file and remove every version number in that file if
>> present. You don;t need it and portage is infinitely better at tracking it
>> than you are. Then remove everything with a category ending in "lib", these
>> rarely need to be in world.
>
> Arrrgh! Does this mean that I shouldn't have all these in there:
>
> media-libs/libdvdcss
> media-libs/libdvdnav
> media-libs/libdvdread
> media-libs/libflash
> media-libs/libmodplug
> media-libs/libmp4v2
> media-libs/libmpcdec
> media-libs/libmpeg2
> media-libs/libmpeg3
> media-libs/libogg
> media-libs/libpng
> media-libs/libquicktime
> media-libs/libsamplerate
> media-libs/libsdl
> media-libs/libtheora
>
> Also, as you can see from media-libs/libmpeg am I having duplicate packages in
> there?
I think libmpeg2 and libmpeg3 are two distinct packages (2 and 3 are
the mpeg version and part of the library name, not the package
version)
and yes, those probably don't need to be there UNLESS you are a
developer and use them -- but if you only want libs that are required
by installed programs, then you most likely shouldn't have them in
world.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-21 22:11 ` Mick
2009-05-21 22:23 ` Paul Hartman
@ 2009-05-22 6:49 ` Alan McKinnon
1 sibling, 0 replies; 15+ messages in thread
From: Alan McKinnon @ 2009-05-22 6:49 UTC (permalink / raw
To: gentoo-user
On Friday 22 May 2009 00:11:12 Mick wrote:
> On Tuesday 19 May 2009, Alan McKinnon wrote:
> > Edit the world file and remove every version number in that file if
> > present. You don;t need it and portage is infinitely better at tracking
> > it than you are. Then remove everything with a category ending in "lib",
> > these rarely need to be in world.
>
> Arrrgh! Does this mean that I shouldn't have all these in there:
>
> media-libs/libdvdcss
> media-libs/libdvdnav
> media-libs/libdvdread
> media-libs/libflash
> media-libs/libmodplug
> media-libs/libmp4v2
> media-libs/libmpcdec
> media-libs/libmpeg2
> media-libs/libmpeg3
> media-libs/libogg
> media-libs/libpng
> media-libs/libquicktime
> media-libs/libsamplerate
> media-libs/libsdl
> media-libs/libtheora
>
> Also, as you can see from media-libs/libmpeg am I having duplicate packages
> in there?
Those are useful packages, so you probably do want them. Just not in world :-)
If --depclean wants to remove them, you could add them back, or look closely
at your media apps to see which USE has been removed.
libmpeg2 and libmpeg3 are different packages. The numbers are part of the
name, not a version number.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-19 19:31 ` Volker Armin Hemmann
2009-05-20 14:24 ` Paul Hartman
@ 2009-05-28 15:31 ` Valmor de Almeida
2009-05-28 15:38 ` Mark Knecht
1 sibling, 1 reply; 15+ messages in thread
From: Valmor de Almeida @ 2009-05-28 15:31 UTC (permalink / raw
To: gentoo-user
Volker Armin Hemmann wrote:
>
> Look into /usr/portage/profiles/base/packages.
> Everything in there must not be in your world file.
>
> Afterwards start the big deleting. You have gnome installed? Remove everything
> X11, glib, gtk from world. kde? qt does not belong there.
>
> With a little bit of thinking you can reduce world A LOT.
>
I find
sys-devel/gcc
in my world file. It is listed in ...base/packages too. How exactly do I
remove it from world? Just edit the world file by removing the
sys-devel/gcc line and do a revdep-rebuild --ignore followed by a emerge
--depclean ?
Thanks for inputs; I don't want to break my system.
--
Valmor
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Cleaning up world
2009-05-28 15:31 ` Valmor de Almeida
@ 2009-05-28 15:38 ` Mark Knecht
0 siblings, 0 replies; 15+ messages in thread
From: Mark Knecht @ 2009-05-28 15:38 UTC (permalink / raw
To: gentoo-user
On Thu, May 28, 2009 at 8:31 AM, Valmor de Almeida <val.gentoo@gmail.com> wrote:
> Volker Armin Hemmann wrote:
>>
>> Look into /usr/portage/profiles/base/packages.
>> Everything in there must not be in your world file.
>>
>> Afterwards start the big deleting. You have gnome installed? Remove everything
>> X11, glib, gtk from world. kde? qt does not belong there.
>>
>> With a little bit of thinking you can reduce world A LOT.
>>
>
> I find
>
> sys-devel/gcc
>
> in my world file. It is listed in ...base/packages too. How exactly do I
> remove it from world? Just edit the world file by removing the
> sys-devel/gcc line and do a revdep-rebuild --ignore followed by a emerge
> --depclean ?
>
> Thanks for inputs; I don't want to break my system.
>
> --
> Valmor
Yes, just edit it, but remember what you did. Depending on how the
tools react you may want to put it back in. Well, not gcc necessarily,
but if you do this for other packages pay attention to what happens.
When I do this I rerun emerge -pdDuN world, eix-test-obsolete,
revdep-rebuild -p, etc., to make sure nothing really changed.
Hope this helps,
Mark
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2009-05-28 15:38 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-19 17:32 [gentoo-user] Cleaning up world felix
2009-05-19 17:55 ` Volker Armin Hemmann
2009-05-19 18:25 ` felix
2009-05-19 18:35 ` Daniel Pielmeier
2009-05-19 19:31 ` Volker Armin Hemmann
2009-05-20 14:24 ` Paul Hartman
2009-05-28 15:31 ` Valmor de Almeida
2009-05-28 15:38 ` Mark Knecht
2009-05-19 18:09 ` Alan McKinnon
2009-05-21 22:11 ` Mick
2009-05-21 22:23 ` Paul Hartman
2009-05-22 6:49 ` Alan McKinnon
2009-05-19 18:10 ` Neil Bothwick
2009-05-19 18:16 ` Daniel Iliev
2009-05-19 18:21 ` Stroller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox