Re: [gentoo-user] rebuild all

2003-11-21 Thread Oliver Lange
John Ross Hunt wrote:
Is there an emerge option for rebuilding the whole box
(assuming all emerged source tarballs still present) ?
Try this, it works better than "emerge -e" because it rebuilds the currently
installed packages only (no upgrades or downgrades).
 qpkg -I -nc -v | sed "s:^:\\\=:" | xargs emerge -p

And again a completely different solution :)... this one
looks pretty simple, i've sent the output to less instead of
xargs emerge and it looked just like what i want. Thank you..
--
[EMAIL PROTECTED] mailing list


RE: [gentoo-user] rebuild all

2003-11-20 Thread John Ross Hunt
> Hello everyone,
>
> Is there an emerge option for rebuilding the whole box
> (assuming all emerged source tarballs still present) ?
>
> It's the -O3 issue...

Try this, it works better than "emerge -e" because it rebuilds the currently
installed packages only (no upgrades or downgrades).

 qpkg -I -nc -v | sed "s:^:\\\=:" | xargs emerge -p

Just remove "-p" when ready to rebuild.

Good luck,

-jrh


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] rebuild all

2003-11-19 Thread Oliver Lange
Jason Stubbs wrote:
get the same thing. I have been toying with programming since I was 8, yet 
I've never done any sort of Linux-based development as yet (unless fixing a 
Yeah, my story (ok i started at the age of 14), but i'm still new to
Linux, even if i got a firewall-gateway under my desk since a couple
of years... i know how to setup my apache-php-mysql server, but things
like copying files (or using the shell power at all) are still a
riddle for me.. :)
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] rebuild all

2003-11-18 Thread Jason Stubbs
On Wednesday 19 November 2003 13:42, Oliver Lange wrote:
> Jason Stubbs wrote:
> > # cd /var/db/pkg
> > # ls *-*/* | awk '{print "=" $0}' > /root/pkgs
> > # for i in `cat /root/pkgs`; do emerge --oneshot $i && (grep -v $i
> > /root/pkgs > /root/pkgs2; mv /root/pkgs2 /root/pkgs) done
> >
> > Once it's done, you're left with a list of packages that couldn't be
> > emerged for one reason or another which can then be investigated.
>
> OK, i'll use that one. Looks like the script of a gcc tester :)

I'm just a tinkerer. The thought of using *-*/* never occurred to me. I was 
getting the list of packages by doing -ep and that awking it several times to 
get the same thing. I have been toying with programming since I was 8, yet 
I've never done any sort of Linux-based development as yet (unless fixing a 
couple of easy bugs counts). The one project I am privately working on is 
being done in Java because I'm still afraid of the multicoloured monstrosity 
when it comes to the market-place!

Glad to be of assistance.

Jason

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] rebuild all

2003-11-18 Thread Oliver Lange
Jason Stubbs wrote:
# cd /var/db/pkg
# ls *-*/* | awk '{print "=" $0}' > /root/pkgs
# for i in `cat /root/pkgs`; do emerge --oneshot $i && (grep -v $i
/root/pkgs > /root/pkgs2; mv /root/pkgs2 /root/pkgs) done
Once it's done, you're left with a list of packages that couldn't be
emerged for one reason or another which can then be investigated.
OK, i'll use that one. Looks like the script of a gcc tester :)

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] rebuild all

2003-11-18 Thread Oliver Lange
Jeffrey Smelser wrote:
No??

So why does it work on my system?? And what the hell does that command do?? This to me looks like your installing every package on the system, why would you want to do that?

emerge -ep world..
As a gentoo-newbie i'd say that this would emerge everything
that is listed in the world file, including it's dependencies
and dependency-dependencies, but not system packages which are
not part of that tree.
So,

