Searching package repositories by contents

Solution 1:

You can use apt-file to search for files within packages

sudo apt-get install apt-file

# Update database
sudo apt-file update

# Search for files
apt-file search foo

# or in your case
apt-file search breqn.sty

I get texlive-latex3: /usr/share/texmf-texlive/tex/latex/mh/breqn.sty , so ...

sudo apt-get install texlive-latex3

See also http://www.debuntu.org/how-to-find-missing-packages-with-apt-file

Solution 2:

You're looking for texlive-latex3. I found this out by installing apt-file Install apt-file and using it like so:

apt-file update
apt-file search breqn.sty
texlive-latex3: /usr/share/texmf-texlive/tex/latex/mh/breqn.sty

Which gives me the package name and the file.

  • How do I figure out what package something is in without resorting to Google?