X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com [209.85.192.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 2ECA8DC0147 for ; Mon, 2 Feb 2015 12:35:07 +0000 (UTC) Received: by mail-qg0-f41.google.com with SMTP id q108so47083018qgd.0 for ; Mon, 02 Feb 2015 04:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to:cc :mime-version:content-type:content-transfer-encoding:message-id; bh=jrHsLrB4S5kKc7QDWlyPXrEOB23x0oERcPFIlD414zU=; b=WLDtVX6aGRdyCCNuUz3I4ru+9kG63TWwkDTRe9b0P8llgp8iLapV4TxzyZIaLYMoMg F5vKFxP5wk3WCVX+6smVndj2yd/9xlTkGKrxnyYZ1YctpdUxE2AwcL95Kv+/r3KCnjNs Z53aGsJg9pJRdOTFHV1eNCWCbs40M93zIy5j0az6UPV4tDT6mHtGRm2GwEnEd/nn1Y6Q y6V2N8KTL4VKECKjIxTBrSi6EyAo6OlD2Urjd42+G9VicKMYkuxvggxN2AAtzbtOC+eK c7OaxzZJWbzkrDoEnCxMEE6XUmjoCyck9jXJQMqYHuzeeQFwsIGRfzDjO2NUY8u7Plzl Gp3g== X-Received: by 10.140.28.200 with SMTP id 66mr35561639qgz.16.1422880507254; Mon, 02 Feb 2015 04:35:07 -0800 (PST) Received: from microknoppix.localnet ([59.93.183.27]) by mx.google.com with ESMTPSA id y5sm18129964qah.38.2015.02.02.04.35.06 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 04:35:06 -0800 (PST) From: "V.Krishn" Reply-To: vkrishn4@gmail.com To: Natanael Copa Subject: Re: [alpine-devel] apk package rollback feature? Date: Mon, 2 Feb 2015 18:05:00 +0530 User-Agent: KMail/1.13.7 (Linux/3.9.6-64; KDE/4.8.4; x86_64; ; ) References: <20150129120227.2d69bb49@ncopa-desktop.alpinelinux.org> In-Reply-To: <20150129120227.2d69bb49@ncopa-desktop.alpinelinux.org> Cc: alpine-devel@lists.alpinelinux.org X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201502021805.00487.vkrishn4@gmail.com> > On Thu, 22 Jan 2015 09:49:36 -0800 > > Thomas Zelch wrote: > > Hi, > > > > Yesterday i ran into an issue with the linux-grsec package. > > Which version was it? > > > I searched the wiki and help output of apk, but couldn't find a way to > > downgrade the package comfortably. > > I ended up taking an older version of the package from an older iso file > > that i still had in my downloads folder. > > > > Is there a more comfortable way implemented? > > If not, what does everybody think about it? > > I think it would be a great addition. > > I think so too but there are no easy way to solve it. Partially because > there are different ways to run alpine. for example, if you run a > diskless (aka tmpfs) install, the boot media will not be in a package. > Instead it will be a kernel and modloop squashfs image on boot media. > We now have an experimental update-kernel which could have support for > this. I am not sure how in diskless-mode the kernel+modloop squashfs image would be effectively updated, does this not require rebooting ?? If it does not I can think over it ! > > For traditional disk installs, we would need keep old versions of > packages. I think this is ok-ish for stable release branches but not > for edge as it would mean we would keep every package ever built. Suggestion for updates (for every pointy git tag in stable version), http://nl.alpinelinux.org/alpine/v3.1/updates/1 i.e /updates/ then, Add logic to process http://nl.alpinelinux.org/alpine/v3.1/updates directory in `apk` application (reason, this would save one to add extra line in /etc/apk/repositories). > > Alternatively we would need create new package for each kernel version, > so you could have multiple kernel packages installed in parallel. I > don't know if we want that either. > > Other options would be to do LVM snapshots before upgrade and do > rollback of that in case emergency. That would be kinda nice because it > would make the upgrade/rollback atomic. that would not work with the > kernel itself though because /boot on LVM is not supported... > > I am open to other ideas how to properly implement a kernel rollback > feature. With above pkgs method implemented, there can be, `apk tag=test123` "This will capture the current state of /etc/apk/world with versions of pkgs installed" `apk update` `apk upgrade` ALT-METHOD `apk upgrade tag=test123` "ahh this not a good upgrade !! what to do !!" `apk rollback=test123` "Voila!!" (but still open to issues it may create) Regards. V.Krishn --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---