apt-file list cannot find exact string

Asked by Eus

I want to list the content of package "bc". However, doing "apt-file list bc" returns the contents of all packages having "bc" in their names like "libc". Is there a way to tell apt-file to find exactly a package having name "bc"?

I have tried to use search pattern: ?name("^bc$"), which works in aptitude search but not in "apt-file list".

I use Jaunty 9.04.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt-file Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Jaunty is no longer supported so I suggest you upgrade to at least Lucid as Karmic support dies next month too.

You can find the files with:

dpkg -L bc

Revision history for this message
Eus (eus-member) said :
#2

Yup, "dpkg -L" solves the problem with "bc". Thanks.

BTW, "dpkg -L" requires the package to be listed to be already installed in the system. Therefore, is suppose "bc" is not installed in my system, "dpkg -L" will not work. In this case, is there a way to tell "apt-file list" to list the content of the package having exactly the name "bc"?

Thank you.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Not sure there dude, maybe someone else can chip in

Revision history for this message
Sam_ (and-sam) said :
#4
Revision history for this message
Eus (eus-member) said :
#5

Hi Sam!

--fixed-string does not work.

The GUI method although works gives me the following warning:
"Your keyword was too generic, for optimizing reasons some results might have been suppressed.
Please consider using a longer keyword or more keywords."

In other words, I bet apt-file does not understand what it means to search for an exact string. How to tell this to the maintainer of apt-file? "aptitude show apt-file" only returns a generic e-mail address Ubuntu MOTU Developers <email address hidden>.

Thanks.

Revision history for this message
Best Sam_ (and-sam) said :
#6

I'd say report a bug, tag wishlist.
https://launchpad.net/ubuntu/+source/apt-file

With 'GUI method' I meant open the link of bc which provides list of files.
e.g. lets say for Maverick
http://packages.ubuntu.com/maverick/bc
64 bit files
http://packages.ubuntu.com/maverick/amd64/bc/filelist

Revision history for this message
Eus (eus-member) said :
#7

Thank you for the information :-)

Revision history for this message
Eus (eus-member) said :
#8

Thanks Samantha (aka Sam), that solved my question.