From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KB82N-0002Jc-HT for garchives@archives.gentoo.org; Tue, 24 Jun 2008 12:54:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37A38E0375; Tue, 24 Jun 2008 12:54:18 +0000 (UTC) Received: from mail.askja.de (mail.askja.de [83.137.103.136]) by pigeon.gentoo.org (Postfix) with ESMTP id 0D04AE0375 for ; Tue, 24 Jun 2008 12:54:18 +0000 (UTC) Received: from static-87-79-89-40.netcologne.de ([87.79.89.40] helo=zone.wonkology.org) by mail.askja.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.68) (envelope-from ) id 1KB82L-0005cJ-I1 for gentoo-user@lists.gentoo.org; Tue, 24 Jun 2008 14:54:17 +0200 Received: from localhost (localhost [127.0.0.1]) (uid 1000) by zone.wonkology.org with local; Tue, 24 Jun 2008 14:54:13 +0200 id 00011ABB.4860EE75.000079E8 From: Alex Schuster Organization: Wonkology To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] single package backup Date: Tue, 24 Jun 2008 14:54:09 +0200 User-Agent: KMail/1.9.9 References: <20080624153722.2afa1b9e@ilievnet.com> In-Reply-To: <20080624153722.2afa1b9e@ilievnet.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806241454.10512.wonko@wonkology.org> X-Archives-Salt: 575afd49-82b7-40aa-9726-52e5a1d32077 X-Archives-Hash: d78b22129fbf42d8d6b41b2a18afd536 Daniel Iliev asks: > Let's say there's a new version of a given package. I'd like to make a > backup, update, test and if I liked the old version better restore. > > What is (is there?) the "Gentoo way" to do that? Let's assume you upgrade from package/foo-1.0 to package/foo-1.1. You can then use quickpkg to create a backup of foo-1.0, upgrade with emerge -ua foo, and test it. If you are not satisfied, mask the updated version in /etc/portage/package.mask, and emerge -uak foo again in order to downgrade. -k tells emerge to use the binary package built with quickpkg instead of re-compiling. quickpkg foo (or quickpkg package/foo-1.0) emerge -ua foo echo ">=package/foo-1.1" >> /etc/portage/package.mask emerge -uak foo I'm not really sure what happens with config files, though. Wonko -- gentoo-user@lists.gentoo.org mailing list