安装大于或等于包的版本

时间:2016-07-25 11:18:59

标签: debian deb debian-based

当我在下载的源代码gcc-4.9软件包上运行dpkg-checkbuilddeps时,我收到以下信息:

# apt-get source gcc-4.9
# cd gcc-4.9-4.9.2
#dpkg-checkbuilddeps: Unmet build dependencies: g++-multilib libc6-dev-i386 lib32gcc1 libc6-dev-x32 libx32gcc1 libc6-dbg autoconf2.64 autogen gawk zlib1g-dev systemtap-sdt-dev gperf (>= 3.0.1) bison (>= 1:2.3) flex gdb locales sharutils libantlr-java libffi-dev fastjar libmagic-dev libecj-java (>= 3.3.0-2) zip libasound2-dev libxtst-dev libxt-dev libgtk2.0-dev (>= 2.4.4-2) libart-2.0-dev libcairo2-dev libcloog-isl-dev (>= 0.18) libmpc-dev (>= 1.0) libmpfr-dev (>= 3.0.0-9~) libgmp-dev (>= 2:5.0.1~) dejagnu realpath (>= 1.9.12) chrpath quilt doxygen (>= 1.7.2) graphviz (>= 2.2) ghostscript texlive-latex-base xsltproc libxml2-utils docbook-xsl-ns

Now I am trying to install gperf version (>= 3.0.1) - but none of the below commands works. How can I install a package with a version greater than or euqall to one specified in command line:

# apt-get install gperf='>=3.0.1'
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gperf=>
# apt-get install gperf=3.0.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '3.0.1' for 'gperf' was not found

1 个答案:

答案 0 :(得分:0)

debian repo中的当前版本应该都是> 3.0.1,最低版本为wheezy with 3.0.3-1

使用apt-cache show gperf | grep -i version,您将获得包管理器当前已知的版本列表。也许你需要添加另一个回购?