LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-11-2004, 02:59 AM   #1
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
how to determine if the distro is debian?


say i'm writing a script that wants to do something in particular if the user is using debian (like apt-get install <something>), where can a i query for the distribution name/version/etc?

thanks.
 
Old 10-11-2004, 03:05 AM   #2
mirradric
Member
 
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188

Rep: Reputation: 31
/etc/debian_version


edit: I mean check for this file, and it contains the version as well.

Last edited by mirradric; 10-11-2004 at 03:10 AM.
 
Old 10-11-2004, 08:04 PM   #3
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
cool, thanks for the insight :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference between debian and other debian-based distro like knoppix? Akhran Debian 11 08-28-2005 07:07 PM
Which Debian Distro should newbie get. Dark_Sniper* Debian 88 06-30-2005 01:29 AM
The Best Alternative Debian Distro EliotK Debian 15 03-01-2005 10:01 PM
What is the sequence of files Debian used to determine the default wm? davidas Debian 6 04-06-2004 10:28 PM
What was the distro you used before Debian? pe2338 Debian 46 09-16-2003 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration