Current Path: > > lib > rpm > redhat
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
brp-ldconfig | File | 268 bytes | May 15 2023 14:30:31. | |
brp-mangle-shebangs | File | 4499 bytes | May 15 2023 14:30:31. | |
config.guess | File | 43940 bytes | May 15 2023 14:30:31. | |
config.sub | File | 36307 bytes | May 15 2023 14:30:31. | |
dist.sh | File | 1974 bytes | May 15 2023 14:30:31. | |
find-provides | File | 1216 bytes | May 15 2023 14:30:31. | |
find-requires | File | 936 bytes | May 15 2023 14:30:31. | |
gpgverify | File | 3622 bytes | May 15 2023 14:30:31. | |
macros | File | 10851 bytes | May 15 2023 14:30:31. | |
redhat-annobin-cc1 | File | 93 bytes | May 15 2023 14:30:31. | |
redhat-annobin-plugin-select.sh | File | 6193 bytes | May 15 2023 14:30:31. | |
redhat-annobin-select-annobin-built-plugin | File | 89 bytes | May 15 2023 14:30:31. | |
redhat-annobin-select-gcc-built-plugin | File | 93 bytes | May 15 2023 14:30:31. | |
redhat-hardened-cc1 | File | 76 bytes | May 15 2023 14:30:31. | |
redhat-hardened-ld | File | 47 bytes | May 15 2023 14:30:31. | |
rpmrc | File | 5442 bytes | May 15 2023 14:30:31. |
#!/bin/bash # dist.sh # Author: Tom "spot" Callaway <tcallawa@redhat.com> # License: GPL # This is a script to output the value for the %{dist} # tag. The dist tag takes the following format: .$type$num # Where $type is one of: el, fc, rh # (for RHEL, Fedora Core, and RHL, respectively) # And $num is the version number of the distribution. # NOTE: We can't detect Rawhide or Fedora Test builds properly. # If we successfully detect the version number, we output the # dist tag. Otherwise, we exit with no output. RELEASEFILE=/etc/redhat-release function check_num { MAINVER=`cut -d "(" -f 1 < $RELEASEFILE | \ sed -e "s/[^0-9.]//g" -e "s/$//g" | cut -d "." -f 1` echo $MAINVER | grep -q '[0-9]' && echo $MAINVER } function check_rhl { grep -q "Red Hat Linux" $RELEASEFILE && ! grep -q "Advanced" $RELEASEFILE && echo $DISTNUM } function check_rhel { egrep -q "(Enterprise|Advanced|CloudLinux)" $RELEASEFILE && echo $DISTNUM } function check_fedora { grep -q Fedora $RELEASEFILE && echo $DISTNUM } DISTNUM=`check_num` DISTFC=`check_fedora` DISTRHL=`check_rhl` DISTRHEL=`check_rhel` if [ -n "$DISTNUM" ]; then if [ -n "$DISTFC" ]; then DISTTYPE=fc elif [ -n "$DISTRHEL" ]; then DISTTYPE=el elif [ -n "$DISTRHL" ]; then DISTTYPE=rhl fi fi [ -n "$DISTTYPE" -a -n "$DISTNUM" ] && DISTTAG=".${DISTTYPE}${DISTNUM}" case "$1" in --el) echo -n "$DISTRHEL" ;; --fc) echo -n "$DISTFC" ;; --rhl) echo -n "$DISTRHL" ;; --distnum) echo -n "$DISTNUM" ;; --disttype) echo -n "$DISTTYPE" ;; --help) printf "Usage: $0 [OPTIONS]\n" printf " Default mode is --dist. Possible options:\n" printf " --el\t\tfor RHEL version (if RHEL)\n" printf " --fc\t\tfor Fedora version (if Fedora)\n" printf " --rhl\t\tfor RHL version (if RHL)\n" printf " --dist\t\tfor distribution tag\n" printf " --distnum\tfor distribution number (major)\n" printf " --disttype\tfor distribution type\n" ;; *) echo -n "$DISTTAG" ;; esac
SILENT KILLER Tool