PlanB
Posts: 102
Joined: Tue Oct 28, 2014 6:44 am

Identifying OS fully

Sat Nov 18, 2017 6:47 am

I've got a version of Jessie lite that responds to cat /etc/os-release with
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"

Trouble is it wouldn't let me apt-get install libopencv-dev or libusb-1.0-0-dev until I overhauled it with
apt-get autoremove && sudo apt-get -f install && sudo apt-get update && sudo apt-get upgrade -y

Thing is the overhauled version still identifies the same as before. Is there some other cmd to pin down different variants of the OS? I'm troubled that sd cards with different behaviours can't be labeled in some way.

ghans
Posts: 7883
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Identifying OS fully

Sat Nov 18, 2017 8:47 am

Code: Select all

cat /boot/issue.txt
lsb_release -a
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

PlanB
Posts: 102
Joined: Tue Oct 28, 2014 6:44 am

Re: Identifying OS fully

Sat Nov 18, 2017 10:52 am

Same result for both

ghans
Posts: 7883
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Identifying OS fully

Sat Nov 18, 2017 10:57 am

Please post the full output of all three commands mentioned in this thread.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

PlanB
Posts: 102
Joined: Tue Oct 28, 2014 6:44 am

Re: Identifying OS fully

Sat Nov 18, 2017 1:09 pm

root@raspberrypi:/home/pi# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
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"

root@raspberrypi:/home/pi# cat /boot/issue.txt
Raspberry Pi reference 2016-05-27
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 5add7283d4db4eaad785de41a6750e909e5a04cf, stage2

root@raspberrypi:/home/pi# lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie

User avatar
topguy
Posts: 6791
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Identifying OS fully

Fri Nov 24, 2017 1:46 pm

PlanB wrote:
Sat Nov 18, 2017 6:47 am
Trouble is it wouldn't let me apt-get install libopencv-dev or libusb-1.0-0-dev until I overhauled it with
apt-get autoremove && sudo apt-get -f install && sudo apt-get update && sudo apt-get upgrade -y

Thing is the overhauled version still identifies the same as before.
If you needed to run those commands it was most likely because of other "apt-get" commands from earlier that had not completed properly.

Also starting with "apt-get update" is a good idea. But none of these commands will change the observed OS version, you have just upgraded a few components of that OS. So the word "overhauling" has no meaning in this context.

Return to “Raspberry Pi OS”