Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Shell :: How to create a hash file and verify it 
Shell :: install arch.univariate import arch_model 
Shell :: ubuntu show RLIMIT_NOFILE 
Shell :: install ubuntu along windows not showing up , even with unallocated space 
Shell :: edgerouter x hosts file location 
Shell :: allow ssh connections through windows defender 
Shell :: pip install imread 
Shell :: how to see files being watched by git 
Shell :: unit gitignore default-2021.dwlt 
Shell :: virtmanager network autostart 
Shell :: disable wget messages 
Shell :: cuddn version check 
Shell :: cmd check if environment variable exists 
Shell :: find directory inodes usage 
Shell :: ssh open gui app on host 
Shell :: filebeat config folder location in linux 
Shell :: commit to wrong branch git solution 
Shell :: fix dns browser linux 
Shell :: microk8s port forward 
Shell :: linux check speed of file growth 
Shell :: bash base62 
Shell :: Unable to install modules kint due to missing modules kint. 
Shell :: ubuntu tftp server 
Shell :: Mirror Repository Ubuntu 19.10 
Shell :: jetson tx2 operating volatage 
Shell :: how to check everything inside every folder bash linux 
Shell :: Check the config files by running in Ubuntu and Debian 
Shell :: Keepalived source installation 
Shell :: powershell check end of string 
Shell :: how to install rfkill in kali linux 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =