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 1KB908-0007Im-8O for garchives@archives.gentoo.org; Tue, 24 Jun 2008 13:56:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A9A5E03FB; Tue, 24 Jun 2008 13:56:02 +0000 (UTC) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by pigeon.gentoo.org (Postfix) with ESMTP id A6E8AE03FB for ; Tue, 24 Jun 2008 13:56:01 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id d23so1662157fga.14 for ; Tue, 24 Jun 2008 06:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=07xTZf+eWrcrTyr1IPxgFotfaIAOf3CyVswAD/hhB1o=; b=OAdVkkGmRZwKDNs+wC69MMWhAj/MvjvpmFbHy/CDaHmIYQeTjdZb3DKrkSK6s6grIZ NeUp7cKnU+pu+aQ3z2woVUwQs6Ut0+vKaQ6oJp++lFVbYjSn/8J3eXH0M1elHbvrL9AM o3H0IPLTUDX25rCUB1WRkF/xr4G2IPewLBUWg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=WNXDaAB5dMEmvybhmCa/hUqalLPFR1lWPmvSiQQPmY380pnggzK9wiU4t8NiHNzRqg nsORxYkwGBiM8Z9DquLZj3zi3kRwWluizu6uPwxGYTrqFqGWxTL6CDEZ5rneDGhpe9Vx bcW+XvfbrVATSDJTJLOahe0xJ7jUP0nXE6Nsg= Received: by 10.86.66.19 with SMTP id o19mr8962461fga.62.1214315761114; Tue, 24 Jun 2008 06:56:01 -0700 (PDT) Received: by 10.86.53.6 with HTTP; Tue, 24 Jun 2008 06:56:01 -0700 (PDT) Message-ID: Date: Tue, 24 Jun 2008 21:56:01 +0800 From: "=?GB2312?B?s8Kw79Px?=" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] single package backup In-Reply-To: <200806241454.10512.wonko@wonkology.org> 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: multipart/alternative; boundary="----=_Part_2472_11427305.1214315761120" References: <20080624153722.2afa1b9e@ilievnet.com> <200806241454.10512.wonko@wonkology.org> X-Archives-Salt: 31b2e280-39aa-42e8-972f-724cbac15c13 X-Archives-Hash: e26ec1cd3060f3aef95bc82c5e49966c ------=_Part_2472_11427305.1214315761120 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Alex, this is also useful to me. I'm fresh here. On Tue, Jun 24, 2008 at 8:54 PM, Alex Schuster wrote: > 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 > > ------=_Part_2472_11427305.1214315761120 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Alex, this is also useful to me. I'm fresh here.

On Tue, Jun 24, 2008 at 8:54 PM, Alex Schuster <wonko@wonkology.org> wrote:
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

------=_Part_2472_11427305.1214315761120-- -- gentoo-user@lists.gentoo.org mailing list