Re: [gentoo-user] Clean up world file

2006-07-10 Thread Neil Bothwick
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.


signature.asc
Description: PGP signature


Re: [gentoo-user] Clean up world file

2006-07-10 Thread Anthony E. Caudel
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



Re: [gentoo-user] Clean up world file

2006-07-10 Thread Daniel Iliev
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



Re: [gentoo-user] Clean up world file

2006-07-10 Thread Rumen Yotov
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


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [gentoo-user] Clean up world file

2006-07-09 Thread Anthony E. Caudel
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



Re: [gentoo-user] Clean up world file

2006-07-09 Thread Anthony E. Caudel
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



Re: [gentoo-user] Clean up world file

2006-07-08 Thread Daniel Waeber
-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



Re: [gentoo-user] Clean up world file

2006-07-08 Thread Rafael Fernández López
-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



Re: [gentoo-user] Clean up world file

2006-07-08 Thread Rafael Fernández López
-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



Re: [gentoo-user] Clean up world file

2006-07-08 Thread Rumen Yotov
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


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [gentoo-user] Clean up world file

2006-07-08 Thread Daniel Iliev
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



Re: [gentoo-user] Clean up world file

2006-07-08 Thread Neil Bothwick
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.


signature.asc
Description: PGP signature


Re: [gentoo-user] Clean up world file

2006-07-08 Thread Walter Dnes
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 [EMAIL PROTECTED] 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