Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to find version of Debian or Raspbian

📅 2015-Jan-23 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ debian, raspberry pi, raspbian, version ⬩ 📚 Archive

Raspbian is based on Debian, so the distribution version information for both is stored in the same file: /etc/os-release.

Here is what I got on my Raspbian 9 (Stretch):

$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