public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Clean up world file
@ 2006-07-08 10:30 Anthony E. Caudel
  2006-07-08 12:06 ` Daniel Waeber
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Anthony E. Caudel @ 2006-07-08 10:30 UTC (permalink / raw
  To: Gentoo Mailing List

There was a recent thread about about what should or should not be in
the world file.

Regarding that, my world file is bloated.  Until recently, I had a
tendency to do updates piecemeal but did not use --oneshot.  This put
packages in that I do not think belong.

Looking for a means to clean up the world file, I ran across Ed Catmur's
 "dep".

Has anyone here used it?  Is it the best means available to clean the
world file?  Anything in the gentoo tree to do this?

Tony

BTW, I ran it with the --pretend option and it told me that 44 of the
119 packages in my world file were redundant.
-- 
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-08 10:30 [gentoo-user] Clean up world file Anthony E. Caudel
@ 2006-07-08 12:06 ` Daniel Waeber
  2006-07-08 12:33   ` Rafael Fernández López
                     ` (2 more replies)
  2006-07-08 12:54 ` Rumen Yotov
                   ` (2 subsequent siblings)
  3 siblings, 3 replies; 15+ messages in thread
From: Daniel Waeber @ 2006-07-08 12:06 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If I'm not mistaken, you can simply run "vim /var/lib/portage/world",
:sort it and ddelete the packages you don't need. It did work for me,
but I'm not sure if something breaks if you just edit the world file or
if you have to chance something else.

Anthony E. Caudel wrote:
> There was a recent thread about about what should or should not be in
> the world file.
> 
> Regarding that, my world file is bloated.  Until recently, I had a
> tendency to do updates piecemeal but did not use --oneshot.  This put
> packages in that I do not think belong.
> 
> Looking for a means to clean up the world file, I ran across Ed Catmur's
>  "dep".
> 
> Has anyone here used it?  Is it the best means available to clean the
> world file?  Anything in the gentoo tree to do this?
> 
> Tony
> 
> BTW, I ran it with the --pretend option and it told me that 44 of the
> 119 packages in my world file were redundant.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEr5/TBbWbHb9PeLsRAjFUAJ4sAcpXKSIVch0iT0H1jF9oRYC2tgCfc9Q4
TlDp5dIHwSdNwchjuaeKt7Q=
=8E4L
-----END PGP SIGNATURE-----
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-08 12:06 ` Daniel Waeber
@ 2006-07-08 12:33   ` Rafael Fernández López
  2006-07-08 12:43     ` Rafael Fernández López
  2006-07-08 13:21   ` [gentoo-user] " Francesco Talamona
  2006-07-08 13:41   ` [gentoo-user] " Daniel Iliev
  2 siblings, 1 reply; 15+ messages in thread
From: Rafael Fernández López @ 2006-07-08 12:33 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

	Well you can do it by hand but you'll notice that if you run
"regenworld" they'll be added to your world file again.

	Just delete it manually from /var/lib/portage/world file and later
delete /var/log/emerge.log if you don't want they to be added to your
world file when running "regenworld" again.

	If you want to install libraries or something that you don't want to be
in portage but you've to install it explicitly (is not a explicit
dependency), just do a "emerge --oneshot whatever", and it won't be
added to your world file.

Bye,
Rafael Fernández López.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEr6YzWFfYaTyFH8oRAm78AKCZZyZtobbseZAz/IL+3uHoaEqKWgCbBm/y
tBUbgjNgm7UhE5A5BqD0O2I=
=jpxX
-----END PGP SIGNATURE-----
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-08 12:33   ` Rafael Fernández López
@ 2006-07-08 12:43     ` Rafael Fernández López
  0 siblings, 0 replies; 15+ messages in thread
From: Rafael Fernández López @ 2006-07-08 12:43 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

SORRY, IN "that you don't want to be in portage" should be "that you
don't want to be in your world file".

Bye,
Rafael Fernández López.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEr6hvWFfYaTyFH8oRAlPIAJ4nXnwUZzBkop9qperYev5Loref8QCfWSDo
rH/kfxsYHOG42rTRqLMKhxU=
=AW9p
-----END PGP SIGNATURE-----
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-08 10:30 [gentoo-user] Clean up world file Anthony E. Caudel
  2006-07-08 12:06 ` Daniel Waeber
