[gentoo-user] Re: How to list sizes of installed packages?
On 2006-12-06, Alan McKinnon [EMAIL PROTECTED] wrote: Because some equery commands search for packages (ideally suited for a regex), and others by design operate on a single package (where using regexes don't make any sense). But that differentiation seems purely artificial. What is there about the print size operation that makes it something you can't or shouldn't do on multiple packages? Why shouldn't the operation of pkgspec and command be orthogonal? pkgspec selects zero or more packages and the command operates on the selected package. It should, but alas it doesn't. It was coded that way. Why the limitation that some commands only operate on one package? Because the dev decided to do it that way. It all makes perfect sense when you realize this, but no-one expects you to realize it immediately :-) Well, it seems pretty non-intuitive and non-orthogonal to me. I guess that's a result of many years of shell usage where commands like rm and ls work equally well on a single file or multiple files. There's only one way you are going to get equery to behave like you want - become the maintainer and code it like you want. I know. :) However, for most of what I want to do, the q utils seem much closer to the mark. -- Grant Edwards grante Yow! BARBARA STANWYCK at makes me nervous!! visi.com -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: How to list sizes of installed packages?
On Tue, 2006-12-05 at 21:56 +, Grant Edwards wrote: On 2006-12-05, Alan McKinnon [EMAIL PROTECTED] wrote: That's nasty. Why do some equery commands accept regexes and others dont? Because some equery commands search for packages (ideally suited for a regex), and others by design operate on a single package (where using regexes don't make any sense). But that differentiation seems purely artificial. What is there about the print size operation that makes it something you can't or shouldn't do on multiple packages? Why shouldn't the operation of pkgspec and command be orthogonal? pkgspec selects zero or more packages and the command operates on the selected package. Why the limitation that some commands only operate on one package? It all makes perfect sense when you realize this, but no-one expects you to realize it immediately :-) Well, it seems pretty non-intuitive and non-orthogonal to me. I guess that's a result of many years of shell usage where commands like rm and ls work equally well on a single file or multiple files. Okay, I've modified the size command to accept regular expressions and basically work like the equery list command. I will look at what needs to be done for the other commands as well. $ svn commit -m Modify equery size command to work like the equery list command for pkgspec arguments SendingChangeLog Sendingsrc/equery/equery Sendingsrc/equery/equery.1 Transmitting file data ... Committed revision 325. Regards, Paul signature.asc Description: This is a digitally signed message part
[gentoo-user] Re: How to list sizes of installed packages?
On 2006-12-05, Bo Ørsted Andresen [EMAIL PROTECTED] wrote: # equery list xorg | while read pkg; do equery size =${pkg}; done That's nasty. Why do some equery commands accept regexes and others dont? -- Grant Edwards grante Yow! Youth of today! Join at me in a mass rally visi.comfor traditional mental attitudes! -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: How to list sizes of installed packages?
On Tuesday 05 December 2006 21:16, Grant Edwards wrote: On 2006-12-05, Bo Ørsted Andresen [EMAIL PROTECTED] wrote: # equery list xorg | while read pkg; do equery size =${pkg}; done Bah.. The above was just for testing it before I sent it. For all packages it should of course be: # equery list | while read pkg; do equery size =${pkg}; done That's nasty. Why do some equery commands accept regexes and others dont? Because equery isn't really being maintained. Lets just say it leaves a /lot/ of room for improvement... Feel free to supply patches to improve it... -- Bo Andresen pgpp0Gjjbod4f.pgp Description: PGP signature
Re: [gentoo-user] Re: How to list sizes of installed packages?
Bo =?iso-8859-1?q?=D8rsted_Andresen?= writes: --nextPart5713396.8Ph2VuCcD6 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 05 December 2006 21:16, Grant Edwards wrote: On 2006-12-05, Bo =D8rsted Andresen [EMAIL PROTECTED] wrote: # equery list xorg | while read pkg; do equery size =3D${pkg}; done Bah.. The above was just for testing it before I sent it. For all packages = it=20 should of course be: # equery list | while read pkg; do equery size =3D${pkg}; done That's nasty. Why do some equery commands accept regexes and others dont? Because equery isn't really being maintained. Lets just say it leaves a /lo= t/=20 of room for improvement... Feel free to supply patches to improve it... =2D-=20 Bo Andresen Not maintained? I thought it was the tool of choice for what it does. I thought it was intended to replace the 'q' utilities. I actually just started having a problem with it the other day, using the 'list' command. It gets upset when I use the '-p' or '-o' option to list, unless the user happens to be root: [EMAIL PROTECTED] ~ $ equery list -i nvidia-drivers [ Searching for package 'nvidia-drivers' in all categories among: ] * installed packages [I--] [ ~] x11-drivers/nvidia-drivers-1.0.9742 (0) [EMAIL PROTECTED] ~ $ equery list -p nvidia-drivers [ Searching for package 'nvidia-drivers' in all categories among: ] !!! The query 'nvidia-drivers' does not appear to be a valid regular expression ece06 ~ # equery list -p gentoolkit [ Searching for package 'gentoolkit' in all categories among: ] * installed packages [I--] [ ~] app-portage/gentoolkit-0.2.2 (0) [I--] [ ] app-portage/gentoolkit-dev-0.2.5 (0) * Portage tree (/usr/portage) [-P-] [M~] app-portage/gentoolkit-0.2.3_pre1 (0) [-P-] [M~] app-portage/gentoolkit-0.2.3_pre2 (0) [-P-] [M~] app-portage/gentoolkit-dev-0.2.6.1 (0) -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: How to list sizes of installed packages?
On 2006-12-05, Bo Ørsted Andresen [EMAIL PROTECTED] wrote: --nextPart5713396.8Ph2VuCcD6 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 05 December 2006 21:16, Grant Edwards wrote: On 2006-12-05, Bo Ørsted Andresen [EMAIL PROTECTED] wrote: # equery list xorg | while read pkg; do equery size =${pkg}; done Bah.. The above was just for testing it before I sent it. For all packages it should of course be: # equery list | while read pkg; do equery size =${pkg}; done That's nasty. Why do some equery commands accept regexes and others dont? Because equery isn't really being maintained. Lets just say it leaves a /lot/ of room for improvement... Feel free to supply patches to improve it... Has it been replaced by something else? -- Grant Edwards grante Yow! Let's go to CHURCH! at visi.com -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: How to list sizes of installed packages?
On Tue, 05 Dec 2006 12:39:56 -0800, Bryan Green wrote: Because equery isn't really being maintained. Lets just say it leaves a lot of room for improvement... Feel free to supply patches to improve it... Not maintained? I thought it was the tool of choice for what it does. I thought it was intended to replace the 'q' utilities. It's more the other way round. To answer the original question, use qsize -a -- Neil Bothwick Press any key... no, no, no, NOT THAT ONE! signature.asc Description: PGP signature
Re: [gentoo-user] Re: How to list sizes of installed packages?
On Tuesday 05 December 2006 22:26, Neil Bothwick wrote: On Tue, 05 Dec 2006 12:39:56 -0800, Bryan Green wrote: Because equery isn't really being maintained. Lets just say it leaves a lot of room for improvement... Feel free to supply patches to improve it... Not maintained? I thought it was the tool of choice for what it does. I thought it was intended to replace the 'q' utilities. It's more the other way round. If I recall correctly Bryan is right about that there was a time when equery was being pushed as the grand replacement for the portage-utils. I think portage-utils has improved since then and as the gentoolkit bugs has accumulated portage-utils does seem superior for a number of purposes... To answer the original question, use qsize -a Ahh, thanks - I always tend to forget that.. ;) -- Bo Andresen pgpS68sWVkBjv.pgp Description: PGP signature
[gentoo-user] Re: How to list sizes of installed packages?
On 2006-12-05, Alan McKinnon [EMAIL PROTECTED] wrote: That's nasty. Why do some equery commands accept regexes and others dont? Because some equery commands search for packages (ideally suited for a regex), and others by design operate on a single package (where using regexes don't make any sense). But that differentiation seems purely artificial. What is there about the print size operation that makes it something you can't or shouldn't do on multiple packages? Why shouldn't the operation of pkgspec and command be orthogonal? pkgspec selects zero or more packages and the command operates on the selected package. Why the limitation that some commands only operate on one package? It all makes perfect sense when you realize this, but no-one expects you to realize it immediately :-) Well, it seems pretty non-intuitive and non-orthogonal to me. I guess that's a result of many years of shell usage where commands like rm and ls work equally well on a single file or multiple files. -- Grant Edwards grante Yow! Are you selling NYLON at OIL WELLS?? If so, we can visi.comuse TWO DOZEN!! -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: How to list sizes of installed packages?
On Tue, 5 Dec 2006 23:09:33 +0100, Bo Ørsted Andresen wrote: If I recall correctly Bryan is right about that there was a time when equery was being pushed as the grand replacement for the portage-utils. I think portage-utils has improved since then and as the gentoolkit bugs has accumulated portage-utils does seem superior for a number of purposes... It's also a LOT faster for many operations. -- Neil Bothwick One of the nice things about standards is that there are so many of them. signature.asc Description: PGP signature
Re: [gentoo-user] Re: How to list sizes of installed packages?
On Tuesday 05 December 2006 23:56, Grant Edwards wrote: On 2006-12-05, Alan McKinnon [EMAIL PROTECTED] wrote: That's nasty. Why do some equery commands accept regexes and others dont? Because some equery commands search for packages (ideally suited for a regex), and others by design operate on a single package (where using regexes don't make any sense). But that differentiation seems purely artificial. What is there about the print size operation that makes it something you can't or shouldn't do on multiple packages? Why shouldn't the operation of pkgspec and command be orthogonal? pkgspec selects zero or more packages and the command operates on the selected package. It should, but alas it doesn't. It was coded that way. Why the limitation that some commands only operate on one package? Because the dev decided to do it that way. It all makes perfect sense when you realize this, but no-one expects you to realize it immediately :-) Well, it seems pretty non-intuitive and non-orthogonal to me. I guess that's a result of many years of shell usage where commands like rm and ls work equally well on a single file or multiple files. There's only one way you are going to get equery to behave like you want - become the maintainer and code it like you want. alan -- gentoo-user@gentoo.org mailing list