source: OpenRLabs-Git/deploy/rlabs_installer/utils/package_manager.sh

main
Last change on this file was 42bd667, checked in by David Fuertes <dfuertes@…>, 4 years ago

Historial Limpio

  • Property mode set to 100644
File size: 280 bytes
Line 
1#!/bin/bash
2
3if [ -f /etc/os-release ]; then
4        . /etc/os-release
5        OS=$NAME
6elif [ -f /etc/lsb-release ]; then
7        . /etc/lsb-release
8        OS=$DISTRIB_ID
9fi
10
11case $OS in
12  Ubuntu | Debian)
13        pkg_mng=apt
14        ;;
15  RedHat | RHEL| CentOS)
16        pkg_mng=yum
17        ;;
18  Fedora)
19        pkg_mng=dnf
20        ;;
21esac
22
Note: See TracBrowser for help on using the repository browser.