@ 2006-07-08 12:54 ` Rumen Yotov
  2006-07-08 15:38 ` Neil Bothwick
  2006-07-09  0:41 ` Walter Dnes
  3 siblings, 0 replies; 15+ messages in thread
From: Rumen Yotov @ 2006-07-08 12:54 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

Anthony E. Caudel wrote:
> There was a recent thread about about what should or should not be in
> the world file.
> 
> Regarding that, my world file is bloated.  Until recently, I had a
> tendency to do updates piecemeal but did not use --oneshot.  This put
> packages in that I do not think belong.
> 
> Looking for a means to clean up the world file, I ran across Ed Catmur's
>  "dep".
> 
> Has anyone here used it?  Is it the best means available to clean the
> world file?  Anything in the gentoo tree to do this?
> 
> Tony
> 
> BTW, I ran it with the --pretend option and it told me that 44 of the
> 119 packages in my world file were redundant.
Hi,
So far only used ecatmur's "dep" script (it's/was called 'udept').
To get the latest - emerge layman & import ecatmur's overlay.
Then run dep --help and check the options.
Using it for over a year or two excellent script, Thanks Ed.
HTH.Rumen

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3493 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [gentoo-user] Re: Clean up world file
  2006-07-08 12:06 ` Daniel Waeber
  2006-07-08 12:33   ` Rafael Fernández López
@ 2006-07-08 13:21   ` Francesco Talamona
  2006-07-08 13:41   ` [gentoo-user] " Daniel Iliev
  2 siblings, 0 replies; 15+ messages in thread
From: Francesco Talamona @ 2006-07-08 13:21 UTC (permalink / raw
  To: gentoo-user

On Saturday 08 July 2006 14:06, Daniel Waeber wrote:
> If I'm not mistaken, you can simply run "vim /var/lib/portage/world",
>
> :sort it and ddelete the packages you don't need. It did work for me,
>
> but I'm not sure if something breaks if you just edit the world file
> or if you have to chance something else.

I think the question is more subtle, the problem arises when you want to 
remove from /var/lib/portage/world those entries belonging to program 
that would *not* be unmerged by emerge --depclean (as deeper 
dependencies of some other package), whether they are listed in world 
file or not. All those entries are redundant.

I used dep for a while, then I switched to unclepine [1], I don't know 
if today there are suitable tools. IIRC regenworld can be a lifesaver 
but nonetheless is the biggest redundancy builder.

ciao
	Francesco

[1] http://gentooexperimental.org/script/repo/show/27

-- 
Linux Version 2.6.17-gentoo-r1, Compiled #1 PREEMPT Mon Jul 3 22:29:51 
CEST 2006
One 1GHz AMD Athlon 64 Processor, 2GB RAM, 2004.91 Bogomips Total
aemaeth
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-08 12:06 ` Daniel Waeber
  2006-07-08 12:33   ` Rafael Fernández López
  2006-07-08 13:21   ` [gentoo-user] " Francesco Talamona
@ 2006-07-08 13:41   ` Daniel Iliev
  2006-07-10  5:31     ` Anthony E. Caudel
  2 siblings, 1 reply; 15+ messages in thread
From: Daniel Iliev @ 2006-07-08 13:41 UTC (permalink / raw
  To: gentoo-user

Daniel Waeber wrote:
> If I'm not mistaken, you can simply run "vim /var/lib/portage/world",
> :sort it and ddelete the packages you don't need. It did work for me,
> but I'm not sure if something breaks if you just edit the world file or
> if you have to chance something else.

I don't think anything will break.

There is also, let me name it "reverse approach".

You first make a back up and empty your world file:
1) gentoo ~ #cp /var/lib/portage/world ~/ && >/var/lib/portage/world
and then build it again:
2) gentoo ~ #regenworld

