program tip

내가 사용하는 Fedora 버전을 어떻게 찾을 수 있습니까?

radiobox 2020. 8. 14. 07:36
반응형

내가 사용하는 Fedora 버전을 어떻게 찾을 수 있습니까?


sudo find /etc | xargs grep -i fedora > searchFedora

제공합니다 :

/etc/netplug.d/netplug: # At least on Fedora Core 1
...

그러나 /etc/netplug.d/netplug파일 에서 Fedora 버전을 참조하십시오 . 심각해?


cat /etc/issue

또는 cat /etc/fedora-release@Bruce ONeel이 제안한대로


/etc/redhat-release또는 시도해 볼 수도 있습니다 /etc/fedora-release.

cat /etc/fedora-release 
Fedora release 7 (Moonshine)

제안 된 표준 파일은 /etc/os-release. 참조 http://www.freedesktop.org/software/systemd/man/os-release.html를

다음과 같이 실행할 수 있습니다.

$ source /etc/os-release
$ echo $ID
fedora
$ echo $VERSION_ID
17
$ echo $VERSION
17 (Beefy Miracle)

당신은 시도 할 수 있습니다

lsb_release -a

적어도 데비안과 우분투에서 작동합니다 (LSB이기 때문에 적어도 다른 주류 배포판 대부분에 있어야합니다). http://rpmfind.net/linux/RPM/sourceforge/l/ls/lsb/lsb_release-1.0-1.i386.html 은 꽤 오랜 시간이 지났음을 암시합니다.


필요한 정보를 제공 할 수있는 가장 간단한 명령은 다음과 같습니다.

hostnamectl

cat /etc/*release

거의 모든 주요 배포판에 보편적입니다.


[Belmiro@HP-550 ~]$ uname -a

Linux HP-550 2.6.30.10-105.2.23.fc11.x86_64 #1 SMP Thu Feb 11 07:06:34 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux


[Belmiro@HP-550 ~]$ lsb_release -a

LSB Version: :core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:deskt
op-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch
Distributor ID: Fedora
Description: Fedora release 11 (Leonidas)
Release: 11
Codename: Leonidas
[Belmiro@HP-550 ~]$ 

어때 uname -a?


Fedora 25 (워크 스테이션) 설치시 모든 배포 ID 정보가 다음 파일에서 발견되었습니다.

/usr/lib/os.release.d/os-release-workstation 

여기에는

  • 이름 = Fedora
  • VERSION = "25 (Workstation Edition)"
  • ID = 페도라
  • VERSION_ID = 25
  • PRETTY_NAME = "Fedora 25 (Workstation Edition)"
  • <...>
  • VARIANT = "워크 스테이션 에디션"
  • VARIANT_ID = 워크 스테이션

다음 명령은 Artik 10에서 작동했습니다.

  • 고양이 / etc / fedora-release
  • 고양이 / etc / issue
  • hostnamectl

다른 사람들은하지 않았습니다.

  • lsb_release -a
  • uname -a

uname -a는 내 fc11과 함께 작동합니다.

참고 URL : https://stackoverflow.com/questions/540603/how-can-i-find-the-version-of-the-fedora-i-use

반응형