[오늘은 공부중] 설치한 데비안(Debian) 버전 확인하기

가끔 내가 설치한 데비안도
기억이 안날 때가 많습니다.


기억이 안난다고 
어렵게 설치한 리눅스를 밀고
최신으로 다시 설치할 순 없겠죠?

간단하게 알 수 있는 방법이 있어요!


root@debian:/home/# lsb_release -a

lsb_release -a

위 명령어를 터미널에 입력하면

root@debian:/home/# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
root@debian:/home/#

짜잔!
간단하게 데비안 버전을 알 수 있습니다.

그런데 가끔 에러메시지를 뿜는 경우도 있는데요.

root@debian:/home/# lsb_release -a
bash: lsb_relase: command not found

이건 lsb_release 명령어가 없다는 뜻이예요.

이럴 경우에는 설치만 해주면 아주 간단하게
문제를 해결할 수 있어요!

root@debian:/home/# apt install lsb-release
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  distro-info-data
The following NEW packages will be installed:
  distro-info-data lsb-release
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.7 kB of archives.
After this operation, 84.0 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bullseye/main amd64 distro-info-data all 0.51+deb11u3 [7812 B]
Get:2 http://deb.debian.org/debian bullseye/main amd64 lsb-release all 11.1.0 [27.9 kB]
Fetched 35.7 kB in 0s (302 kB/s)      
Selecting previously unselected package distro-info-data.
(Reading database ... 36603 files and directories currently installed.)
Preparing to unpack .../distro-info-data_0.51+deb11u3_all.deb ...
Unpacking distro-info-data (0.51+deb11u3) ...
Selecting previously unselected package lsb-release.
Preparing to unpack .../lsb-release_11.1.0_all.deb ...
Unpacking lsb-release (11.1.0) ...
Setting up distro-info-data (0.51+deb11u3) ...
Setting up lsb-release (11.1.0) ...
root@debian:/home/# 

여담으로 

No LSB modules are available.

버전이 나올 때 
이 문구가 신경쓰이시는 있을텐데요.

이건 LSB 버전을 설명해주는 모듈이 없다는 것으로,
굳이 설치할 필요는 없어요.

하지만 그래도 나는 저게 신경쓰인다고 하시면


root@debian:/home/# apt-get install lsb

간단하게 lsb를 설치해주면 된답니다 :)

댓글