sage -i sagetex-2.0
Then, I created the folder
~/.texmf/tex
(for *.sty
files) and I edited the file /etc/texmf/texmf.cnf
by replacing the lineHOMETEXMF = $HOME/texmf
byHOMETEXMF = $HOME/.texmf
Then, I copied the sagetex.sty
: cp sage-3.4/examples/latex_embed/sagetex.sty ~/.texmf/tex/
and I ran the command
sudo texhash
This allowed me to use sagetex from any repository without sagetex.sty inside. I found how to do it on the Ubuntu-fr forum.