Re: Check the linux type?
- From: "SamG" <mad.vijay@xxxxxxxxx>
- Date: 29 Mar 2007 23:13:30 -0700
On Mar 30, 5:22 am, ibupro...@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin) wrote:
On 29 Mar 2007, in the Usenet newsgroup alt.os.linux, in article
<1175167247.049377.216...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, SamG wrote:
How do i check what linux type am i using from a script.
No guaranteed standard way. Many distributions include a release or
version file in /etc/ - so you can look for /etc/*release and then
/etc/*version. If the distribution is following the Linux System
Base standard, there should be a command 'lsb_release'
lsb_release -- print distribution specific information
Like ubuntu
Debian derivative - has a useless /etc/debian-version file but the real
information is available from the 'lsb_release' command
or suse
cat /etc/SuSE-release
or fedora.
/etc/fedora-release (also has or had /etc/redhat-release)
Old guy
Thanks for such an overwhelming respnonse just one more question to
add to this... on rpm based systems, like fedora or suse you could
find the packages installed and its version by doing...
rpm -q <packahe name>
on deb based systems like ubuntu how do you do that....????
.
- Follow-Ups:
- Re: Check the linux type?
- From: John Hasler
- Re: Check the linux type?
- References:
- Check the linux type?
- From: SamG
- Re: Check the linux type?
- From: Moe Trin
- Check the linux type?
- Prev by Date: Re: FREE Linux Shell Provider
- Next by Date: Re: FREE Linux Shell Provider
- Previous by thread: Re: Check the linux type?
- Next by thread: Re: Check the linux type?
- Index(es):
Relevant Pages
|