[DC LoCo] how to determine distribution
Greg Reagle
reagle at cepr.net
Wed Aug 10 19:11:26 UTC 2011
On 08/10/2011 12:48 PM, Greg Reagle wrote:
> On 08/10/2011 12:14 PM, Dan Chen wrote:
>>> The computer in question is a hosted virtual web server.It is definitely
>>> Linux, but I cannot figure out the distribution (yet).
>> Certain files in /etc are hints: /etc/*_release or /etc/*_version. A
>> more current distribution likely has `lsb_release', too.
>
> I tried all three of these approaches to no avail. I have determined that rpm and yum are installed (I installed nano via yum). So, I know that has Red-Hat-like package management. Out of curiosity, does anyone know how to determine which distribution it is?
A member of this list pointed me to this useful web page, http://fixunix.com/questions/15711-how-do-i-discover-linux-distribution-installed-machine.html, which enabled me to figure it out.
[root at s15350454 ~]# cat /etc/issue
CentOS release 5.2 (Final)
Kernel \r on an \m
--
Greg Reagle
System Administrator
Center for Economic and Policy Research
reagle at cepr.net
http://www.cepr.net/
More information about the Ubuntu-us-dc
mailing list