我想知道如何安装Python2.7.5的安全更新。
我得到通知,我的CentOS 7版本有一个安全补丁更新。详情如下:
https://lists.centos.org/pipermail/centos-announce/2018-July/022964.html
我已经搜索了互联网,试图寻找安装特定补丁的方法,但我找不到。
我尝试过sudo yum update python-2.7.5-69.el7_5.x86_64.rpm,但您可能知道我不知道自己在做什么。
发布于 2018-09-24 22:40:37
要用最少的工作量使这一工作正常进行,您确实应该确保您的YUM存储库配置正确。除非您所寻求的包不包括在内,否则您不需要使用任何非官方存储库。
Python更新python-2.7.5-69.el7_5.x86_64.rpm确实位于官方的CentOS 7镜像上,因此如果您的YUM无法找到并安装该包,那么在您的存储库中就会出现错误配置。
请检查/etc/yum.repos.d中文件的内容,确保启用了[updates]存储库并指向官方的CentOS 7镜像。另外,要确保任何非官方存储库的优先级都低于官方存储库,或者完全禁用,除非您真正知道自己在做什么。
如果YUM存储库配置正确,则只需运行yum install python即可获得安全更新。如果这仍然不起作用,您应该在/etc/yum.repos.d中发布文件的内容和yum info python的输出,以便更有效地帮助其他人。
发布于 2018-09-24 17:07:39
根据百胜
install
Is used to install the latest version of a package or group of packages while ensuring that all depen\u2010
dencies are satisfied. (See Specifying package names for more information) If no package matches the
given package name(s), they are assumed to be a shell glob and any matches are then installed. If the
name starts with @^ then it is treated as an environment group (group install @^foo), an @ character and
it's treated as a group (plain group install).
If the name starts with a "-" character, then a search is done within the transaction and any matches
are removed. Note that Yum options use the same syntax and it may be necessary to use "--" to resolve
any possible conflicts.
If the name is a file, then install works like localinstall. If the name doesn't match a package, then
package "provides" are searched (e.g. "_sqlitecache.so()(64bit)") as are filelists (Eg. "/usr/bin/yum").
Also note that for filelists, wildcards will match multiple packages.
Because install does a lot of work to make it as easy as possible to use, there are also a few specific
install commands "install-n", "install-na" and "install-nevra". These only work on package names, and do
not process wildcards etc.
update If run without any packages, update will update every currently installed package. If one or more pack\u2010
ages or package globs are specified, Yum will only update the listed packages. While updating packages,
yum will ensure that all dependencies are satisfied. (See Specifying package names for more information)
If the packages or globs specified match to packages which are not currently installed then update will
not install them. update operates on groups, files, provides and filelists just like the "install" com\u2010
mand.您的yum命令应该是:
sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm您还可以使用命令rpm,使用` also 下载包
wget https://centos.pkgs.org/7/centos-updates-x86_64/然后,安装该软件包:
rpm -Uvh python-2.7.5-69.el7_5.x86_64.rpm
Flag -U will do the upgrade for youhttps://unix.stackexchange.com/questions/471130
复制相似问题