728x90
lsb_release 명령어
테스트 환경
$ cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
$ getconf LONG_BIT
64
redhat에서 redhat-lsb-core(lsb_release) 패키지를 설치하는 방법
yum install -y redhat-lsb-core
$ yum install -y redhat-lsb-core
======================================================================================
Package Arch Version Repository Size
======================================================================================
Installing:
redhat-lsb-core x86_64 4.1-27.el7.centos.1 base 38 k
Installing for dependencies:
cups-client x86_64 1:1.6.3-51.el7 base 153 k
redhat-lsb-submod-security x86_64 4.1-27.el7.centos.1 base 15 k
spax x86_64 1.5.2-13.el7 base 260 k
lsb_release 명령 실행
lsb_release -a
$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.9.2009 (Core)
Release: 7.9.2009
Codename: Core
lsb_release -d
$ lsb_release -d
Description: CentOS Linux release 7.9.2009 (Core)
728x90
ubuntu에서 lsb-release 패키지를 설치하는 방법
apt install -y lsb-release
lsb_release 명령 실행
lsb_release -a
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
추가로 우분투에서 LSB Version 출력하기
- lsb 패키지 설치하기
apt-get install -y lsb
lsb_release
$ lsb_release
LSB Version: core-11.1.0ubuntu4-noarch:printing-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
lsb_release -a
$ lsb_release -a
LSB Version: core-11.1.0ubuntu4-noarch:printing-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
728x90
'리눅스' 카테고리의 다른 글
우분투에 OpenSSL을 설치하는 방법(openssl-1.1.1) (0) | 2022.04.28 |
---|---|
리눅스에서 운영체제 및 버전을 구분하는 스크립트 (0) | 2022.04.25 |
[리눅스] IP 계산기(ipcalc/sipcalc) (0) | 2022.04.24 |
dig 명령어 (0) | 2022.04.24 |
MySQL(MariaDB) 데이터베이스를 백업하고 복원하는 방법 (0) | 2022.04.23 |