When installing latex packages for Latex. Users can either install texlive-basics or full version texlive. However, the basic version is light version uses much less strorage. Instead, full version texlive covers most of packages but more storage on disk.

Install texlive-basic

I choose to install texlive-basic and install the packages required for my Latex file.

1
sudo tlmgr install fontaxes

Then it shows

1
! LaTeX Error: File `fontaxes.sty' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read > \fi

Package not found by tlmgr

1
tlmgr install: package fontaxes.sty not present in repository.

We can search the file name directly and manually installs the .sty package.

  1. Search the .sty file and save it locally
  2. Find the Latex package libary location in the computer by following commands.
1
kpsewhich nccfoots.sty

where nccfoots.sty can be replaced by any installed package.

It returns like following result

1
/usr/local/texlive/2017basic/texmf-dist/tex/latex/nccfoots/nccfoots.sty

Therefore the libary directory is

1
/usr/local/texlive/2017basic/texmf-dist/tex/latex/

go to the directory

1
cd /usr/local/texlive/2017basic/texmf-dist/tex/latex/

create a folder with same name in the libary directory.

1
mkdir fontaxes

copy fontaxes.sty in the folder

1
cp fontaxes.sty /usr/local/texlive/2017basic/texmf-dist/tex/latex/fontaxes

register the package.

1
texhash fontaxes.sty

The package dependency problem will be solved.

Comments