yum 在 CentOS 6.6 上安装 texinfo(无软件包)

Posted

技术标签:

【中文标题】yum 在 CentOS 6.6 上安装 texinfo(无软件包)【英文标题】:yum install texinfo on CentOS 6.6 (no package) 【发布时间】:2018-09-16 01:21:26 【问题描述】:

为了解决对我的某个程序的一些依赖,我必须在我的 centos 6.6 系统上安装 texinfo

yum install texinfo

结果

Setting up Install Process
No package texinfo available
Error: Nothing to do

我不知道如何解决这个问题。到目前为止,我已经下载了binary rpm.

谁能指出我正确的方向?

【问题讨论】:

yum install binary_rpm_file_location 谢谢!它起作用了,我先安装了 i686 (texinfo) 版本,然后安装了 x86_64 (texinfo-tex),因为我的系统是 x86_64。 【参考方案1】:

$ dnf --enablerepo=PowerTools 安装 texinfo

如记录在: https://centos.pkgs.org/8/centos-powertools-x86_64/texinfo-6.5-4.el8.x86_64.rpm.html

【讨论】:

【参考方案2】:

texinfoBASE 存储库提供。

Available Packages
Name        : texinfo
Arch        : x86_64
Version     : 4.13a
Release     : 8.el6
Size        : 668 k
Repo        : base
Summary     : Tools needed to create Texinfo format documentation files
URL         : http://www.gnu.org/software/texinfo/
License     : GPLv3+
Description : Texinfo is a documentation system that can produce both online
            : information and printed output from a single source file. The GNU
            : Project uses the Texinfo file format for most of its documentation.
            : 
            : Install texinfo if you want a documentation system for producing both
            : online and print documentation from the same source file and/or if you
            : are going to write documentation for the GNU Project.

听起来您可能没有启用或配置它。检查/etc/yum.repos.d/CentOS-Base.repo 希望你有那个文件。在[base] and [updates] 部分中检查您是否有enabled=0 行如果您将0 更改为1 如果您根本没有.repo 文件,则使用上面的路径和文件名创建它然后添加以下内容;

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates 
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

最后做yum clean all,你应该很高兴。

【讨论】:

这个解决方案效果很好。回购存在但显然已禁用。是否从 0 -> 1 更改并做了yum install texinfo 并进行得很好。谢谢!

以上是关于yum 在 CentOS 6.6 上安装 texinfo(无软件包)的主要内容,如果未能解决你的问题,请参考以下文章

在Linux CentOS 6.6上安装Python 2.7.9

在Linux CentOS 6.6上安装Python 2.7.9

centos 6.6 上mysql5.1主从同步基础实验

Linux CentOS 6.6安装JDK1.7

CentOS 6.6 上使用 luci/ricci 安装配置 RHCS 集群

CENTOS 6.6“Errno -1 repomd.xml 与更新的金属链接不匹配”尝试使用 yum 命令安装 openssl [关闭]