"regenworld" will put some packages which it thinks belong to the world
list.
Now check what portage finds to be useless when the world set is almost
empty:
3) gentoo ~ #emerge --depclean --pretend

>From the list shown by the above command you chose the program packages
you *want* to have installed and put them in the world file. One "atom"
("category-name/package-name", without version numbers) per line.
Now do as "emerge --depclean" recommends:

4) gentoo ~ #emerge --update --newuse --deep world

Repeat the steps from (2) to (4) until (3) shows only packages that are
not familiar to you and (4) doesn't want to install anything.

Next. Check if there are no system packages in the list (3) shows:
5) gentoo ~ #emerge -pve system

It should not happen that (3) wants to remove system packages but its
better to be sure.

Now "cross your fingers" and execute emerge --deplcean for real (without
--pretend).
6) emerge --deplcean
Immediately after (6) finishes you *must* do:
7) emerge -DuN world
8) revdep-rebuild

When (8) is successfully finished you should have a "clean" world set
within a healthy system.
If something goes wrong you can bring back your working "world" and
recheck all packages:

#cp ~/world /var/lib/portage/world
#emerge -DuN world
#revdep-rebuild

One more thing. You remember that saying "If it works don't fix it",
don't you? :)
I mean your system should work properly even with "polluted" world set,
no matter there are additional packages in it.

-- 
Best regards,
Daniel

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-08 10:30 [gentoo-user] Clean up world file Anthony E. Caudel
  2006-07-08 12:06 ` Daniel Waeber
  2006-07-08 12:54 ` Rumen Yotov
@ 2006-07-08 15:38 ` Neil Bothwick
  2006-07-10  5:35   ` Anthony E. Caudel
  2006-07-09  0:41 ` Walter Dnes
  3 siblings, 1 reply; 15+ messages in thread
From: Neil Bothwick @ 2006-07-08 15:38 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

On Sat, 08 Jul 2006 05:30:54 -0500, Anthony E. Caudel wrote:

> Has anyone here used it?  Is it the best means available to clean the
> world file?  Anything in the gentoo tree to do this?

I've done this manually in the past. Edit /var/lib/world and remove
everything you think shouldn't be in there. Be brutal, if you never run
the program directly, you probably don't want it in world.

Then run "emerge --depclean --pretend". If this lists any packages you
know you want (directly, not as dependencies) add them to world with
"emerge -n package".

Rinse and repeat.

Finally, when everything listed by "emerge --depclean" is not something
you want to keep, run it without --pretend.


-- 
Neil Bothwick

If God had intended man to smoke, He would have set him on fire.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-08 10:30 [gentoo-user] Clean up world file Anthony E. Caudel
                   ` (2 preceding siblings ...)
  2006-07-08 15:38 ` Neil Bothwick
@ 2006-07-09  0:41 ` Walter Dnes
  3 siblings, 0 replies; 15+ messages in thread
From: Walter Dnes @ 2006-07-09  0:41 UTC (permalink / raw
  To: gentoo-user

On Sat, Jul 08, 2006 at 05:30:54AM -0500, Anthony E. Caudel wrote
> There was a recent thread about about what should or should not be in
> the world file.
> 
> Regarding that, my world file is bloated.  Until recently, I had a
> tendency to do updates piecemeal but did not use --oneshot.  This put
> packages in that I do not think belong.

  This may not help now, but keep it in mind next time you install from
scratch...
  step 1) install a basic text-console-only system
  step 2) "emerge gimp" (or some other X app).  You'll end up with a gimp
          and a functional X and twm.  I prefer blackbox.  So I would
          "emerge bbkeys".  This pulls in and sets up blackbox on X.

  The emerge at step 2) pulls in umpteen dependancies, and is an
overnight job on a 400 mhz PII.  I have quite a few apps, and my world
is 85 lines.

-- 
Walter Dnes <waltdnes@waltdnes.org> In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-08 13:41   ` [gentoo-user] " Daniel Iliev
@ 2006-07-10  5:31     ` Anthony E. Caudel
  0 siblings, 0 replies; 15+ messages in thread
From: Anthony E. Caudel @ 2006-07-10  5:31 UTC (permalink / raw
  To: gentoo-user

Daniel Iliev wrote:
> Daniel Waeber wrote:
>> If I'm not mistaken, you can simply run "vim /var/lib/portage/world",
>> :sort it and ddelete the packages you don't need. It did work for me,
>> but I'm not sure if something breaks if you just edit the world file or
>> if you have to chance something else.
> 
> I don't think anything will break.
> 
> There is also, let me name it "reverse approach".
> 
> You first make a back up and empty your world file:
> 1) gentoo ~ #cp /var/lib/portage/world ~/ && >/var/lib/portage/world
> and then build it again:
> 2) gentoo ~ #regenworld
> 
> "regenworld" will put some packages which it thinks belong to the world
> list.
> Now check what portage finds to be useless when the world set is almost
> empty:
> 3) gentoo ~ #emerge --depclean --pretend
> 
>>From the list shown by the above command you chose the program packages
> you *want* to have installed and put them in the world file. One "atom"
> ("category-name/package-name", without version numbers) per line.
> Now do as "emerge --depclean" recommends:
> 
> 4) gentoo ~ #emerge --update --newuse --deep world
> 
> Repeat the steps from (2) to (4) until (3) shows only packages that are
> not familiar to you and (4) doesn't want to install anything.
> 
> Next. Check if there are no system packages in the list (3) shows:
> 5) gentoo ~ #emerge -pve system
> 
> It should not happen that (3) wants to remove system packages but its
> better to be sure.
> 
> Now "cross your fingers" and execute emerge --deplcean for real (without
> --pretend).
> 6) emerge --deplcean
> Immediately after (6) finishes you *must* do:
> 7) emerge -DuN world
> 8) revdep-rebuild
> 
> When (8) is successfully finished you should have a "clean" world set
> within a healthy system.
> If something goes wrong you can bring back your working "world" and
> recheck all packages:
> 
> #cp ~/world /var/lib/portage/world
> #emerge -DuN world
> #revdep-rebuild
> 
> One more thing. You remember that saying "If it works don't fix it",
> don't you? :)
> I mean your system should work properly even with "polluted" world set,
> no matter there are additional packages in it.
> 

*** Whew! ***

Thanks Daniel, I'm going to keep this in mind.

And yes, I'm familiar with the quote.  The only problem with a bloated
world file is updating perhaps unnecessarily.

Tony


-- 
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-08 15:38 ` Neil Bothwick
@ 2006-07-10  5:35   ` Anthony E. Caudel
  2006-07-10  8:15     ` Neil Bothwick
  0 siblings, 1 reply; 15+ messages in thread
From: Anthony E. Caudel @ 2006-07-10  5:35 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick wrote:
> On Sat, 08 Jul 2006 05:30:54 -0500, Anthony E. Caudel wrote:
> 
>> Has anyone here used it?  Is it the best means available to clean the
>> world file?  Anything in the gentoo tree to do this?
> 
> I've done this manually in the past. Edit /var/lib/world and remove
> everything you think shouldn't be in there. Be brutal, if you never run
> the program directly, you probably don't want it in world.
> 
> Then run "emerge --depclean --pretend". If this lists any packages you
> know you want (directly, not as dependencies) add them to world with
> "emerge -n package".
> 
> Rinse and repeat.
> 
> Finally, when everything listed by "emerge --depclean" is not something
> you want to keep, run it without --pretend.
> 
> 
Thanks Neil.  I think I'll use this along with the recommendations of
dep.  With 119 packages in the world file, I'll have to be VERY brutal.

Tony

-- 
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-10  5:35   ` Anthony E. Caudel
@ 2006-07-10  8:15     ` Neil Bothwick
  2006-07-10  8:34       ` Anthony E. Caudel
  0 siblings, 1 reply; 15+ messages in thread
From: Neil Bothwick @ 2006-07-10  8:15 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

On Mon, 10 Jul 2006 00:35:18 -0500, Anthony E. Caudel wrote:

> Thanks Neil.  I think I'll use this along with the recommendations of
> dep.  With 119 packages in the world file, I'll have to be VERY brutal.

That depends on what you're using. If you use the KDE split builds
without the meta packages, 119 is a very low figure. I have 338 on my
desktop and 256 on my laptop, which makes me think I should start pruning
the desktop's world file, that is quite a difference.


-- 
Neil Bothwick

Windows, the most installed system in the world, I know, I've done it
5 or 6 times myself.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-10  8:15     ` Neil Bothwick
@ 2006-07-10  8:34       ` Anthony E. Caudel
  2006-07-10 11:59         ` Daniel Iliev
  0 siblings, 1 reply; 15+ messages in thread
From: Anthony E. Caudel @ 2006-07-10  8:34 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick wrote:
> ... I have 338 on my desktop and 256 on my laptop, which makes me think I should start pruning ...
> 
Gulp!  Maybe mine isn't so bloated after all. ;-)

Tony

-- 
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-10  8:34       ` Anthony E. Caudel
@ 2006-07-10 11:59         ` Daniel Iliev
  2006-07-10 16:29           ` Rumen Yotov
  0 siblings, 1 reply; 15+ messages in thread
From: Daniel Iliev @ 2006-07-10 11:59 UTC (permalink / raw
  To: gentoo-user

Anthony E. Caudel wrote:
>>
> Gulp!  Maybe mine isn't so bloated after all. ;-)
> 
> Tony
> 
:))))
...or perhaps you don't have as many packages installed as Mr. Neil
Bothwick has.

After cleaning I get:
===
#wc /var/lib/portage/world
 280  281 5415 /var/lib/portage/world
===

-- 
Best regards,
Daniel

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Clean up world file
  2006-07-10 11:59         ` Daniel Iliev
@ 2006-07-10 16:29           ` Rumen Yotov
  0 siblings, 0 replies; 15+ messages in thread
From: Rumen Yotov @ 2006-07-10 16:29 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]

Daniel Iliev wrote:
> Anthony E. Caudel wrote:
>> Gulp!  Maybe mine isn't so bloated after all. ;-)
>>
>> Tony
>>
> :))))
> ...or perhaps you don't have as many packages installed as Mr. Neil
> Bothwick has.
> 
> After cleaning I get:
> ===
> #wc /var/lib/portage/world
>  280  281 5415 /var/lib/portage/world
> ===
> 
Hi,
Result after "emerge --depclean -av"
...SKIP...
Packages installed:   1101
Packages in world:    247
Packages in system:   59
Unique package names: 1101
Required packages:    1135
Number removed:       0
...END...
#wc /var/lib/portage/world
 246  247 4895 /var/lib/portage/world
PS: recently cleaned world file.
HTH.Rumen

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3493 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2006-07-10 16:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-08 10:30 [gentoo-user] Clean up world file Anthony E. Caudel
2006-07-08 12:06 ` Daniel Waeber
2006-07-08 12:33   ` Rafael Fernández López
2006-07-08 12:43     ` Rafael Fernández López
2006-07-08 13:21   ` [gentoo-user] " Francesco Talamona
2006-07-08 13:41   ` [gentoo-user] " Daniel Iliev
2006-07-10  5:31     ` Anthony E. Caudel
2006-07-08 12:54 ` Rumen Yotov
2006-07-08 15:38 ` Neil Bothwick
2006-07-10  5:35   ` Anthony E. Caudel
2006-07-10  8:15     ` Neil Bothwick
2006-07-10  8:34       ` Anthony E. Caudel
2006-07-10 11:59         ` Daniel Iliev
2006-07-10 16:29           ` Rumen Yotov
2006-07-09  0:41 ` Walter Dnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox