I've recently installed Fedora 19. Packagekit-command-not-found is installed. But its own examples don't work. When I enter gedti
the output is:
bash: gedti: command not found... Similar command is: 'gedit'
And it works correctly but when I enter powertop, the output is:
bash: powertop: command not found...
With no suggestion about the package. Why? Should I edit some configuration files or update some cache or … ?
Best Answer
There is definitely some weirdness with PackageKit. I already had
powertop
installed but wanted to test out what you're having issues with.So from the above you can run the command that PackageKit will run to do the search like so:
Example
Running it a 2nd time I got it to recommend
powertop
:So why isn't it finding powertop?
I think that ultimately the root cause is the timeout that's defined in the config file:
/etc/PackageKit/CommandNotFound.conf
:This timeout is to cap how long PackageKit will take to do it's query. The query is not against your local Yum cache, it's searching live against Yum repositories that you have configured on the internet. Therefore if you want it to be more thorough vs. more performant you have the following trade-off: