Gentoo Archives: gentoo-user

From: Dale <dalek@××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Accidentally deleted contents of /sbin
Date: Fri, 17 Nov 2006 00:16:34
Message-Id: 455CFE31.8000202@exceedtech.net
In Reply to: Re: [gentoo-user] Accidentally deleted contents of /sbin by James Colby
1 James Colby wrote:
2 >>
3 >> # cd /var/db/pkg && emerge -va1 $(for pkg in */*; do
4 >> cut -d' ' -f2 "${pkg}"/CONTENTS | grep -q '^/sbin/' && echo
5 >> "=${pkg}"
6 >> done)
7 >>
8 >> --
9 > Thanks for the advice everybody. I ran this command and it just
10 > finished successfully. I had one file in /etc that needed updating,
11 > and when I tried to run etc-update it was missing. Should I try to
12 > emerge world?
13 >
14 > Thanks,
15 > James
16
17 May want to emerge portage. That is where that command comes from.
18
19 > root@smoker / # equery belongs etc-update
20 > [ Searching for file(s) etc-update in *... ]
21 > sys-apps/portage-2.1.1-r1 (/usr/sbin/etc-update ->
22 > ../lib/portage/bin/etc-update)
23 > sys-apps/portage-2.1.1-r1 (/usr/lib/portage/bin/etc-update)
24 > root@smoker / #
25
26
27 If it were me, I would still do a emerge -e world, just to be sure.
28
29 Dale
30
31 :-) :-)
32 --
33 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Accidentally deleted contents of /sbin Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] Accidentally deleted contents of /sbin James Colby <jcolby@×××××.com>