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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux