You are not logged in.

#1 2009-02-09 13:30:44

Firmicus
Forum Fellow
From: Germany
Registered: 2006-02-28
Posts: 168

[ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

I have just made available a new utility (shell + command-line) for locally managing a TeXLive installation under Arch.

You can get it from AUR: http://aur.archlinux.org/packages.php?ID=23776

See the documentation under http://wiki.archlinux.org/index.php/TeX … al_Manager

NB: I am also the maintainer of the TeXLive packages in [extra].

F

Offline

#2 2009-02-09 13:43:06

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

This looks great.

I'll have a closer look when I'm back from office.

Thanks in advance! smile

Offline

#3 2009-02-09 14:48:14

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

Nice work, Firmicus.

I'd like to request the following features (I haven't noticed them if they've already been included):
1) a command to generate just the PKGBUILD for a CTAN package
2) a command to build a pkg without installing it*
3) a command to get the latest version of a package
4) an option to set the package prefix (e.g. "texlive-" instead of "texlive-local-")

This is mostly so that I can add support for texlive-localmanager in makerepo, which can already handle CPAN through pacpan.

*actually, that would just be convenient but it's not necessary for makerepo support


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2009-02-09 17:25:08

dcrabs
Member
From: Sweden
Registered: 2008-10-03
Posts: 149

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

I am having problems with some packages. For example:

community/texlive-latexextra-doc 2008.10642-1 (texlive-most-doc)
    TeX Live - Large collection of add-on packages for LaTeX

is installed but tllocalmgr says it does not find:

/usr/share/texmf-var/arch/installedpkgs/texlive-latexextra-doc_10642.pkgs

There is a texlive-latexextra-doc_11692.pkgs in the same directory though.
Any idea why this happens?
Thanks, David

Last edited by dcrabs (2009-02-09 17:27:25)

Offline

#5 2009-02-09 20:29:31

Firmicus
Forum Fellow
From: Germany
Registered: 2006-02-28
Posts: 168

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

Xyne wrote:

Nice work, Firmicus.

I'd like to request the following features (I haven't noticed them if they've already been included):
1) a command to generate just the PKGBUILD for a CTAN package
2) a command to build a pkg without installing it*

These features make some sense and are easy to implement, but I would not think of them as being particularly important. I am not familiar with repoman though...

3) a command to get the latest version of a package

With with tllocalmgr you automatically get the latest versions of CTAN pkgs.

4) an option to set the package prefix (e.g. "texlive-" instead of "texlive-local-")

This is IMO dangerous and confusing, but I guess what you are thinking of is a way to update whole texlive-* pkgs in extra, right? In this case no, this is not at all the aim of this tool! What it does is to allow users to install or update individual CTAN packages (as provided by TeXLive) instead of whole collections of packages as they are provided in extra. It is meant as a user-friendly alternative to installation by hand...

Offline

#6 2009-02-09 20:39:12

Firmicus
Forum Fellow
From: Germany
Registered: 2006-02-28
Posts: 168

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

dcrabs wrote:

I am having problems with some packages. For example:

community/texlive-latexextra-doc 2008.10642-1 (texlive-most-doc)
    TeX Live - Large collection of add-on packages for LaTeX

is installed but tllocalmgr says it does not find:

/usr/share/texmf-var/arch/installedpkgs/texlive-latexextra-doc_10642.pkgs

There is a texlive-latexextra-doc_11692.pkgs in the same directory though.
Any idea why this happens?
Thanks, David

Stefan Husmann (who maintains the texlive-*-doc pkgs in community) sent me this file (texlive-latexextra-doc_11692.pkgs) along with the whole list of his latest doc packages, so I assumed this was the latest version in community. But it seems this is indeed a more recent list than the one in community. I'll ask him to fix this (either by updating the package, or by sending me the older listing).

Offline

#7 2009-02-09 21:07:37

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

@Firmicus

Sorry, I should have been clearer in my post. I've written a tool called makerepo (more info here) that is able to create and maintain a repo of pkgs built from PKGBUILDs, the AUR, and CPAN (via pacpan).

