Package: aptitude
Version: 0.8.13-5
Severity: wishlist
Today I wanted to upgrade the pacakge sudo but made a typo:
# aptitude upgrade suo
Couldn't find any package whose name is "suo", but there are 4 packages which 
contain "suo" in their name:
golang-github-bmatsuo-lmdb-go-dev festvox-suopuhe-lj festvox-suopuhe-mv 
festvox-suopuhe-common
Unable to apply some actions, aborting
Clearly, neither of the suggestions of aptitude is anywhere close to my 
intention.  I propose that aptitude searches approximately, akin to what 
tre-agrep does, and suggests first packages whose names deviate by 1 character 
from the asked one, then by two characters, then by three, …, and stops after 
it has listed all the packages with the current number of deviations (and 
increases the admissible number of deviations if less than 4 packages have been 
found so far) or until the list of the known packages is exhausted, whichever 
comes first.
Gratefully,
AlMa

Reply via email to