我正在尝试将默认的 g++ 设置为 4.7.2,我的主机告诉我已经安装了(我还被告知还安装了 c++11);然而,我们都不知道如何将默认的 g++ 设置为 4.7.2 因为g++ --version给出
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Run Code Online (Sandbox Code Playgroud)
我sudo在这里尝试了这些命令,但我发现它们不起作用,因为 CentOS 使用yum.
如何在 CentOS 5.9 上将默认 g++ 设置为 4.7.2(如果它甚至已安装)?
我试图运行yum update但被依赖项阻止。我已经安装了其他软件包所需的 rpmforge el6。
Error: Package: perl-IO-Compress-2.052-1.el6.rfx.noarch (rpmforge-extras)
Requires: perl(Compress::Raw::Zlib) = 2.052
Installed: 1:perl-Compress-Raw-Zlib-2.020-127.el6.i686 (@base)
perl(Compress::Raw::Zlib) = 2.020
Available: perl-Compress-Raw-Zlib-2.030-1.el6.rfx.i686 (rpmforge-extras)
perl(Compress::Raw::Zlib) = 2.030
Available: perl-Compress-Raw-Zlib-2.033-1.el6.rfx.i686 (rpmforge-extras)
perl(Compress::Raw::Zlib) = 2.033
Available: perl-Compress-Raw-Zlib-2.034-1.el6.rfx.i686 (rpmforge-extras)
perl(Compress::Raw::Zlib) = 2.034
Available: perl-Compress-Raw-Zlib-2.035-1.el6.rfx.i686 (rpmforge-extras)
perl(Compress::Raw::Zlib) = 2.035
Available: perl-Compress-Raw-Zlib-2.037-1.el6.rfx.i686 (rpmforge-extras)
perl(Compress::Raw::Zlib) = 2.037
Available: perl-Compress-Raw-Zlib-2.051-1.el6.rfx.i686 (rpmforge-extras)
perl(Compress::Raw::Zlib) = 2.051
Available: perl-Compress-Raw-Zlib-2.052-1.el6.rfx.i686 (rpmforge-extras)
perl(Compress::Raw::Zlib) = 2.052
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest …Run Code Online (Sandbox Code Playgroud) 这是输出 apt-cache policy firefox
firefox:
Installed: 26.0~linuxmint1+lmde
Candidate: 26.0~linuxmint1+lmde
Version table:
*** 26.0~linuxmint1+lmde 0
500 http://packages.linuxmint.com/ debian/import amd64 Packages
100 /var/lib/dpkg/status
Run Code Online (Sandbox Code Playgroud)
版本显示为26.0~linuxmint1+lmde,0后面是什么?我尝试过各种软件包,并且总是有一个0软件包版本之后。据推测,这也可以采用其他值,但我还没有看到。
我通读了man和info页面,apt-cache但找不到任何相关内容。唯一的解释policy是:
policy [pkg...]
policy is meant to help debug issues relating to the preferences
file. With no arguments it will print out the priorities of each
source. Otherwise it prints out detailed information about the
priority selection of the named package.
Run Code Online (Sandbox Code Playgroud) 假设我有一个名为libfoo和的库
0.4.20.4API 版本在哪里?2 是可能添加新 API 函数的版本号。soname 应该是libfoo.so.0.4,libfoo.so.0.4.2还是别的什么?
我需要编写一个脚本来验证 RPM 至少是 Linux 中的给定版本。
例如:rpm-4.2-9.69.src.rpm 对比 rpm-4.14-0.69.src.rpm。这是我的尝试,但不起作用:
STR_BASE_ACCEPTABLE_VER="rpm-4.2-0.69.src.rpm"
if [[ "$RPM_VERSION" < "$STR_BASE_ACCEPTABLE_VER" ]]; then
echo "$RPM_VERSION is too low..." \
else
echo "$RPM_VERSION is fine" \
fi
Run Code Online (Sandbox Code Playgroud) 有2个Debian的装置-一个是关于稳定测试,另-在两台不同的机器,我注意到版本铬测试是47.0.2526.80-1〜deb8u1(测试在Debian软件包网站),而一个稳定的为48.0 .2564.116-1~deb8u1(在 debian pakage 网站上稳定)。所以测试似乎落后于稳定。
因为测试应该有相同包的更新版本,或者至少是相同的版本,为什么会发生这种情况?我对测试分布有什么误解吗?
编辑:测试跳过一个版本似乎很奇怪,我已经注意到这种差异至少 24 小时。我原以为这次测试会更新。是否有人弄乱/篡改包裹?
的输出uname -a是:
#1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04)
我没有在输出中找到对“u3”的任何解释,这是什么意思?
我发现了以下更改日志,但所有这些都根据日期而不是版本号列出了更改/新功能:
2014-09-06 - 现在:https : //fossies.org/linux/sed/ChangeLog
2005-05-18 - 2012-12-29:https : //github.com/bonzini/sed/blob/master/ChangeLog(这个 GitHub 仓库看起来很陈旧)
回购git://git.sv.gnu.org/se似乎是最新的,但我只能找到一个ChangeLog-2014文件,其条目于 2014-09-06 结束。
例如,我试图找出在哪个 GNUsed版本中引入了-z/--null-data选项,虽然上面告诉我 2012-02-05,但我无法确定映射到哪个版本号。
如何在DNF中安装特定的软件包版本。我安装的一个软件包安装了新版本,但是这个新版本有一些问题,然后我想回滚到旧版本,但最后一个旧版本的软件包仍然在 fc25 上。
我尝试重新安装时添加特定版本但没有成功。2-1.fc25.noarch我将其添加到包名称和其他一些组合的末尾。
顺便说一句,我在 fc26 上,可以在copr上找到该包上找到该包。
谢谢
我安装了 CentOS 6.0。后来我跑去yum update应用软件更新。之后我的操作系统版本更改为 6.3。为什么版本变了?它会走多远?如何选择是继续运行 6.0 还是应用小升级,为什么要更改其中之一?