Re: Ubuntu 1, Fedora 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hikaru Amano <kagesenshi.87 <at> gmail.com> writes:
> just noticed something new on the net
> 
> http://niath.blogspot.com/2007/03/command-not-found.html
> 
> https://launchpad.net/ubuntu/feisty/+source/command-not-found
> 
> guess like another +1 for ubuntu .. how about a port for yum from
> Fedora?? or perhaps for apt-rpm

This definitely can't be packaged without porting, even for apt-rpm, there's 
plenty of dpkg-specific code in create-binary-database. On the other hand, the 
runtime code requires just a s/Ubuntu/Fedora/g, but it isn't useful without the 
database, and the scripts to write that database have to be essentially 
rewritten to work with RPM.

Another problem is that this assumes the available set of packages is static 
(the database is generated once at build time and then never touched, that's 
why it is so fast), so in the context of Fedora, it would require regular 
rebuilds to deal with the new packages which show up regularly in Extras. An 
alternative approach would be to query the repository metadata directly at 
runtime using something like repoquery, but that would be a lot slower. It 
could however be implemented with only a few lines of bash around repoquery 
(the single line "repoquery --whatprovides /usr/bin/$1 /bin/$1" would be enough 
for a basic implementation of command-not-found).

        Kevin Kofler


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux