Checking for updates and updating Tranalyzer to a new version

updating

Checking for an update

In order to check whether a new version of Tranalyzer2 is available, you can simply use the t2update alias or the setup.sh -C option:

t2update

Tranalyzer2 0.9.2lmw2 is already the latest version available!

Alternatively, if t2_aliases are not available, you can replace the previous command with:

cd /home/user/tranalyzer2-0.9.2lmw2

./setup.sh -C

Tranalyzer2 0.9.2lmw2 is already the latest version available!

That was easy! We have the latest version and no update is available.

Updating to the latest version

Now what if there was a new version available? Let’s assume we are currently using an older version…

t2update

Tranalyzer2 version 0.9.2lmw2 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.2lmw2'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do?

We now have several options. Let’s try them all, starting by the end!

t2update - do nothing

Do nothing (exit) simply aborts the update process. This is the default option if the answer is not recognized, e.g., if the Enter key was typed.

t2update - see the changeLog

See the ChangeLog can be used to review the content of the update. Important changes, such as new features and bug fixes, are listed.

t2update

Tranalyzer2 version 0.9.2lmw2 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.2lmw2'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do? 4

ChangeLog for Tranalyzer2 version 0.9.2lmw2 (Aug 2024)

    * dnsDecode:
        * Extended decoding of NBNS names (discard padding, add suffix, ...)

    * mongoSink:
        * Fixed double escaping of quotes and double quotes

    * voipDetector:
        * Fixed and improved decoding of NBNS names
        * Renamed voipconv to t2voipconv
        * t2voipconv: added support for AMR, AMR-NB, AMR-WB, G.723.1, G.726, G.726le and GSM formats
        * Various fixes and improvements

    * t2utils.[ch]:
        * New functions:
            * t2_strncpy_escape(), t2_strcpy_escape()

    * tawk:
        * Fixed header printing when accumulating something other than flows
        * Added support for Termshark (-k option)
        * shark:
            * Added support for SDP
            * Extended support for RTP and SIP
        * New functions:
            * ientropy: compute the information entropy of each column, filter out columns with low entropy
            * isset: return true if a value is set, i.e., not empty
            * log2: compute the binary logarithm (log base 2) of a number
            * quote: add leading and trailing quotes to a string, escape quotes within string
            * printinf, printok, printwrn: print text in blue, green or orange
        * Improved documentation
        * Various fixes and improvements

    * t2fm:
        * Added bottom N statistics
        * Added --top/--bottom options to only compute top or bottom stats
        * Do not count query names from responses when reporting top DNS queries
        * Various fixes and improvements

    * t2utils.sh:
        * Added validate_next_file_or_dir function
        * Added {BLUE_,GREEN_,ORANGE_,RED_,}{ITALIC,UNDERLINE} and STRIKETHROUGH variables
        * Various fixes and improvements

    * t2_aliases:
        * New t2voipconv alias

    * New script:
        * t2voipconv: convert and manipulate raw VoIP files extracted from voipDetector

Tranalyzer2 version 0.9.2lmw2 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.2lmw2'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do?

t2update - download

Download can be used to fetch the latest version of Tranalyzer2. The output folder default to one level above the location of the setup.sh script, but can be changed before the download is started.

t2update

Tranalyzer2 version 0.9.2lmw2 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.2lmw2'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do? 3
Choose output folder (type enter to use '/home/user'):
--2024-01-10 11:07:53--  https://tranalyzer.com/download/tranalyzer/tranalyzer2-0.9.2lmw2.tar.gz
Connecting to https://tranalyzer.com... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [application/octet-stream]
Saving to: ‘/home/user/tranalyzer2-0.9.2lmw2.tar.gz’

/home/user/tranalyzer2-0.     [ <=>                ]       0  --.-KB/s    in 0s

2024-08-01 11:07:53 (0.00 B/s) - ‘/home/user/tranalyzer2-0.9.2lmw2.tar.gz’ saved [0/0]

Successfully downloaded 'tranalyzer2-0.9.2lmw2.tar.gz'
ls /home/user/tranalyzer2-0.9.2lmw2.tar.gz

tranalyzer2-0.9.2lmw2.tar.gz

t2update - download and extract

Download and extract can be used to fetch the latest version of Tranalyzer2 and extract it under the appropriate name including the version, i.e, tranalyzer2-0.9.2lmw2. The output folder default to one level above the location of the setup.sh script, but can be changed before the download is started. If the destination folder already exists, you will be prompted for confirmation.

t2update

Tranalyzer2 version 0.9.2lmw2 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.2lmw2'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do? 2
Choose output folder (type enter to use '/home/user'):
--2024-08-01 11:08:53--  https://tranalyzer.com/download/tranalyzer/tranalyzer2-0.9.2lmw2.tar.gz
Connecting to https://tranalyzer.com... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [application/octet-stream]
Saving to: ‘/home/user/tranalyzer2-0.9.2lmw2.tar.gz’

/home/user/tranalyzer2-0.9.2  [ <=>                ]       0  --.-KB/s    in 0s

2024-08-01 11:09:02 (0.00 B/s) - ‘/home/user/tranalyzer2-0.9.2lmw2.tar.gz’ saved [0/0]

Successfully downloaded 'tranalyzer2-0.9.2lmw2.tar.gz'

'/home/user/tranalyzer2-0.9.2lmw2.tar.gz' successfully extracted under '/home/user/tranalyzer2-0.9.2'
ls /home/user/tranalyzer2-0.9.2lmw2

ChangeLog   autogen.sh  plugins     setup.sh    tranalyzer2
README.md   doc         scripts     tests       utils

t2update - download and overwrite

Download and overwrite can be used to fetch the latest version of Tranalyzer2 and extract it under the name used by the current version thus overwriting it. The output folder default to one level above the location of the setup.sh script, but can be changed before the download is started. If the destination folder already exists, you will be prompted for confirmation and given the opportunity to specify a different name.

t2update

Tranalyzer2 version 0.9.2lmw2 is out!
    1: Download and overwrite current version
    2: Download and extract under 'tranalyzer2-0.9.2lmw2'
    3: Download
    4: See the ChangeLog
    *: Do nothing (exit) [default]
What do you want to do? 1
Choose output folder (type enter to use '/home/user'):
--2024-08-01 11:09:04--  https://tranalyzer.com/download/tranalyzer/tranalyzer2-0.9.2lmw2.tar.gz
Connecting to https://tranalyzer.com... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [application/octet-stream]
Saving to: ‘/home/user/tranalyzer2-0.9.2lmw2.tar.gz’

/home/user/tranalyzer2-0.9.2     [ <=>                ]       0  --.-KB/s    in 0s

2024-08-01 11:09:13 (0.00 B/s) - ‘/home/user/tranalyzer2-0.9.2lmw2.tar.gz’ saved [0/0]

Successfully downloaded 'tranalyzer2-0.9.2lmw2.tar.gz'

'/home/user/tranalyzer2-0.9.2lmw2.tar.gz' successfully extracted under '/home/user/tranalyzer2-0.9.1'
ls /home/user/tranalyzer2-0.9.2lmw2

ChangeLog   autogen.sh  plugins     setup.sh    tranalyzer2
README.md   doc         scripts     tests       utils