TeX Live and MacTeX ⇒ Installation in 'home' Directory on Ubuntu
Installation in 'home' Directory on Ubuntu
Hi,
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 ?
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.
- 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 ?
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Installation in 'home' Directory on Ubuntu
Ye I know that would've been smarter 
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)

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 […]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Installation in 'home' Directory on Ubuntu
k so i can seemingly run latex but it gives report.cls missing
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
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
Most likely, by moving things, the information in your texmf.cnf is no longer right, so it's looking for things in the wrong places. Read the comments at
/[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.
/[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
thanks, i'll wait for 2011 to reinstall
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)
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
So i'm in the middle of installing texlive 2011 on home/usrname/texlive/2011/ now
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)
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
1. IMHO, installing TL in /home dir (provided /home is on a separate partition) might be a smarter move than installing in /usr or /usr/local (hint, reinstallation of OS doesn't affect TL installation). Another advantage is that you can have more editions of TL installed at the same time. E.g., I have TL2009 and TL2010 in my /home dir, and path set in ~/.profile to ~/TeXLive dir: simply renaming TL2009 or TL2010 to "TeXLive" automatically uses that edition for compiling.
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:
Note that you'd probably have to log off before changes take effect.
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