I would like to add CTAN support to makerepo by using texlive-localmanager. In order to do this, it would need to be able to generate the PKGBUILDS, preferably all at once using an output separator as pacpan does (see the pacpan info page).

What I meant by "3) a command to get the latest version of a package" (and I realize that it's unclear now) was a way to query what the latest version of the package is. Makerepo doesn't build all packages in the REPOBUILD every time it's run... it just checks what the latest version of each pkg is and compares it to the local version so that it only builds pkgs that are newer.

If "texlive-local-" is the preferred prefix for all non-official texlive packages, then I suppose there's no need for an option to change it. I simply wanted to provide anyone maintaining a texlive repo the option to produce uniform packages that follow the same naming convention as the official ones.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#8 2009-02-09 21:26:56

Firmicus
Forum Fellow
From: Germany
Registered: 2006-02-28
Posts: 168

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

Xyne wrote:

@Firmicus

Sorry, I should have been clearer in my post. I've written a tool called makerepo (more info here) that is able to create and maintain a repo of pkgs built from PKGBUILDs, the AUR, and CPAN (via pacpan).

Ah, funny! I did not know about pacpan. You're probably aware that I once wrote a similar tool: cpan4pacman? wink

I would like to add CTAN support to makerepo by using texlive-localmanager. In order to do this, it would need to be able to generate the PKGBUILDS, preferably all at once using an output separator as pacpan does (see the pacpan info page).

OK, I see. This should be easy.

What I meant by "3) a command to get the latest version of a package" (and I realize that it's unclear now) was a way to query what the latest version of the package is. Makerepo doesn't build all packages in the REPOBUILD every time it's run... it just checks what the latest version of each pkg is and compares it to the local version so that it only builds pkgs that are newer.

Again, this is clearer. Perhaps you could parse the output of tllocalmgr --status. (Or I could eventually add an option to make this output easier to reprocess?)

If "texlive-local-" is the preferred prefix for all non-official texlive packages, then I suppose there's no need for an option to change it. I simply wanted to provide anyone maintaining a texlive repo the option to produce uniform packages that follow the same naming convention as the official ones.

Individual texlive-local-* packages go under $TEXMFLOCAL (i.e. /usr/local/share/texmf)

To manage and maintain the large texlive packages in extra, I have written my own tools smile Contact me privately if you are interested...

Offline

#9 2009-02-09 22:11:18

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

Firmicus wrote:

Ah, funny! I did not know about pacpan. You're probably aware that I once wrote a similar tool: cpan4pacman? wink

Ah! Yeah, Allan told me about cpan4pacman after I posted a thread for pacpan and suggested getting in touch with you, but I hadn't recognized your name. I've tried building a few pkgs with cpan4pacman but I've had problems doing so (some wouldn't, others caused cpan4pacman to take ages).

Firmicus wrote:

Again, this is clearer. Perhaps you could parse the output of tllocalmgr --status. (Or I could eventually add an option to make this output easier to reprocess?)

If the status output is unlikely to change, I could probably parse it.

Firmicus wrote:

Individual texlive-local-* packages go under $TEXMFLOCAL (i.e. /usr/local/share/texmf)
To manage and maintain the large texlive packages in extra, I have written my own tools smile Contact me privately if you are interested...

The ideal would be to have a universal system (as the official packages use) so that users could create separate yet interoperable repos, e.g. pkg x would always install to the same path. It's not critical, but it would facilitate dependency handling where applicable. Your own tools probably do that, but as they're not publicly available as texlive-localmanager is, they wouldn't be of much use to makerepo.

That written, as long as everyone leaves the default value for $TEXMFLOCAL, there shouldn't be any problem.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#10 2009-02-10 18:48:51

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

Hi,

when I try to start tllocalmgr I receive to following message:

thomas: ~
$  tllocalmgr 
Use of uninitialized value in subtraction (-) at /usr/bin/tllocalmgr line 86.
Retrieving new TeXLive database from CTAN...
print() on closed filehandle LOG at /usr/bin/tllocalmgr line 77.
print() on closed filehandle LOG at /usr/bin/tllocalmgr line 78.
print() on closed filehandle LOG at /usr/bin/tllocalmgr line 90.
mv: Aufruf von stat für „/home/thomas/.texlive/texmf-var/arch/tlpkg/texlive.tlpdb" nicht möglich: Datei oder Verzeichnis nicht gefunden
unlzma: /home/thomas/.texlive/texmf-var/arch/tlpkg/texlive.tlpdb.lzma: doesn't exist or is not a regular file
Initializing ...
/usr/bin/tllocalmgr: open(/home/thomas/.texlive/texmf-var/arch/tlpkg/texlive.tlpdb) failed: Datei oder Verzeichnis nicht gefunden at /usr/share/texmf-var/arch/tlpkg/TeXLive/TLPDB.pm line 266.
thomas: ~

A little off topic:
When I get the wiki correctly I have two options where I can place additional packages: /usr/local/share/texmf and ~/texmf (correct?) Since this folder is kind of a config folder I ask myself why it isn't ~/.texmf (like ~/.texlive/texmf-var)?

Thanks!

Offline

#11 2009-02-10 21:46:36

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

Same problem here as Barghest's.

Offline

#12 2009-02-10 22:09:02

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

dcrabs wrote:

I am having problems with some packages. For example:

community/texlive-latexextra-doc 2008.10642-1 (texlive-most-doc)
    TeX Live - Large collection of add-on packages for LaTeX

is installed but tllocalmgr says it does not find:

/usr/share/texmf-var/arch/installedpkgs/texlive-latexextra-doc_10642.pkgs

There is a texlive-latexextra-doc_11692.pkgs in the same directory though.
Any idea why this happens?
Thanks, David

texlive-latexextra-doc is on the way. The other packages will follow, but uploading takes very long, so please be patient.

Offline

#13 2009-02-11 10:00:19

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

@Barghest, bender02:
The errors come from the fact that the directory ~/.texlive/texmf-var/arch/tlpkg is missing. So
"mkdir -p ~/.texlive/texmf-var/arch/tlpkg" creates it, and then just run tllocalmgr a few times to update.

@Firmicus: could you fix this (ie check for the dir, and create it if necessary)? Thanks. By the way, nice tool!
Few minor comments:
- created packages have 755 permissions on the directories, and most of my directories have 775 permissions (so that members of the 'tex' group can write there). Not a serious problem, but pacman spits out lots of warnings about this (so the output is not so nice smile
- I also get "print() on closed filehandle LOG ... line 720, <FIN> line 2" sometimes after installing packages
- my command line has some troubles, like colors get screwed up from time to time (like after 'info doesntexist'), up/down arrows don't work, tab-completion doesn't work. I think it's some general perl thing that I'm missing - please help.

Last edited by bender02 (2009-02-12 09:37:38)

Offline

#14 2009-02-12 21:47:04

Firmicus
Forum Fellow
From: Germany
Registered: 2006-02-28
Posts: 168

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

bender02 wrote:

@Barghest, bender02:
The errors come from the fact that the directory ~/.texlive/texmf-var/arch/tlpkg is missing. So
"mkdir -p ~/.texlive/texmf-var/arch/tlpkg" creates it, and then just run tllocalmgr a few times to update.

@Firmicus: could you fix this (ie check for the dir, and create it if necessary)? Thanks. By the way, nice tool!

OK, I'll fix this.

Few minor comments:
- created packages have 755 permissions on the directories, and most of my directories have 775 permissions (so that members of the 'tex' group can write there). Not a serious problem, but pacman spits out lots of warnings about this (so the output is not so nice smile

Hmm I thought I had fixed that already...

- I also get "print() on closed filehandle LOG ... line 720, <FIN> line 2" sometimes after installing packages
- my command line has some troubles, like colors get screwed up from time to time (like after 'info doesntexist'), up/down arrows don't work, tab-completion doesn't work. I think it's some general perl thing that I'm missing - please help.

Strange. I'll this about this later. Too tired now wink

Offline

#15 2009-08-23 21:56:44

judu
Member
Registered: 2009-08-23
Posts: 1

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

I've got an issue too…

Use of uninitialized value in subtraction (-) at /usr/bin/tllocalmgr line 90.
Retrieving new TeXLive database from CTAN...
mv: ne peut évaluer `/home/judu/.texlive/texmf-var/arch/tlpkg/texlive.tlpdb': Aucun fichier ou dossier de ce type #cannot evaluate… no file or… this type
unlzma: /home/judu/.texlive/texmf-var/arch/tlpkg/texlive.tlpdb.lzma: Aucun fichier ou dossier de ce type
Initializing ...
/usr/bin/tllocalmgr: open(/home/judu/.texlive/texmf-var/arch/tlpkg/texlive.tlpdb) failed: Aucun fichier ou dossier de ce type at /usr/share/texmf-var/arch/tlpkg/TeXLive/TLPDB.pm line 266.

Offline

#16 2009-08-24 12:47:20

Firmicus
Forum Fellow
From: Germany
Registered: 2006-02-28
Posts: 168

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

tllocalmgr does not work with the texlive packages in testing. I have prepared a brand new version which I will release once I have moved the new packages from testing to extra. It should be a matter of days, or hours... wink

Offline

#17 2010-04-29 13:59:31

daspostloch
Member
Registered: 2009-12-17
Posts: 40

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

any news on this? Im starting to miss it... smile

Offline

#18 2010-05-04 10:16:10

Firmicus
Forum Fellow
From: Germany
Registered: 2006-02-28
Posts: 168

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

daspostloch wrote:

any news on this? Im starting to miss it... smile

The release of 0.3.3 has occurred long ago. And it works here...

Offline

#19 2010-05-31 17:22:36

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

The first time I run tllocalmgr it seg faults. Not sure what to do with this...

mariachi@koi ~ % tllocalmgr                                        
Retrieving new TeXLive database from CTAN...
Initializing ...
[1]    13736 segmentation fault  tllocalmgr

Offline

#20 2010-06-11 12:46:36

Firmicus
Forum Fellow
From: Germany
Registered: 2006-02-28
Posts: 168

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

el mariachi wrote:

The first time I run tllocalmgr it seg faults. Not sure what to do with this...

mariachi@koi ~ % tllocalmgr                                        
Retrieving new TeXLive database from CTAN...
Initializing ...
[1]    13736 segmentation fault  tllocalmgr

No idea. Perhaps it is wiser to wait for TL 2010. I am currently preparing the packages. Then try again when texlive-localmanager has been updated...

Offline

#21 2010-08-15 12:48:10

zoqaeski
Member
From: /earth/australia/.
Registered: 2009-09-30
Posts: 132

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

I'm not sure why, but tllocalmgr fails to build a lot of packages on my system, especially the doc ones. There seems to be something odd in the PKGBUILDs it creates: makepkg aborts without warning, although tllocalmgr reports a success; I think it's trying to find things that don't exist or something like that, but I don't know enough about the structure of the texmf hierarchy to be able to figure out what it's meant to be doing.

Offline

#22 2010-08-15 14:09:23

Firmicus
Forum Fellow
From: Germany
Registered: 2006-02-28
Posts: 168

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

zoqaeski wrote:

I'm not sure why, but tllocalmgr fails to build a lot of packages on my system, especially the doc ones. There seems to be something odd in the PKGBUILDs it creates: makepkg aborts without warning, although tllocalmgr reports a success; I think it's trying to find things that don't exist or something like that, but I don't know enough about the structure of the texmf hierarchy to be able to figure out what it's meant to be doing.

An updated version of tllocalmgr is not yet available for the TL 2010 packages. I will do so as soon as the packages are finalized and moved to [extra].
However you are welcome to test the development version on http://projects.archlinux.org/users/fra … anager.git and report any problem you might encounter.

F

Offline

#23 2014-04-18 14:03:48

Maximus
Member
Registered: 2014-04-07
Posts: 4

Re: [ANNOUNCE] texlive-localmanager: A new utility for TeXLive users

Hi,

Is there a way to install packages from TLContrib? I'm looking for the microtype bete as i'm using lualatex for most of my documents. I tried it with the --mirror option but nothing i tried worked.

Offline

Board footer

Powered by FluxBB