| Author |
wild-card package search from command line
|
|
| Tim Johnson 2007-09-29, 1:12 pm |
| 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
| |
| s. keeling 2007-09-29, 1:12 pm |
| 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.
| |
| SINNER 2007-09-29, 1:12 pm |
| * 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.
| |
| Tim Johnson 2007-09-29, 1:12 pm |
| SINNER wrote:
> * Tim Johnson wrote in alt.os.linux.debian:
>
>
>
>
>
> apt-cache search <search string> > file.txt
>
Wham! Thanks to both of you.
regards
Tim
| |
| Kai-Martin Knaak 2007-10-01, 7:12 pm |
| 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
| |
| Tim Johnson 2007-10-02, 1:15 am |
| 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
|
|
|
|