I've been needing this for some time; the ability to search for
apt-get packages on Ubuntu when I don't know the name of the
package. Turns out there's a corresponding utility for doing
this:
shell> apt-cache search <search string>
You'll want to be sure your repository is up to date with
apt-get update. Today I need DBI to get Perl
connected to MySQL, but can't figure out what the apt-get package
name is (I tried "DBI", "perl-DBI", "DBI-perl"). A search
immediately gives me what I need:
shell> apt-cache search dbi
libdbd-mysql-perl - A Perl5 database interface to the MySQL
database
libdbi-perl - Perl5 database interface by Tim Bunce
libxml-sax-perl - Perl module for using and building Perl SAX2
XML processors
And find that apt-get install libdbi-perl gets me
right back on the road.
Ubuntu (in …
[Read more]