X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-ew0-f221.google.com (mail-ew0-f221.google.com [209.85.219.221]) by lists.alpinelinux.org (Postfix) with ESMTP id 5684A360F71C for ; Tue, 2 Mar 2010 09:18:09 +0000 (UTC) Received: by ewy21 with SMTP id 21so16738ewy.25 for ; Tue, 02 Mar 2010 01:18:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=eAiyKrMOfgxQ2DYfk91lntiN2lljbewhW/nhg9eD2j8=; b=skdP66VhfS3XLbqlXcw2E2OsMHuCYX/9nhO4Ig/ilXcCFeUAsliZDs1bCN2jlubY+7 sK9Zp62K1FxYJRt7R/F7vakWj+KEE8im8NXhWfciY0vOmzrtHAn5FF6srFYNax7x/enh 7CVC48yYF7WuT+Y8GynKX+E5GeBDIGfvqGvGQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XljS4f1tc5gg6xzpbifTPnx4MDoYO0t/wGgRnL+Zw3LxuuR+ggPKxGXngkuB2QzYgj ggw9usS3JPOYioklAM5W3COfGx58rc9Moua7vqNtEahVyj630VR9l+s75XtlCZ5FSqPG l2ayTQazLIs+bWugd2LS19l3JL//N9HZ10dSY= X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.213.1.147 with SMTP id 19mr732672ebf.57.1267521488830; Tue, 02 Mar 2010 01:18:08 -0800 (PST) Date: Tue, 2 Mar 2010 10:18:08 +0100 Message-ID: <95408c821003020118v437a7a55j9f6200c70cc06e6f@mail.gmail.com> Subject: [alpine-devel] RFC: apk-tools user interface From: Natanael Copa To: Alpine Developers Content-Type: text/plain; charset=ISO-8859-1 Hi, The apk-tools user interface have some leftovers from apk-tools-1.x which had an user interface similar to freebsd's pkg-tools. I don't see any point in that anymore and i think its time to think over the user interface for apk tools. I think we want keep 'apk add' and 'apk del' like they are more or less for compatibility but I think it might be good redo some of the other applets, at least 'apk info'. How about we make a new applet called 'apk query' that eventually will replace the 'apk info' applet? Some ideas: list files owned by package(s): apk query --list ... apk query -l ... list installed package: apk query --installed apk query -I find package that owns given file(s): apk query --owns ... apk query -o ... list toplevel packages: apk query --world apk query -w list dependencies for package(s): apk query --depend ... apk query -d ... (maybe have recursive option for this...) list reverse dependencies for package(s): apk query --revdep ... apk query -D ... list orphans (installed packages that is not in world nor have reverse deps) apk query --orphans (or --unrequired?) apk query -O list packages installed thats not in index (this useful before doing upgrades): apk query --foreign show information for package (same as 'apk query --description --homepage --size') We could have flags for opening either index, installed database or both (by default only installed db?) Might also want the stuff thats provided by apk info: --homepage, -H (or --url, -u) --pre-install --post-install --scripts, -S --description (or --summary or --comment?), -c --triggers, -t --size, -s --is-installed, -q (or --query -q or --evaluate, -e or something else) Maybe we could have a flag for opening a file instead of installed db or index, so you can: apk query --info foo-1.9-r0.apk I'm open to other ideas for apk-tools command line interface. -- Natanael Copa --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---