Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # detect OS and set package installer accordingly
- if grep -i ubuntu /etc/os-release >/dev/null
- then
- INSTALLER=apt
- fi
- if grep -i redhat /etc/os-release >/dev/null
- then
- INSTALLER=yum
- fi
- echo the installer is $INSTALLER
- sudo $INSTALLER install nmap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement