Re: [gentoo-user] Rebuild entire system - recompile all installed packages

2005-06-05 Thread Iain Buchanan
On Sat, 2005-06-04 at 13:49 +, Alexander Skwar wrote:
> 
> If I check how many packages are currently installed by running
> 
>   ls -1d /var/db/pkg/*/* | wc -l
> 
> I see that there are 1192. But if I count the number of ebuilds 
> returned by
> 
>   emerge -Dep world
> 
> I get only 292. So "emerge -De world" would NOT re-compile everything
> that's on my system.
> 
> How can I recompile everything that's currently installed and avoid
> cluttering my "world" file with unneeded entries?

this doesn't really solve any discrepancies in emerge, or why you get
different results from looking in different places, but a "close your
eyes and push the big red button" approach would be to `emerge
--oneshot` everything output from:

find /var/db/pkg/ -mindepth 2 -maxdepth 2 | sed 's/\/var\/db\/pkg\///'

--oneshot will stop it filling your world file with _everything_!

HTH,
-- 
Iain Buchanan <[EMAIL PROTECTED]>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Rebuild entire system - recompile all installed packages

2005-06-05 Thread Bob Sanders
On Sat, 4 Jun 2005 13:49:15 + (UTC)
Alexander Skwar <[EMAIL PROTECTED]> wrote:


> I get only 292. So "emerge -De world" would NOT re-compile everything
> that's on my system.
> 

Have you done a - regenworld?
Sometimes, items get installed and not always put in the world file.  Not 
often, but
on occasion.  Typing - regenworld  at the command line will add the missing
items in.

Bob
-- 
-  
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Rebuild entire system - recompile all installed packages

2005-06-04 Thread David Morgan
On 16:54 Sat 04 Jun , Alexander Skwar wrote:
> Peter Ruskin schrieb:
> 
> > That's strange, this is what I get here:
> >
> > $ ls -1d /var/db/pkg/*/* | wc -l
> > 1147
> > $ emerge -Dep world | wc -l
> > 1100
> 
> Hmm.. Even on your system, "emerge -De world" would NOT re-install
> everything that's already installed. You'd miss 47 packages.
> Question: What 47 packages would be missing and why? And also,
> how would you re-emerge everything on your system?
> 

Probably the other packages were installed as deps of something, but are
now no longer required.  emerge -p depclean will show them up.

It's also possible that some slotted packages aren't being remerged.
emerge -p prune will tell you all the slotted packages.

(btw, emerge depclean should be safe to do, but emerge prune without the
-p is a bad idea, emerge clean is the safe way of getting rid of
multiple versions of a package that aren't needed).

Also, emerge | wc -l will give the wrong number. You should do emerge |
grep ebuild | wc -l. Fex:

valinor ~ # emerge -pv vim | wc -l
7
valinor ~ # emerge -pv vim | grep ebuild | wc -l
1

-- 
djm

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Rebuild entire system - recompile all installed packages

2005-06-04 Thread Andreas Claesson
On 6/4/05, Peter Ruskin <[EMAIL PROTECTED]> wrote:
> That's strange, this is what I get here:
> 
> $ ls -1d /var/db/pkg/*/* | wc -l
> 1147
> $ emerge -Dep world | wc -l
> 1100
> $ emerge -Dep system | wc -l
> 183
> 

I get:

$ ls -1d /var/db/pkg/*/* | wc -l
334
$ emerge -ep world | wc -l
318

It is indeed strange how Alexander can have such a big difference
between emerge and var/db/pkg

Andreas

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Rebuild entire system - recompile all installed packages

2005-06-04 Thread Alexander Skwar
Peter Ruskin schrieb:

> That's strange, this is what I get here:
>
> $ ls -1d /var/db/pkg/*/* | wc -l
> 1147
> $ emerge -Dep world | wc -l
> 1100

Hmm.. Even on your system, "emerge -De world" would NOT re-install
everything that's already installed. You'd miss 47 packages.
Question: What 47 packages would be missing and why? And also,
how would you re-emerge everything on your system?

Alexander Skwar
-- 
This is not the age of pamphleteers. It is the age of the engineers.  The
spark-gap is mightier than the pen.  Democracy will not be salvaged by men
who talk fluently, debate forcefully and quote aptly.
-- Lancelot Hogben, Science for the Citizen, 1938
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Rebuild entire system - recompile all installed packages

2005-06-04 Thread Simon Maynard
As I understand it emerge -Dep world will only install all packages that
your world packages depend on. This is not the same thing as all the
packages on your system.

For example if you install gnome, it pulls in say 10 dependencies and
you then unmerge it. These 10 dependencies are not in the world file,
nor are they dependencies of anything in the world file. This means that
emerge -Dep world will not pull it in.

Maybe this is the cause of the problem?

Simon

On Sat, 2005-06-04 at 16:44 +0200, Alexander Skwar wrote:
> Peter Ruskin schrieb:
> 
> > That's strange,
> 
> Yep.
> 
> > this is what I get here:
> > 
> > $ ls -1d /var/db/pkg/*/* | wc -l
> > 1147
> > $ emerge -Dep world | wc -l
> > 1100
> > $ emerge -Dep system | wc -l
> > 183
> 
> Hm. Interesting.
> 
> How many lines are in your world file?
> 
> [16:43:58 [EMAIL PROTECTED]:~] $ wc -l /var/lib/portage/world
> 40 /var/lib/portage/world
> 
> Alexander Skwar
> -- 
> The last time I saw him he was walking down Lover's Lane holding his own hand.
>   -- Fred Allen

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Rebuild entire system - recompile all installed packages

2005-06-04 Thread Alexander Skwar
Peter Ruskin schrieb:

> That's strange,

Yep.

> this is what I get here:
> 
> $ ls -1d /var/db/pkg/*/* | wc -l
> 1147
> $ emerge -Dep world | wc -l
> 1100
> $ emerge -Dep system | wc -l
> 183

Hm. Interesting.

How many lines are in your world file?

[16:43:58 [EMAIL PROTECTED]:~] $ wc -l /var/lib/portage/world
40 /var/lib/portage/world

Alexander Skwar
-- 
The last time I saw him he was walking down Lover's Lane holding his own hand.
-- Fred Allen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Rebuild entire system - recompile all installed packages

2005-06-04 Thread Alexander Skwar
Mark Shields schrieb:
> Try the --emptytree option (with --pretend of course).

I did: "emerge -Dep world"

Alexander Skwar
-- 
Measure with a micrometer.  Mark with chalk.  Cut with an axe.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Rebuild entire system - recompile all installed packages

2005-06-04 Thread Mark Shields
Ha, brain-fart today.  I see you already tried that.  You can try
--onlydeps.  Check out man emerge

On 6/4/05, Mark Shields <[EMAIL PROTECTED]> wrote:
> Try the --emptytree option (with --pretend of course).
> 
> On 6/4/05, Alexander Skwar <[EMAIL PROTECTED]> wrote:
> > Hi!
> >
> > Because I've got way too much time at my hands *G*, I'd like to rebuild
> > my entire system - IOW: I want to recompile all the packages that are
> > currently installed.
> >
> > How do I do that?
> >
> > If I check how many packages are currently installed by running
> >
> > ls -1d /var/db/pkg/*/* | wc -l
> >
> > I see that there are 1192. But if I count the number of ebuilds
> > returned by
> >
> > emerge -Dep world
> >
> > I get only 292. So "emerge -De world" would NOT re-compile everything
> > that's on my system.
> >
> > How can I recompile everything that's currently installed and avoid
> > cluttering my "world" file with unneeded entries?
> >
> > Thanks a lot,
> >
> > Alexander Skwar
> > --
> > wok, n.:
> > Something to thwow at a wabbit.
> >
> > --
> > gentoo-user@gentoo.org mailing list
> >
> >
> 
> 
> --
> - Mark Shields
> 


-- 
- Mark Shields

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Rebuild entire system - recompile all installed packages

2005-06-04 Thread Mark Shields
Try the --emptytree option (with --pretend of course).

On 6/4/05, Alexander Skwar <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> Because I've got way too much time at my hands *G*, I'd like to rebuild
> my entire system - IOW: I want to recompile all the packages that are
> currently installed.
> 
> How do I do that?
> 
> If I check how many packages are currently installed by running
> 
> ls -1d /var/db/pkg/*/* | wc -l
> 
> I see that there are 1192. But if I count the number of ebuilds
> returned by
> 
> emerge -Dep world
> 
> I get only 292. So "emerge -De world" would NOT re-compile everything
> that's on my system.
> 
> How can I recompile everything that's currently installed and avoid
> cluttering my "world" file with unneeded entries?
> 
> Thanks a lot,
> 
> Alexander Skwar
> --
> wok, n.:
> Something to thwow at a wabbit.
> 
> --
> gentoo-user@gentoo.org mailing list
> 
> 


-- 
- Mark Shields

-- 
gentoo-user@gentoo.org mailing list