Skip to content
Snippets Groups Projects
Commit a7aeabf2 authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

added simple helper to cleanly install (and remove) the packages in the right order

parent a92e7b2f
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/perl
use strict;
my %packages= (
'gskcrypt64' => 'gskcrypt64_8.0-50.52.linux.x86_64.deb',
'gskssl64' => 'gskssl64_8.0-50.52.linux.x86_64.deb',
'tivsm-filepath' => 'tivsm-filepath-7.1.4-0.deb',
'tivsm-api64' => 'tivsm-api64.amd64.deb',
'tivsm-apicit' => 'tivsm-apicit.amd64.deb',
'tivsm-ba' => 'tivsm-ba.amd64.deb',
'tivsm-bacit' => 'tivsm-bacit.amd64.deb',
'tivsm-bahdw' => 'tivsm-bahdw.amd64.deb',
'tivsm-jbb' => 'tivsm-jbb.amd64.deb'
);
my @packages= qw(
gskcrypt64
gskssl64
tivsm-filepath
tivsm-api64
tivsm-apicit
tivsm-ba
tivsm-bacit
tivsm-bahdw
tivsm-jbb
);
print "packages: [", join (' ', @packages), "]\n";
my %op_modes= map { $_ => 1 } qw(show remove install);
my $op_mode= 'show';
while (my $arg= shift (@ARGV))
{
if (exists($op_modes{$arg})) { $op_mode= $arg; }
}
if ($op_mode eq 'show')
{
system ('dpkg', '-l', 'tivsm*');
system ('dpkg', '-l', 'gsk*');
}
elsif ($op_mode eq 'remove')
{
}
elsif ($op_mode eq 'install')
{
foreach my $pkg (@packages)
{
system ('dpkg', '--install', $packages{$pkg});
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment