Gentoo Archives: gentoo-server

From: Jason Stubbs <jstubbs@××××××××××.jp>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Quick restores
Date: Mon, 26 Dec 2005 05:05:46
Message-Id: 43AF79C6.5050700@work-at.co.jp
In Reply to: Re: [gentoo-server] Quick restores by "A. Khattri"
1 A. Khattri wrote:
2 > On Thu, 1 Dec 2005, Robert Larson wrote:
3 >
4 >> If I understand you correctly, then this may help:
5 >> # obtain a list of installed packages
6 >> emerge -vep world | grep ^'\[ebuild ' | while read a; do
7 >> # extract the package name
8 >> pkg=$(echo $a | cut -d']' -f2 | awk '{print $1}')
9 >> # build a binary of the package
10 >> quickpkg "/var/db/pkg/${pkg}"
11 >> done
12 >
13 > I came up with this (yes, granted it is tied to the file-system layout but
14 > its damn fast!):
15 >
16 > find /var/db/pkg -mindepth 2 -maxdepth 2 -print -exec quickpkg {} \;
17
18 I was thinking about extending quickpkg to support syntax like:
19 quickpkg [--deep [--build-deps] ] [--overwrite] <atom>|<target>
20
21 <atom> is one or more regular atoms. <target> is any supported target
22 (currently "world" or "system"). --deep would recursively make packages
23 of runtime dependencies. --build-deps would include build time
24 dependencies (which of course aren't actually needed). --overwrite
25 would cause packages to be created even if they already exist in PKGDIR.
26
27 Can I take this thread as an expression of interest in the above?
28 Anything missing or would be better done differently?
29
30 --
31 Jason Stubbs
32 --
33 gentoo-server@g.o mailing list

Replies

Subject Author
Re: [gentoo-server] Quick restores Kalin KOZHUHAROV <kalin@××××××××.net>