* [gentoo-user] Accidentally deleted contents of /sbin
@ 2006-11-16 16:23 James Colby
2006-11-16 16:28 ` Geistteufel
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: James Colby @ 2006-11-16 16:23 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-16 16:23 [gentoo-user] Accidentally deleted contents of /sbin James Colby
@ 2006-11-16 16:28 ` Geistteufel
2006-11-16 16:39 ` Bo Ørsted Andresen
2006-11-16 16:40 ` Flophouse Joe
2 siblings, 0 replies; 14+ messages in thread
From: Geistteufel @ 2006-11-16 16:28 UTC (permalink / raw
To: gentoo-user
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 <jcolby@gmail.com> 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-16 16:23 [gentoo-user] Accidentally deleted contents of /sbin James Colby
2006-11-16 16:28 ` Geistteufel
@ 2006-11-16 16:39 ` Bo Ørsted Andresen
2006-11-16 22:10 ` James Colby
2006-11-16 16:40 ` Flophouse Joe
2 siblings, 1 reply; 14+ messages in thread
From: Bo Ørsted Andresen @ 2006-11-16 16:39 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 708 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-16 16:39 ` Bo Ørsted Andresen
@ 2006-11-16 22:10 ` James Colby
2006-11-16 22:43 ` Flophouse Joe
2006-11-17 0:11 ` Dale
0 siblings, 2 replies; 14+ messages in thread
From: James Colby @ 2006-11-16 22:10 UTC (permalink / raw
To: gentoo-user
>
> # 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-16 22:10 ` James Colby
@ 2006-11-16 22:43 ` Flophouse Joe
2006-11-17 0:11 ` Dale
1 sibling, 0 replies; 14+ messages in thread
From: Flophouse Joe @ 2006-11-16 22:43 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-16 22:10 ` James Colby
2006-11-16 22:43 ` Flophouse Joe
@ 2006-11-17 0:11 ` Dale
2006-11-17 0:35 ` Neil Bothwick
2006-11-17 0:35 ` James Colby
1 sibling, 2 replies; 14+ messages in thread
From: Dale @ 2006-11-17 0:11 UTC (permalink / raw
To: gentoo-user
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.
> root@smoker / # 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)
> root@smoker / #
If it were me, I would still do a emerge -e world, just to be sure.
Dale
:-) :-)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-17 0:11 ` Dale
@ 2006-11-17 0:35 ` Neil Bothwick
2006-11-17 0:35 ` James Colby
1 sibling, 0 replies; 14+ messages in thread
From: Neil Bothwick @ 2006-11-17 0:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 369 bytes --]
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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-17 0:11 ` Dale
2006-11-17 0:35 ` Neil Bothwick
@ 2006-11-17 0:35 ` James Colby
2006-11-17 3:17 ` Dale
2006-11-17 10:20 ` Neil Bothwick
1 sibling, 2 replies; 14+ messages in thread
From: James Colby @ 2006-11-17 0:35 UTC (permalink / raw
To: gentoo-user
>
>
> 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-17 0:35 ` James Colby
@ 2006-11-17 3:17 ` Dale
2006-11-17 10:20 ` Neil Bothwick
1 sibling, 0 replies; 14+ messages in thread
From: Dale @ 2006-11-17 3:17 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-17 0:35 ` James Colby
2006-11-17 3:17 ` Dale
@ 2006-11-17 10:20 ` Neil Bothwick
1 sibling, 0 replies; 14+ messages in thread
From: Neil Bothwick @ 2006-11-17 10:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 289 bytes --]
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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-16 16:23 [gentoo-user] Accidentally deleted contents of /sbin James Colby
2006-11-16 16:28 ` Geistteufel
2006-11-16 16:39 ` Bo Ørsted Andresen
@ 2006-11-16 16:40 ` Flophouse Joe
2006-11-16 16:48 ` Flophouse Joe
2006-11-16 16:49 ` Bo Ørsted Andresen
2 siblings, 2 replies; 14+ messages in thread
From: Flophouse Joe @ 2006-11-16 16:40 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-16 16:40 ` Flophouse Joe
@ 2006-11-16 16:48 ` Flophouse Joe
2006-11-16 16:49 ` Bo Ørsted Andresen
1 sibling, 0 replies; 14+ messages in thread
From: Flophouse Joe @ 2006-11-16 16:48 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Accidentally deleted contents of /sbin
2006-11-16 16:40 ` Flophouse Joe
2006-11-16 16:48 ` Flophouse Joe
@ 2006-11-16 16:49 ` Bo Ørsted Andresen
2006-11-16 17:05 ` Flophouse Joe
1 sibling, 1 reply; 14+ messages in thread
From: Bo Ørsted Andresen @ 2006-11-16 16:49 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 220 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2006-11-17 10:25 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-16 16:23 [gentoo-user] Accidentally deleted contents of /sbin James Colby
2006-11-16 16:28 ` Geistteufel
2006-11-16 16:39 ` Bo Ørsted Andresen
2006-11-16 22:10 ` James Colby
2006-11-16 22:43 ` Flophouse Joe
2006-11-17 0:11 ` Dale
2006-11-17 0:35 ` Neil Bothwick
2006-11-17 0:35 ` James Colby
2006-11-17 3:17 ` Dale
2006-11-17 10:20 ` Neil Bothwick
2006-11-16 16:40 ` Flophouse Joe
2006-11-16 16:48 ` Flophouse Joe
2006-11-16 16:49 ` Bo Ørsted Andresen
2006-11-16 17:05 ` Flophouse Joe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox