- Download the missing package from Internet.
- Extract it somewhere
- Look for a file that has .ins format.
- Run a command
latex file_name.insIt will generate files with .sty format. - Create a new folder with appropriate package name e.g., curves. Copy .sty to /usr/share/texlive/texmf-dist/tex/latex/new_folder/
- Run
texhash
for reloading latex cache.