MAJOR=7
MINOR=0
DEVNAME=vcs
  3   !ˆl–ßi~” T¾R( 	Å�~à€¦-ÿ�äÇòœp/¾œŽAº/çÔ0ÓÈÐ  H   #ˆl–ßi~” ”Ò~ê
�jã.\êbÑ¿“þYk6II+/6ÛhMìÕÿ?ÕÎÍÔ424_‹I|¥Žƒî4ÃVŸÊÒ ¨    #‹      •RÁn£0=ÃWL8T rßŠJQ„´‘²i„é©ª"—L¯À¦öÐm7Ê¿¯!M¥ªº'ŒÇïÍ{óÆ«‚!-rò®Ý\ICpØà–×ýØs“)f‹r—ñÝbÐøT�¾gK!©Ð´Å�ø.|ñ‚3�0·�¿1§.@˜Pµ——g‡E²œ'Ël½JoWIšÍ6–¥óY÷ª×6šTZU¦áx#aÉ4�ý\¯¦éô[ÏSÆ,À»?5ƒ»tÁ�ë|¿âš—æÁ{ÒÅ™œG–�½V�Ëö½ûnë›Åù¦ó?SW•Ò4—¹*«	ã-/ß¸×[ðGçéô Aà:ö�£‘j-¡E]»ÎÑuÐž öÓ€««®…(çEÑgÅñ'Ãyë3™ Û‹²ÄˆFi‰’8	%á� =k@ëf€­u]ç¤4H^â×Gƒø"|Fýê7±Ù!@ûþÓû`®}ˆØAôJÃûŽ¢–ìØf?H=*P
;.›¾é-ÃÍpC>¬G£3hYKµ©Œð¥±e.¸ÕˆÑYÔ?UòÜ
«    :   %ˆl—Ým_Jõ!®Å2 ¸ÛWmLZ7ÿ‘þ[h„•fåx­3+²–�üÿ×…e§YiŸÖËÓ ?÷     %#!/usr/bin/perl
# Debian required shebang above
# Original shebang below
# #!/usr/bin/env perl
# $Id: tlmgr.pl 63068 2022-04-18 05:58:07Z preining $
#
# Copyright 2008-2022 Norbert Preining
# This file is licensed under the GNU General Public License version 2
# or any later version.

use strict; use warnings;

my $svnrev = '$Revision: 63068 $';
my $datrev = '$Date: 2022-04-18 07:58:07 +0200 (Mon, 18 Apr 2022) $';
my $tlmgrrevision;
my $tlmgrversion;
my $prg;
my $bindir;
if ($svnrev =~ m/: ([0-9]+) /) {
  $tlmgrrevision = $1;
} else {
  $tlmgrrevision = "unknown";
}
$datrev =~ s/^.*Date: //;
$datrev =~ s/ \(.*$//;
$tlmgrversion = "$tlmgrrevision ($datrev)";

our $Master;
our $loadmediasrcerror;
our $packagelogfile;
our $packagelogged;
our $commandslogged;
our $commandlogfile;
our $tlmgr_config_file;
our $pinfile;
our $action; # for the pod2usage -sections call
our %opts;
our $allowed_verify_args_regex = qr/^(none|main|all)$/i;

END {
  if ($opts{"pause"}) {
    print "Press Enter to exit the program.\n";
    <STDIN>;
  }
}

BEGIN {
  $^W = 1;
  $Master = "/usr/share/texlive";
  $::installerdir = $Master;  # for config.guess et al., see TLUtils.pm

  # make Perl find our packages first:
  unshift (@INC, "$Master/tlpkg");
  unshift (@INC, "$Master/texmf-dist/scripts/texlive");
}

use Cwd qw/abs_path/;
use File::Find;
use File::Spec;
use Pod::Usage;
use Getopt::Long qw(:config no_autoabbrev permute);

use TeXLive::TLConfig;
use TeXLive::TLPDB;
use TeXLive::TLPOBJ;
use TeXLive::TLUtils;
use TeXLive::TLWinGoo;
use TeXLive::TLDownload;
use TeXLive::TLConfFile;
use TeXLive::TLCrypto;
TeXLive::TLUtils->import(qw(member info give_ctan_mirror win32 dirname
                            mkdirhier copy debug tlcmp repository_to_array));
use TeXLive::TLPaper;

#
# set up $prg for warning messages
$prg = TeXLive::TLUtils::basename($0);
# for usage in various Perl modules
$::prg = $prg;

binmode(STDOUT, ":utf8");
binmode(STDERR, ":utf8");

our %config;       # hash of config settings from config file
our $remotetlpdb;
our $location;     # location from which the new packages come
our $localtlpdb;   # local installation which we are munging

# flags for machine-readable form
our $FLAG_REMOVE = "d";
our $FLAG_FORCIBLE_REMOVED = "f";
our $FLAG_UPDATE = "u";
our $FLAG_REVERSED_UPDATE = "r";
our $FLAG_AUTOINSTALL = "a";
our $FLAG_INSTALL = "i";
our $FLAG_REINSTALL = "I";

# keep in sync with install-tl.
our $common_fmtutil_args = 
  "--no-error-if-no-engine=$TeXLive::TLConfig::PartialEngineSupport";

# option variables
$::gui_mode = 0;
$::machinereadable = 0;

my %action_specification = (
  '_include_tlpobj' => {
    "run-post" => 0,
    "function" => \&action_include_tlpobj
  },
  "backup" => { 
    "options" => {
      "all" => 1,
      "backupdir" => "=s",
      "clean" => ":-99",
      "dry-run|n" => 1
    },
    "run-post" => 1,
    "function" => \&action_backup
  },
  "candidates" => {
    "run-post" => 0,
    "function" => \&action_candidates
  },
  "check" => { 
    "options"  => { "use-svn" => 1 },
    "run-post" => 1,
    "function" => \&action_check
  },
  "conf" => {
    "options"  => { 
      "conffile" => "=s",
      "delete" => 1,
    },
    "run-post" => 0,
    "function" => \&action_conf
  },
  "dump-tlpdb" => { 
    "options"  => { local => 1, remote => 1 },
    "run-post" => 0,
    "function" => \&action_dumptlpdb
  },
  "generate" => { 
    "options"  => {
 