Gentoo Archives: gentoo-portage-dev

From: Sven Vermeulen <swift@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Undo feature in portage-ng ?
Date: Wed, 09 Jun 2004 07:34:46
Message-Id: 20040609073341.GA8620@gentoo.org
In Reply to: Re: [gentoo-portage-dev] Undo feature in portage-ng ? by Md Mooktakim Ahmed
1 On Tue, Jun 08, 2004 at 11:22:09PM +0100, Md Mooktakim Ahmed wrote:
2 > Or maybe a snapshot feature for /etc (using CVS type technology) so that
3 > go-back feature is available.
4 > The snapshot should be done at every installation of a package.
5
6 Shouldn't be that difficult to implement, not even with the current Portage.
7 But first get acquainted with RCS (emerge app-text/rcs) which is useful for
8 text files (such as configuration files).
9
10 What you can do as well is to have FEATURES="buildpkg" enabled and take a
11 snapshot of your Portage tree before you update it. Then update the Portage
12 tree and your system. If things fail, reinstate the snapshot and update your
13 system once again. IIRC, Portage should automatically 'downgrade' your
14 system to the previous state. By using the binaries created before
15 downgrading doesn't take that much time.
16
17 One small hickup though: configuration files! So it's still wise to keep the
18 important ones in RCS.
19
20 Wkr,
21 Sven Vermeulen
22
23 --
24 Bent Hindrup Andersen, Danish MEP, about the Software Patent Directive:
25 The approach of the Commission and Council in this directive is shocking.
26 They are making full use of all the possibilities of evading democracy that
27 the current Community Law provides. <http://lwn.net/Articles/84009/>