"apt-cache search" should find packages containing matching file name

Bug #12464 reported by Johan Walles
6
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Wishlist
Matt Zimmerman

Bug Description

Do "apt-cache search dos2unix".

Current result:
No match.

Expected result:
Since "sysutils" contains "/usr/bin/dos2unix", I expected "apt-cache search
dos2unix" to find "sysutils".

Revision history for this message
Michael Vogt (mvo) wrote :

This is not feasible for apt. The amount of data that would have to be
transfered for the "universe" repository would be too big. But there is the
"apt-file" package that can do exactly this.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

The proposed enhancement is impossible, and an alternative solution is available.

Revision history for this message
Johan Walles (walles) wrote :

What's the alternative solution?

Revision history for this message
Colin Watson (cjwatson) wrote :

(In reply to comment #3)
> What's the alternative solution?

As Michael Vogt said in comment #1, 'But there is the "apt-file" package that
can do exactly this.' (It does so by way of a separate 'apt-file update' command
that takes more time.)

Revision history for this message
Matt Zimmerman (mdz) wrote :

(In reply to comment #2)
> The proposed enhancement is impossible, and an alternative solution is available.

It certainly isn't impossible, but there is a tool available which provides this
functionality, and it does not make sense for us to integrate it into apt at the
present time.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.