내가 실행 중인 "libosinfo"의 버전을 어떻게 알 수 있나요?

내가 실행 중인 "libosinfo"의 버전을 어떻게 알 수 있나요?

우분투 14.04를 실행하고 있습니다. whereis, whatis, locate및 명령을 시도했습니다 find. 설치된 것 같아요. 다시 설치할 수 없습니다. 패키지를 설치하는 데 사용합니다 apt-get. virt-manager특정 버전이어야 합니다.

답변1

apt-cache policy리포지토리에서 설치 가능/설치된 패키지에 관해 말하면, 패키지가 현재 설치되어 있는지 여부와 다음을 실행하면 어떤 버전으로 업그레이드될지 확인하는 데 사용할 수 있습니다 sudo apt-get upgrade.

apt-cache policy libosinfo-1.0-0
user@user-X550CL ~ % apt-cache policy libosinfo-1.0-0
libosinfo-1.0-0:
  Installed: (none)
  Candidate: 0.2.11-1.1
  Version table:
     0.2.11-1.1 0
        500 http://it.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages

답변2

은 패키지 이름이 아니므 로 libosinfo아래 명령을 사용할 수 있습니다.

apt-cache policy ^libosinfo

Installed및/또는 값은 Candidate버전을 표시합니다.


샘플 출력

libosinfo-1.0-0:
  Installed: (none)
  Candidate: 0.2.11-1.1
  Version table:
     0.2.11-1.1 0
        500 http://archive.ubuntu.com.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
     0.2.11-0ubuntu1~utopic1 0
        500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ vivid/main amd64 Packages
libosinfo-1.0-0-dbg:
  Installed: (none)
  Candidate: 0.2.11-1.1
  Version table:
     0.2.11-1.1 0
        500 http://archive.ubuntu.com.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
     0.2.11-0ubuntu1~utopic1 0
        500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ vivid/main amd64 Packages
libosinfo-1.0-dev:
  Installed: (none)
  Candidate: 0.2.11-1.1
  Version table:
     0.2.11-1.1 0
        500 http://archive.ubuntu.com.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
     0.2.11-0ubuntu1~utopic1 0
        500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ vivid/main amd64 Packages
libosinfo-bin:
  Installed: (none)
  Candidate: 0.2.11-1.1
  Version table:
     0.2.11-1.1 0
        500 http://archive.ubuntu.com.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
     0.2.11-0ubuntu1~utopic1 0
        500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ vivid/main amd64 Packages

관련 정보