TeX Live and MacTeX ⇒ Installation in 'home' Directory on Ubuntu
Installation in 'home' Directory on Ubuntu
After having texlive installed through ubuntu package manager and breaking my head over stupid things that just needed a package update, I decided to manually install texlive.
I installed texlive under /home/texlive/ but now I'm wondering if this might cause problems as it's not in a usr folder (/home/name/...)
Will this cause a problem ?
Can I just move the folder and change the path,manpath,... accordingly ?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Installation in 'home' Directory on Ubuntu
I guess you will find that out at the latest when trying to use it.greenie wrote:[…] Will this cause a problem ? […]
Just try. An installation in the standard path would have been smarter.greenie wrote:[…] Can I just move the folder and change the path,manpath,... accordingly ?
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Installation in 'home' Directory on Ubuntu

But when installing ubuntu I read it was smarter to partition your usr and usr/local in seperate partitions, and i seemingly ran out of space with my stock texlive

For now I can't seem to run latex, will try a reboot (just logged out after editing path to .profile)
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Installation in 'home' Directory on Ubuntu
Off course you can choose another partition for the mount point »/local«. But you should do this before installing something like TeX Live.greenie wrote:[…] But when installing ubuntu I read it was smarter to partition your usr and usr/local in seperate partitions, and i seemingly ran out of space with my stock texlive […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Installation in 'home' Directory on Ubuntu
I thought this was installed in the stock package ?
edit: I'll reinstall the texlive-full package from ubuntu (2009)
and give this another try when i'm not actually writing someting in latex

Thank you for your time

Re: Installation in 'home' Directory on Ubuntu
/[wherever]/texlive/2010/texmf/web2c/texmf.cnf
or wherever you moved it, and then make the changes to:
/[wherever]/texlive/2010/texmf.cnf
If you have a good connection, though, you could reinstall. The Ubuntu packages are very out of date, however, so I'd reinstall from CTAN if I were you. If you're not in a hurry you might wait for TL 2011, however.
Re: Installation in 'home' Directory on Ubuntu
just writing an internship report in latex to prepare for writing my thesis in it

I'll delay the install till after this report and before the new academic year

just to be prepared, which file do i need to edit for the path, etc ?
/etc/environment
or
/home/.../.profile
?
as I find both in guides and seem to be at loss to what to do with the other paths (other than the 'path' itself)
Re: Installation in 'home' Directory on Ubuntu
What directory does ubuntu install texlive 2009 in and how do i completely remove it ?
(just rm -rf /usr/... ?)
I already let synaptic uninstall texlive-full, but it seems my space hasn't increased.
I'm also still wondering what to do about the path and other path's, as stated in my previous post. As I'm reading two different options (see previous post)
Installation in 'home' Directory on Ubuntu
2. You don't have to remove TL2009 in order to use TL2010 or TL2011 (especially not with rm -rf command!). Just leave it there and set everything to use TL2010/TL2011. If space isn't an issue, leaving TL2009 installed will solve potential LaTeX editors installation issue (most editors will try to install TL from repos since TL is one of dependencies). However, location of TL2009 can be checked in Synaptic: right click on one of TL packages (e.g., "texlive") > Properties > Installed Files. Also check /var/cache/apt/archives for downloaded .deb packages; those do not get removed automatically.
3. Adding TL path to your ~/.profile file should be enough for all editors etc. to pick up correct binaries. Here's an example of the path added at the end of ~/.profile:
Code: Select all
PATH=/home/mehor/TeXLive/bin/x86_64-linux:/home/mehor/bin:/usr/local/bin:/usr/bin:/bin:/usr/games