Once upon a time `yum list installed | sed '/.*-release/!d;s/-release.*//'` was a way to determine a distro name in scriptlets. However, not that it has become fairly common to add e.g. livna repo stuff on top of fedora repo stuff, it is likely that one will get e.g. rgb@lilith|B:1027>yum list installed | sed '/.*-release/!d;s/-release.*//' fedora freshrpms livna which won't do it. Alternatives to this such as: rgb@lilith|B:1040>ls /etc/*-release | sed 's/\/etc\/\(.*\)-release/\1/'; fedora lsb redhat warewulf are even worse. One thing that works on at least Fedora or Centos or Red Hat systems is: rgb@lilith|B:1060>cat /etc/issue | sed '1q'| sed 's/ \(.*\)$//'; Fedora but I don't know how ultimately portable this is. Is there a good, or at least better, way to set a "distribution" variable for use in scripts or in yum itself? Realizing that getting all of the linux distro producers to do something consistently is like herding cats? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.dulug.duke.edu/pipermail/yum/attachments/20050919/9476aecd/attachment.bin