Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-oln040092071021.outbound.protection.outlook.com [40.92.71.21]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 54700782B45 for <~alpine/users@lists.alpinelinux.org>; Thu, 2 Jul 2020 21:25:03 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DWZoMdEhdfPiZJ+njost2+6BBF7CRGLwoIN6iRG+OOHY4Gk8Y7JAxmUXWVfeBzkx9HqPIHNLjO8tGVAwulOXXVjVKNF+pZg4y3OUMWRyJBS+s2cwSEHFQQdXZVWg/hTHPn21d5MuuJOC/3SbT2CVc3FqDts3fDhTeWEoQdyj77qisgEqW50rIisr/VwcsISmbR6cvUDr4efrrA2CO8uZg3pgnmAY+p1ZD5h6hMDD+PlEU4vkbGqvapCXp+lD+NByGlFx7O8eJpT1VBbbK6GYIA7AF4ghuEesbEcZuQWOSosUjD78GliwUHxxbrYmiHX4jClf2M4Br3o6GEbG5k4yGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=01Htbkx58Pr4YfJ51zJDL48mQkoJOU+zlEpUHgOQTR4=; b=cZ+qpjhGLsCjmvA5CK1tOn2IZX2d83tb2BzStEBhDHrtTtTRo2Xbb3S0//mDiJoKghiDKCSC8swl60JoyWDQjr2Cprs1XlB6x3FVb4hvRkQam/tUXgKkqMx83qUJCFekoNw+/Lo7EvsjOv6nLocRjaprEGgtsFqHxuaNIgp8do5P+90GFzzUjNJcnl5CSl7Cly8SeEem5x/3fDFRXkyepYDqAMPgBtAAtm87Pb3NjUtNJijEledGNqFkoslkmrLkQuxREPT70JlM2NIRmq0nRorymWOZd8GFTo+fs+fvIFcVf4dTc8+jvOyKpMlGLr/qto652ZHXgUdm0OcmsVMTpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=01Htbkx58Pr4YfJ51zJDL48mQkoJOU+zlEpUHgOQTR4=; b=i5OraALZqAxezMqRYBOjNITWz7i6r8x3iXDKFy6KU6NX5NbBbWvZ4MPXmKkAfQxN9PwcfiVra142J73pcNLnJCEpObtP2kLZWcBQndOzemCXUscrIuspnCAJ9x87s708bD1fsKzKiySl63xKvyPEfrH7l+WR+esIVttt5AvzaVY3kuNvofm+jU7POKxlzTdCYcASEyyaU2ILaclMhkJ1BRW6GRcyaRWSod0HeTR/91wOmA3OLs7MnHTg5gVEy0ZDC4lcWMnUggxj3L/0Wl3PqA9gOgPha/qWKwkpwotAObt6Ifep2YJmNkomBx7xuO7t7Wdo96zYmkwu6GiFj18kKw== Received: from DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com (2a01:111:e400:7e0a::4e) by DB5EUR03HT107.eop-EUR03.prod.protection.outlook.com (2a01:111:e400:7e0a::444) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.24; Thu, 2 Jul 2020 21:25:02 +0000 Received: from VI1PR08MB2911.eurprd08.prod.outlook.com (2a01:111:e400:7e0a::51) by DB5EUR03FT038.mail.protection.outlook.com (2a01:111:e400:7e0a::340) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.24 via Frontend Transport; Thu, 2 Jul 2020 21:25:02 +0000 Received: from VI1PR08MB2911.eurprd08.prod.outlook.com ([fe80::649d:7056:7774:145f]) by VI1PR08MB2911.eurprd08.prod.outlook.com ([fe80::649d:7056:7774:145f%7]) with mapi id 15.20.3131.028; Thu, 2 Jul 2020 21:25:02 +0000 From: Alin Mr To: "~alpine/users@lists.alpinelinux.org" <~alpine/users@lists.alpinelinux.org> Subject: get installed size for all installed packages? Thread-Topic: get installed size for all installed packages? Thread-Index: AQHWULUHvV46z8BN2kyK3duFuTeBTA== Date: Thu, 2 Jul 2020 21:25:02 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:DA2C08E5110D2C135DABB443BCFDF63B0EA4FE33F9CFAD8D754BF22EB80E8CB5;UpperCasedChecksum:D722E979E4FCEF714C706D8E87045EE94068A8D93B07478A1D91D805671623F1;SizeAsReceived:6715;Count:42 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [PKReLyJPy/2vvCjbftMjBDamxOje62Ri] x-ms-publictraffictype: Email x-incomingheadercount: 42 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 424e897a-fd93-4371-045b-08d81ece61c3 x-ms-traffictypediagnostic: DB5EUR03HT107: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: cxJsNPExCJEjEm1OO3ajfNZwJKOuQiBTiC60YqBUka6Z/JBVh/xBCn6Kb6dsqPaVS9m7BjCx8JMH14aXxUn97CeVyyIiC/edZOf2d0AOicwdRCu9sLVlqyngYGxuy70G9rmLh7QRDUjnwyWW/hSsr5xBrJWdMC6ct5npUX8Xpg5uMCu7bnpQX7WZNelLiNaKWnxB1vBH4wPWzm2AbYEDRA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB2911.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; x-ms-exchange-antispam-messagedata: qBVImuJaTv66xKqtLbos7agNSo1miM1ZEv7nHWxRb/ru3oz0ohDlcjTE4B4/Px8Dv1FBoSHSXoDpwWfV8/9BswXKtRn1TuXCUs9093OYHq8O2s9OARJCLV9qqNyh8+KQ3/jGHYAwSzn8TdiTqQ3gNg== x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_VI1PR08MB2911E09DC6FB7661ABAB4F68F76D0VI1PR08MB2911eurp_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 424e897a-fd93-4371-045b-08d81ece61c3 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2020 21:25:02.4102 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR03HT107 --_000_VI1PR08MB2911E09DC6FB7661ABAB4F68F76D0VI1PR08MB2911eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I can get a list of canonical names (no version suffix) for all install= ed packages using 'apk info'. I can also get the size of several packages, summer installed and some not,= using 'apk info -s pkg'. That is, if I call 'apk info -s vim' I will get t= he size of vim, and also gvim, which is not installed. I eventually found out that I can use 'info -es' instead of 'info -es' and = it will limit itself to existing packages. But I'm not sure this is the rig= ht way, and I don't know what kind of pattern matching info does instead of= simply displaying the installed package. Advice? --_000_VI1PR08MB2911E09DC6FB7661ABAB4F68F76D0VI1PR08MB2911eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi, I can get a list of canonical names (no version suffix) for all install= ed packages using 'apk info'.

I can also get the size of several packages, summer installed and some not,= using 'apk info -s pkg'. That is, if I call 'apk info -s vim' I will = get the size of vim, and also gvim, which is not installed.

I eventually found out that I can use 'info -es' instead of 'info -es' and = it will limit itself to existing packages. But I'm not sure this is the rig= ht way, and I don't know what kind of pattern matching info does instead of= simply displaying the installed package.

Advice?


--_000_VI1PR08MB2911E09DC6FB7661ABAB4F68F76D0VI1PR08MB2911eurp_--