パッケージ検索したい(kpsewhich

$ kpsewhich -version
kpathsea version 6.4.0


$ kpsewhich パッケージ名.sty
$ kpsewhich クラス名.cls

kpsewhichコマンドで、TeX関係のファイルを検索できます。 パッケージ名.styクラス名.clsのように拡張子が必要です。

注釈

kpseは、TeX関連のファイル検索に使われているKpathsearchというライブラリのことだそうです。

基本設定を確認したい(texmf.cnf

$ kpsewhich -all texmf.cnf
/usr/local/texlive/2024/texmf.cnf
/usr/local/texlive/2024/texmf-dist/web2c/texmf.cnf

$ cat /usr/local/texlive/2024/texmf.cnf
% (Public domain.)
% This texmf.cnf file should contain only your personal changes from the
% original texmf.cnf (for example, as chosen in the installer).
%
% That is, if you need to make changes to texmf.cnf, put your custom
% settings in this file, which is .../texlive/YYYY/texmf.cnf, rather than
% the distributed file (which is .../texlive/YYYY/texmf-dist/web2c/texmf.cnf).
% And include *only* your changed values, not a copy of the whole thing!
%
TEXMFHOME = ~/Library/texmf
TEXMFVAR = ~/Library/texlive/2024/texmf-var
TEXMFCONFIG = ~/Library/texlive/2024/texmf-config

TeXの基本設定はtexmf.cnfに保存されています。 kpsewhichでそのパスを確認できます。

注釈

findmdfindでも同様に検索できますが、TeX関連のファイルであればkspewhichが効率的です。