Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux verify package install on remote system script

#!/bin/bash

dpkg -s $1 &> /dev/null

if [ $? -eq 0 ]; then
    echo "Package $1 is installed!"
else
    echo "Package $1 is NOT installed!"
fi
Source by linuxconfig.org #
 
PREVIOUS NEXT
Tagged: #linux #verify #package #install #remote #system #script
ADD COMMENT
Topic
Name
9+4 =