To rebuild the box, i understand to do the following:

  (shutdown X)
  init 1
  mv /usr/portage/profiles/package.mask /usr/portage/profiles/package.mask_off
  cd /usr/portage
  emerge *-*/*
  mv /usr/portage/profiles/package.mask_off /usr/portage/profiles/package.mask
  reboot

??

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] rebuild all

2003-11-18 Thread mathieu perrenoud
> > > Would thta also include all packages which are
> > > not depended on by any of the world packages
> > > or their dependencies ?
> >
> > nope! why would it?
> > 
> Now, I'd like to twist your question and ask:  why wouldn't it?

sorry, my mistake, it tought he asked if emerge -e world would include files 
not in world, and not depended upon by anything. in other word: random 
packages or every packages.

-- 
mathieu


--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] rebuild all

2003-11-18 Thread Jason Stubbs
You could use a similar method, though. How about:

# cd /var/db/pkg
# emerge --oneshot `ls *-*/* | awk '{print "=" $0}'`

That should re-emerge everything without adding it all to the world
file. The problem with this method, though, is that it is not
restartable. If I want to rebuild everything I usually use something
similar to the following method:

# cd /var/db/pkg
# ls *-*/* | awk '{print "=" $0}' > /root/pkgs
# for i in `cat /root/pkgs`; do emerge --oneshot $i && (grep -v $i
/root/pkgs > /root/pkgs2; mv /root/pkgs2 /root/pkgs) done

Once it's done, you're left with a list of packages that couldn't be
emerged for one reason or another which can then be investigated.

BTW, sorry for Outlook.

-Original Message-
From: Jeffrey Smelser [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 19, 2003 7:56 AM
To: [EMAIL PROTECTED]
Subject: RE: [gentoo-user] rebuild all


Actually, that's every package there is an ebuild for, not on the
system. Which is what he wants..

> No??
> 
> So why does it work on my system?? And what the hell does
> that command do?? This to me looks like your installing every 
> package on the system, why would you want to do that?
> 
> > > > emerge -ep world..
> > >
> > > Would thta also include all packages which are
> > > not depended on by any of the world packages
> > > or their dependencies ?
> > 
> > nope! why would it?
> > for this you have to do:
> > 
> > cd /usr/portage
> > emerge *-*/*
> > 
> > but first you should remove package.mask
> > ;-)

--
[EMAIL PROTECTED] mailing list


--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] rebuild all

2003-11-18 Thread Rex Young
> 
> > > emerge -ep world..
> >
> > Would thta also include all packages which are
> > not depended on by any of the world packages
> > or their dependencies ?
> 
> nope! why would it?
> for this you have to do:
> 
> cd /usr/portage
> emerge *-*/*
> 
> but first you should remove package.mask
> ;-)
> 
> -- 
> mathieu


emerge -e world should catch everything on your system.  This will rebuild
everyting
in the world files, their dependencies and "system" packages.  The only
things I can
think of that would be left out are packages not listed in
/var/cache/edb/world, whether
by design or accident.  (Also left out would be dependencies of unlisted
packages which
aren't caught by listed packages.)

The above is the world according to me, and may be wrong.

Now, I'd like to twist your question and ask:  why wouldn't it?

-rex

--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] rebuild all

2003-11-18 Thread Jeffrey Smelser
Actually, that's every package there is an ebuild for, not on the system. Which is 
what he wants..

> No??
> 
> So why does it work on my system?? And what the hell does 
> that command do?? This to me looks like your installing every 
> package on the system, why would you want to do that?
> 
> > > > emerge -ep world..
> > >
> > > Would thta also include all packages which are
> > > not depended on by any of the world packages
> > > or their dependencies ?
> > 
> > nope! why would it?
> > for this you have to do:
> > 
> > cd /usr/portage
> > emerge *-*/*
> > 
> > but first you should remove package.mask
> > ;-)

--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] rebuild all

2003-11-18 Thread Jeffrey Smelser
No??

So why does it work on my system?? And what the hell does that command do?? This to me 
looks like your installing every package on the system, why would you want to do that?

> > > emerge -ep world..
> >
> > Would thta also include all packages which are
> > not depended on by any of the world packages
> > or their dependencies ?
> 
> nope! why would it?
> for this you have to do:
> 
> cd /usr/portage
> emerge *-*/*
> 
> but first you should remove package.mask
> ;-)

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] rebuild all

2003-11-18 Thread mathieu perrenoud
> > emerge -ep world..
>
> Would thta also include all packages which are
> not depended on by any of the world packages
> or their dependencies ?

nope! why would it?
for this you have to do:

cd /usr/portage
emerge *-*/*

but first you should remove package.mask
;-)

-- 
mathieu


--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] rebuild all

2003-11-18 Thread Jeffrey Smelser
That includes the kitchen sink and the dirty dishes.. :)

> Jeffrey Smelser wrote:
> > emerge -ep world..
> > 
> 
> Would thta also include all packages which are
> not depended on by any of the world packages
> or their dependencies ?

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] rebuild all

2003-11-18 Thread Oliver Lange
Jeffrey Smelser wrote:
emerge -ep world..

Would thta also include all packages which are
not depended on by any of the world packages
or their dependencies ?


--
[EMAIL PROTECTED] mailing list


RE: [gentoo-user] rebuild all

2003-11-18 Thread Jeffrey Smelser
emerge -ep world..

Take p off when your satisfied its correct

> Hello everyone,
> 
> Is there an emerge option for rebuilding the whole box
> (assuming all emerged source tarballs still present) ?
> 
> It's the -O3 issue...

--
[EMAIL PROTECTED] mailing list



[gentoo-user] rebuild all

2003-11-18 Thread Oliver Lange
Hello everyone,

Is there an emerge option for rebuilding the whole box
(assuming all emerged source tarballs still present) ?
It's the -O3 issue...

--
[EMAIL PROTECTED] mailing list