Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-17 Thread Neil Bothwick
On Thu, 16 Nov 2006 19:35:36 -0500, James Colby wrote:

 Does emerge -e world add anything to the world file?

No.


-- 
Neil Bothwick

What is the difference between Mechanical Engineers and Civil Engineers?
Mechanical Engineers build weapons, Civil Engineers build targets.


signature.asc
Description: PGP signature


[gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread James Colby

List Members -

I was trying to delete some files from my /sbin directory and with an
unfortunate use of a wildcard accidentally deleted the entire contents
on the /sbin directory.  I have recovered the contents of the /sbin
directory from a stage 3 tarball.  I was thinking about doing an
emerge world, just to make sure that everything is consistent.  Do you
all think that this is necessary?

Thanks,
James
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread Geistteufel

Oh, it's not really usefull to rebuild all
just rebuild this:

equery b /sbin

so. .. it will give you all package which install something in /sbin
just rebuild it


Le Thu, 16 Nov 2006 17:23:17 +0100, James Colby [EMAIL PROTECTED] a écrit:


List Members -

I was trying to delete some files from my /sbin directory and with an
unfortunate use of a wildcard accidentally deleted the entire contents
on the /sbin directory.  I have recovered the contents of the /sbin
directory from a stage 3 tarball.  I was thinking about doing an
emerge world, just to make sure that everything is consistent.  Do you
all think that this is necessary?

Thanks,
James








___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.

http://fr.mail.yahoo.com

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread Bo Ørsted Andresen
On Thursday 16 November 2006 17:23, James Colby wrote:
 I was trying to delete some files from my /sbin directory and with an
 unfortunate use of a wildcard accidentally deleted the entire contents
 on the /sbin directory.  I have recovered the contents of the /sbin
 directory from a stage 3 tarball.  I was thinking about doing an
 emerge world, just to make sure that everything is consistent.  Do you
 all think that this is necessary?

I suppose that remerging packages that install anything in /sbin would be in 
order:

# cd /var/db/pkg  emerge -va1 $(for pkg in */*; do
cut -d' ' -f2 ${pkg}/CONTENTS | grep -q '^/sbin/'  echo =${pkg}
done)

-- 
Bo Andresen


pgpn6yhOdpqfm.pgp
Description: PGP signature


Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread Flophouse Joe

On Thu, 16 Nov 2006, James Colby wrote:


I was trying to delete some files from my /sbin directory and with an
unfortunate use of a wildcard accidentally deleted the entire contents
on the /sbin directory.  I have recovered the contents of the /sbin
directory from a stage 3 tarball.  I was thinking about doing an
emerge world, just to make sure that everything is consistent.  Do you
all think that this is necessary?


Yes, I think an emerge --deep --emptytree world would be in order.

If you had a recent backup of your system-- new enough that no new
packages had been emerged since the backup was taken-- then restoring
the backup would be the easiest option.

In this case, though, it seems like a reasonable tradeoff to wait for
all your packages to recompile in order to be more confident that your
system won't blow up on you.

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



Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread Flophouse Joe

On Thu, 16 Nov 2006, Flophouse Joe wrote:

Yes, I think an emerge --deep --emptytree world would be in order.


Wow.  The other posters are right.  Re-emerging everything is a waste of
time.  It'd be much easier to re-emerge only the packages that had
placed files into /sbin .

Thanks, Geistteufel and Bo Andresen for reminding me of this!

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



Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread Bo Ørsted Andresen
On Thursday 16 November 2006 17:40, Flophouse Joe wrote:
 Yes, I think an emerge --deep --emptytree world would be in order.

Why? And what exactly do you expect --deep to do with --emptytree?

-- 
Bo Andresen


pgpUMZ2pehxcd.pgp
Description: PGP signature


Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread Flophouse Joe

On Thu, 16 Nov 2006, Bo ?rsted Andresen wrote:

On Thursday 16 November 2006 17:40, Flophouse Joe wrote:

Yes, I think an emerge --deep --emptytree world would be in order.

Why? And what exactly do you expect --deep to do with --emptytree?


Using --deep is a force of habit for upgrades, so I'm inclined to type it 
all the time.  But you raise a good point: it has no effect on --emptytree 
world .


Joe

Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread James Colby


# cd /var/db/pkg  emerge -va1 $(for pkg in */*; do
cut -d' ' -f2 ${pkg}/CONTENTS | grep -q '^/sbin/'  echo =${pkg}
done)

--

Thanks for the advice everybody.  I ran this command and it just
finished successfully.  I had one file in /etc that needed updating,
and when I tried to run etc-update it was missing.  Should I try to
emerge world?

Thanks,
James
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread Flophouse Joe

On Thu, 16 Nov 2006, James Colby wrote:

I had one file in /etc that needed updating,
and when I tried to run etc-update it was missing.


I'm not clear on what's happened.  Is it etc-update that's missing or is
it something else?

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



Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread Dale
James Colby wrote:

 # cd /var/db/pkg  emerge -va1 $(for pkg in */*; do
 cut -d' ' -f2 ${pkg}/CONTENTS | grep -q '^/sbin/'  echo
 =${pkg}
 done)

 -- 
 Thanks for the advice everybody.  I ran this command and it just
 finished successfully.  I had one file in /etc that needed updating,
 and when I tried to run etc-update it was missing.  Should I try to
 emerge world?

 Thanks,
 James

May want to emerge portage.  That is where that command comes from.

 [EMAIL PROTECTED] / # equery belongs etc-update
 [ Searching for file(s) etc-update in *... ]
 sys-apps/portage-2.1.1-r1 (/usr/sbin/etc-update -
 ../lib/portage/bin/etc-update)
 sys-apps/portage-2.1.1-r1 (/usr/lib/portage/bin/etc-update)
 [EMAIL PROTECTED] / #


If it were me, I would still do a emerge -e world, just to be sure. 

Dale

:-)  :-)
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread Neil Bothwick
On Thu, 16 Nov 2006 18:11:29 -0600, Dale wrote:

 If it were me, I would still do a emerge -e world, just to be sure. 

You can check all packages for missing or corrupt files with

equery -C list kdebase | awk '/\// {print $((NF - 1))}' | sed 's;^;=;' | xargs 
--max-lines=1 equery check


-- 
Neil Bothwick

I have seen the truth, and it makes no sense.


signature.asc
Description: PGP signature


Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread James Colby



If it were me, I would still do a emerge -e world, just to be sure.

Dale


Does emerge -e world add anything to the world file?  Do I need to add
the --oneshot option to this to keep my world file clean

Thanks,
James
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Accidentally deleted contents of /sbin

2006-11-16 Thread Dale
James Colby wrote:


 If it were me, I would still do a emerge -e world, just to be sure.

 Dale

 Does emerge -e world add anything to the world file?  Do I need to add
 the --oneshot option to this to keep my world file clean

 Thanks,
 James

From what I understand, it takes the packages listed in the world file
and then pretends there is nothing emerged and builds a list.  This will
emerge everything in world plus their dependacies.  It should not change
your world file at all.  I have done this several times when something
goes weird on my system or upgrading gcc.  You have a good plan to keep
your world file clean though.  Seems we are both learning to do that.  O_O

Basically, this rebuilds everything on your system from the ground up. 
That is why it takes so long.  It's akin to rebuilding the whole house
when you have a small leak in your roof.  Of course, you have a new
house this way.  ;-)

Also keep in mind emerge --resume and emerge --resume --skipfirst. 
The first is in case you have to stop to reboot or something.  The
second is in case something fails to emerge and you want to rebuild it
later.  Make a note of what packages fail and the error.  You may need
that info later.

Hope that helps.

Dale

:-)  :-)
-- 
gentoo-user@gentoo.org mailing list