Unix Technical Forum

wild-card package search from command line

This is a discussion on wild-card package search from command line within the Debian Linux support forums, part of the Debian Linux category; --> Hello: I'm using kubuntu 7.04. I'm a command line type of fellow, but new to debian engineering. If I ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 08:41 AM
Tim Johnson
 
Posts: n/a
Default wild-card package search from command line

Hello:

I'm using kubuntu 7.04.

I'm a command line type of fellow, but new to debian engineering.

If I open the adept manager and type in "32" in the search window,
I get a list of packages (installed and uninstalled) associated
with that string.

What is the command-line syntax that will give me the same results,
so that I can capture those results?

Thanks
Tim

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 08:41 AM
s. keeling
 
Posts: n/a
Default Re: wild-card package search from command line

Tim Johnson <tim@johnsons-web.com>:
>
> I'm using kubuntu 7.04.
>
> I'm a command line type of fellow, but new to debian engineering.
>
> If I open the adept manager and type in "32" in the search window,
> I get a list of packages (installed and uninstalled) associated
> with that string.
>
> What is the command-line syntax that will give me the same results,
> so that I can capture those results?


aptitude update && aptitude search 32

There's lots of cool pattern matching thingies you can use but I've
never needed them enough to learn them. You only need to do the
update once per session.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 08:41 AM
SINNER
 
Posts: n/a
Default Re: wild-card package search from command line

* Tim Johnson wrote in alt.os.linux.debian:
> Hello:


> I'm using kubuntu 7.04.


> I'm a command line type of fellow, but new to debian engineering.


> If I open the adept manager and type in "32" in the search window,
> I get a list of packages (installed and uninstalled) associated
> with that string.


> What is the command-line syntax that will give me the same results,
> so that I can capture those results?


apt-cache search <search string> > file.txt

--
David
The Usenet Improvement Project: http://improve-usenet.org/

First law of debate:
Never argue with a fool. People might not know the difference.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 08:41 AM
Tim Johnson
 
Posts: n/a
Default Re: wild-card package search from command line

SINNER wrote:

> * Tim Johnson wrote in alt.os.linux.debian:
>> Hello:

>
>> I'm using kubuntu 7.04.

>
>> I'm a command line type of fellow, but new to debian engineering.

>
>> If I open the adept manager and type in "32" in the search window,
>> I get a list of packages (installed and uninstalled) associated
>> with that string.

>
>> What is the command-line syntax that will give me the same results,
>> so that I can capture those results?

>
> apt-cache search <search string> > file.txt
>

Wham! Thanks to both of you.
regards
Tim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 08:41 AM
Kai-Martin Knaak
 
Posts: n/a
Default Re: wild-card package search from command line

On Sat, 29 Sep 2007 08:17:36 -0800, Tim Johnson wrote:

> If I open the adept manager and type in "32" in the search window, I get
> a list of packages (installed and uninstalled) associated with that
> string.
>
> What is the command-line syntax that will give me the same results, so
> that I can capture those results?


I like the findpkg utility:
http://www.infodrom.org/Infodrom/tools/findpkg.html

---<(kaimartin)>---
--
Kai-Martin Knaak
http://lilalaser.de/blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 08:41 AM
Tim Johnson
 
Posts: n/a
Default Re: wild-card package search from command line

Kai-Martin Knaak wrote:

> I like the findpkg utility:
> http://www.infodrom.org/Infodrom/tools/findpkg.html
>
> ---<(kaimartin)>---

Thanks Kai.
Good tip!
BTW: Script didn't work with sh, got error: "(" unexpected
changed she-bang path to bash to make it work.
Regards
tim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:51 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com