I followed the instruction at https://sourcegear.com/diffmerge/webhel ... buntu.html and made a Bash script as the following,
Code: Select all
#!/usr/bin/env bash
SOURCEGEAR_LIST_FILE="/etc/apt/sources.list.d/sourcegear.list"
UBUNTU_CODENAME=${$(lsb_release -c)/Codename:/} | xargs
SOURCEGEAR_PACKAGE_STR="deb http://debian.sourcegear.com/ubuntu ${UBUNTU_CODENAME} main"
if [[ -e $SOURCEGEAR_LIST_FILE ]]; then
if [[ $(< $SOURCEGEAR_LIST_FILE) != "$PACKAGE_STR" ]]; then
sudo rm $SOURCEGEAR_LIST_FILE
touch $SOURCEGEAR_LIST_FILE
sudo cat $SOURCEGEAR_PACKAGE_STR > $SOURCEGEAR_LIST_FILE
sudo apt-get update
fi
else
touch $SOURCEGEAR_LIST_FILE
cat $SOURCEGEAR_PACKAGE_STR > $SOURCEGEAR_LIST_FILE
sudo apt-get update
fi
sudo apt-get install diffmerge
Code: Select all
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package diffmerge