X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id C754DDC0145 for ; Mon, 5 Nov 2012 11:58:52 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id b5so5122646lbd.13 for ; Mon, 05 Nov 2012 03:58:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=weVGVedF/eHX458ZRggWfkbfsjbKtMdSPkYZ2sbMAYw=; b=Z4U/XQ4LqQNcLjMVUY63htwuWX8kTjlRaXye6vbTfhO4eSW2nM3RsO2Bvj6amAr5aN As4lHDwR3YGdaQ/pzIzqWqxn9YPrhkbcLt+CbYoh1BW6uZbqQBP2mX5w0q8mdlOO5JY/ 0gnEyKlpy9+xSAqqAUcTDGXHMBv3khA+ZuKQYDfMC+ZmQIHcP7906luIT7dri2dl0ELV SjrayoGNq+WksOFDp2x4K/mtTbjYKBaJ8cZq+yEQ2pfIo55wPRApiOyee6KkML6/seY+ 9lZ0R0P92ojRc/vOi+4KQOLE8sbvDeTdbkkH982uAeYL8KfQ0ulxwX+fhYU8OYHAuBpC VyWA== Received: by 10.152.114.100 with SMTP id jf4mr9018306lab.47.1352116730534; Mon, 05 Nov 2012 03:58:50 -0800 (PST) Received: from vostro ([2001:1bc8:101:f402:21c:23ff:fefc:bf0b]) by mx.google.com with ESMTPS id m6sm5672769lbh.10.2012.11.05.03.58.49 (version=SSLv3 cipher=OTHER); Mon, 05 Nov 2012 03:58:49 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Mon, 5 Nov 2012 13:57:40 +0200 From: Timo Teras To: Dubiousjim Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Other questions about apk-tools Message-ID: <20121105135740.47b8826d@vostro> In-Reply-To: <20121105112118.GD2343@vaio.jimpryor.net> References: <20121105112118.GD2343@vaio.jimpryor.net> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; i686-pc-linux-gnu) 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 On Mon, 5 Nov 2012 06:21:18 -0500 Dubiousjim wrote: > 1. I don't really understand the rules for the "-a" flag on apk > upgrade. > > When I say `apk upgrade -a --simulate` I get a list of 16 potential > downgrades (apparently one package has been withdrawn, only an older > version is now in the repos) and replacements (the rest of the list). > > Why are just those packages chosen to be replaced? When I say > `apk info | wc -l` I get 180. There are more than 15 items listed in > /etc/apk/world, too. I'm completely unclear on what determines > whether a package should get replaced when using the "-a" flag. -a says "make sure the installed package is available from repository currently - if not reinstall it" So basically the packages it wants to reinstall are packages that are not in any of your current repository list. Likely you either compiled them yourself, or they've been recompiled upstream (e.g. you installed the package from v2.3 - and upgraded repositories to be only v2.4 where the version is exactly same, but the package is different due to rebuild). > 2. Some documentation glitches I noticed: The usage for `apk version` > lists one option as `-l LIMCHAR`. But this option accepts multiple > LIMCHARs, so perhaps the usage message should be pluralized. Will fix. > 3. Another? The usage for `apk info` says "Give detailed information > about PACKAGEs or repositories." But I can't see any way to use > `apk info` to get information about a repository; is there something > I'm missing? Perhaps this message should also be changed to specify > that the information can only be provided for installed packages? > > If desired, I'll move these two suggestions to the bugtracker. Maybe create a bug about this. This is what we envisioned the yet unimplemented 'apk policy' for, but some of it should be also in 'apk info' output too. E.g. from which repositories the package is available from. Thanks, Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---