Re: script to list installed packages

2004-02-01 Thread Edward J. Shornock
Nick Hastings wrote: * Dave Carrigan [EMAIL PROTECTED] [040130 00:46]: On Thu, Jan 29, 2004 at 07:58:36PM +0900, Nick Hastings wrote: No I don't think so, note the -w flag. It will only match if the package name _is_ install. That is correct, the -w flag makes it catch the entire word

Re: script to list installed packages

2004-02-01 Thread Edward J. Shornock
Michael D Schleif wrote: dpkg -l | grep ^i hth That's what I used to use, but you'd have to specify something like COLUMNS='150' dpkg -l |grep ^i Otherwise, you'll have names like this returned: ii xtightvncviewe 1.2.7-3Virtual network computing client software fo Notice how

Re: script to list installed packages

2004-01-29 Thread Nick Hastings
* [EMAIL PROTECTED] [EMAIL PROTECTED] [040129 15:24]: Jamin W. Collins wrote: On Thu, Jan 29, 2004 at 12:27:11AM -0500, [EMAIL PROTECTED] wrote: I know that somewhere there is a command to list all installed packages Perhaps dpkg --get-selections would be a good starting point? I'd

Re: script to list installed packages

2004-01-29 Thread Dave Carrigan
On Thu, Jan 29, 2004 at 07:58:36PM +0900, Nick Hastings wrote: Careful, dpkg --get-selections doesn't always list only installed packages Try: dpkg --get-selections | grep -w install | cut -f1 To be pedantic, this will fail if a package has the string install in its name and is in a

Re: script to list installed packages

2004-01-29 Thread Michael D Schleif
* [EMAIL PROTECTED] [EMAIL PROTECTED] [2004:01:29:00:27:11-0500] scribed: Hi all, I know that somewhere there is a command to list all installed packages (I even remember using it way back when...), but I can't seem to find it. I've looked at the various apt utility man pages and have not

Re: script to list installed packages

2004-01-29 Thread Pedro M.
[EMAIL PROTECTED] wrote: Hi all, I know that somewhere there is a command to list all installed packages (I even remember using it way back when...), but I can't seem to find it. I've looked at the various apt utility man pages and have not found anything, even for apt-cache. I'm trying to

Re: script to list installed packages

2004-01-29 Thread Monique Y. Herman
On 2004-01-29, Pedro M. penned: [EMAIL PROTECTED] wrote: Hi all, I know that somewhere there is a command to list all installed packages (I even remember using it way back when...), but I can't seem to find it. I've looked at the various apt utility man pages and have not found anything,

Re: script to list installed packages

2004-01-29 Thread [EMAIL PROTECTED]
Thanks, for all the replies, they've been very helpfull. At this point I should probably clarify what I'd like to do, since thinking about it has brought about some changes. Dpkg keeps a record of a few things- mainly package lists, their current state, and their selected state. This is all

Re: script to list installed packages

2004-01-29 Thread Monique Y. Herman
On 2004-01-29, [EMAIL PROTECTED] penned: The origional idea for this was for instances of having installed something to try it out, then removing it. If a bunch of dependencies were pulled in, I don't remember what they are. Over time this leads to lots of cruft on the system that takes

Re: script to list installed packages

2004-01-29 Thread Nano Nano
On Thu, Jan 29, 2004 at 02:21:38PM -0500, [EMAIL PROTECTED] wrote: The origional idea for this was for instances of having installed something to try it out, then removing it. If a bunch of dependencies were pulled in, I don't remember what they are. Over time this leads to lots of

Re: script to list installed packages

2004-01-29 Thread Nick Hastings
* Dave Carrigan [EMAIL PROTECTED] [040130 00:46]: On Thu, Jan 29, 2004 at 07:58:36PM +0900, Nick Hastings wrote: Careful, dpkg --get-selections doesn't always list only installed packages Try: dpkg --get-selections | grep -w install | cut -f1 To be pedantic, this will fail if a

script to list installed packages

2004-01-28 Thread [EMAIL PROTECTED]
Hi all, I know that somewhere there is a command to list all installed packages (I even remember using it way back when...), but I can't seem to find it. I've looked at the various apt utility man pages and have not found anything, even for apt-cache. I'm trying to write a script to run the

Re: script to list installed packages

2004-01-28 Thread Jamin W. Collins
On Thu, Jan 29, 2004 at 12:27:11AM -0500, [EMAIL PROTECTED] wrote: I know that somewhere there is a command to list all installed packages Perhaps dpkg --get-selections would be a good starting point? -- Jamin W. Collins Linux is not The Answer. Yes is the answer. Linux is The Question. -

Re: script to list installed packages

2004-01-28 Thread [EMAIL PROTECTED]
Jamin W. Collins wrote: On Thu, Jan 29, 2004 at 12:27:11AM -0500, [EMAIL PROTECTED] wrote: I know that somewhere there is a command to list all installed packages Perhaps dpkg --get-selections would be a good starting point? Doh! I completely forgot about dpkg, I'm so used to apt. This