How to install procdump Sysinternals Microsoft tool from source code using a bash shell script in Ubuntu 18.04 LTS

Posted: 2018/11/12 in Ubuntu
Tags: , , , , , , , , , ,
# Start of bash shell script:
# ProcDump is a Linux reimagining of the classic
# ProcDump tool from the Sysinternals suite of tools 
# for Windows. ProcDump provides a convenient way for Linux 
# developers to create core dumps of their application based 
# on performance triggers.
cd
sudo rm -rf procdump-for-linux
sudo apt update
sudo apt install git checkinstall build-essential
git clone https://github.com/microsoft/procdump-for-linux
cd procdump-for-linux
sudo make
sudo checkinstall
# End of shell script

 

Checkinstall configuration and terminal output should be similar to this:

This package will be built according to these values:

0 – Maintainer: [ <restricted> ]
1 – Summary: [ Package created with checkinstall 1.6.2 ]
2 – Name: [ procdump ]
3 – Version: [ 20181112 ]
4 – Release: [ 1 ]
5 – License: [ GPL ]
6 – Group: [ checkinstall ]
7 – Architecture: [ amd64 ]
8 – Source location: [ procdump-for-linux ]
9 – Alternate source location: [ ]
10 – Requires: [ ]
11 – Provides: [ procdump ]
12 – Conflicts: [ ]
13 – Replaces: [ ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install…

========================= Installation results ===========================
mkdir -p //usr/bin
cp bin/procdump //usr/bin
mkdir -p //usr/share/man/man1
cp procdump.1 //usr/share/man/man1

======================== Installation successful ==========================

Copying documentation directory…
./
./LICENSE
./README.md

Copying files to the temporary directory…OK

Stripping ELF binaries and libraries…OK

Compressing man pages…OK

Building file list…OK

Building Debian package…OK

Installing Debian package…OK

Erasing temporary files…OK

Writing backup package…OK
OK

Deleting temp dir…OK
**********************************************************************

Done. The new package has been installed and saved to

/home/<restricted>/procdump-for-linux/procdump_20181112-1_amd64.deb

You can remove it from your system anytime using:

dpkg -r procdump

**********************************************************************

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s