首页 最新文章网站服务器运维正文

「实战笔记」linux某场景下的telnet安装方法

[root@iZ23ak12ta7Z yum.repos.d]# rpm -q telnet

package telnet is not installed

[root@iZ23ak12ta7Z yum.repos.d]# rpm -q xinetd

package xinetd is not installed

[root@iZ23ak12ta7Z yum.repos.d]# yum install telnet

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

http://mirrors.163.com/centos/5/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found

Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again

[root@iZ23ak12ta7Z ~]# ll /etc/yum.repos.d/

总计 24

-rw-r--r-- 1 root root 3026 05-08 17:00 aliyun-5.repo

drwxr-xr-x 2 root root 4096 05-08 16:51 backup

-rw-r--r-- 1 root root  160 05-08 16:57 centos5.repo

-rw-r--r-- 1 root root 1499 05-08 17:01 CentOS-Base-163.repo

-r--r--r-- 1 root root 1206 05-08 17:01 epel.repo

-rwxr-xr-x 1 root root 1706 2015-06-10 rhel-debuginfo.repo 

[root@iZ23ak12ta7Z yum.repos.d]# vi CentOS-Base-163.repo

# CentOS-Base.repo

# The mirror system uses the connecting IP address of the client and the

# update status of each mirror to pick mirrors that are updated to and

# geographically close to the client.  You should use this for CentOS updates

# unless you are manually picking other mirrors.

# remarked out baseurl= line instead.

[base]

name=CentOS-5 - Base - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/  ← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates

[updates]

name=CentOS-5 - Updates - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released

[addons]

name=CentOS-5 - Addons - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful

[extras]

name=CentOS-5 - Extras - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-5 - Plus - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users

[contrib]

name=CentOS-5 - Contrib - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[root@iZ23ak12ta7Z yum.repos.d]# yum install telnet

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

addons                                                                                      | 1.1 kB     00:00

addons/primary                                                                         | 1.3 MB     00:06

addons                                                                                        3667/3667

base                                                                                           | 1.1 kB     00:00

base/primary                                                                             | 1.3 MB     00:16

base                                                                                             3667/3667

epel                                                                                             | 1.1 kB     00:00

epel/primary                                                                                 | 1.3 MB     00:05

epel                                                                                               3667/3667

extras                                                                                           | 1.1 kB     00:00

extras/primary                                                                               | 1.3 MB     00:05

extras                                                                                              3667/3667

updates                                                                                          | 1.1 kB     00:00

updates/primary                                                                             | 1.3 MB     00:04

updates                                                                                           3667/3667

Excluding Packages in global exclude list

Finished

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package telnet.x86_64 1:0.17-41.el5 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

=========================================

 Package           Arch          Version            Repository         Size

=========================================

Installing:

 telnet           x86_64          1:0.17-41.el5     addons        60 k

Transaction Summary

=========================================

Install      1 Package(s)

Update       0 Package(s)

Remove       0 Package(s)

Total download size: 60 k

Is this ok [y/N]: y

Downloading Packages:

telnet-0.17-41.el5.x86_64.rpm           |  60 kB     00:00

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : telnet                       1/1

Installed:

  telnet.x86_64 1:0.17-41.el5

Complete!

[root@iZ23ak12ta7Z yum.repos.d]# yum install xinetd

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

addons                                          | 1.1 kB     00:00

base                                              | 1.1 kB     00:00

extras                                            | 1.1 kB     00:00

updates                                          | 1.1 kB     00:00

Excluding Packages in global exclude list

Finished

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package xinetd.x86_64 2:2.3.14-20.el5_10 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

===========================================

 Package         Arch           Version               Repository               Size

============================================

Installing:

 xinetd           x86_64        2:2.3.14-20.el5_10     addons          127 k

Transaction Summary

===========================================

Install      1 Package(s)

Update       0 Package(s)

Remove       0 Package(s)

Total download size: 127 k

Is this ok [y/N]: y

Downloading Packages:

xinetd-2.3.14-20.el5_10.x86_64.rpm                      | 127 kB     00:09

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : xinetd                                            1/1

Installed:

  xinetd.x86_64 2:2.3.14-20.el5_10

Complete!

[root@iZ23ak12ta7Z yum.repos.d]# rpm -q xinetd

xinetd-2.3.14-20.el5_10

[root@iZ23ak12ta7Z yum.repos.d]# rpm -q telnet

telnet-0.17-41.el5

[root@iZ23ak12ta7Z yum.repos.d]# service xinetd restart

停止 xinetd:                                              [失败]

启动 xinetd:                                              [确定]

[root@iZ23ak12ta7Z yum.repos.d]#

注:centos5系统官方默认已经不再提供yum支持

Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装.

©️公众号:思考者文刀

评论

百度搜索

站点信息

  • 文章总数:436
  • 页面总数:9
  • 分类总数:30
  • 标签总数:924
  • 评论总数:501
  • 浏览总数:1783899
觉得有用就打赏吧
关注本站公众号,享受更多服务!
联系方式
合作微信:itker0110
新媒体:Excel加油站(抖音/小红书/哔哩/头条)
公众号:左手Excel右手VBA
知乎:Excel其实很简单
Copyright2015-2024.Powered by ©️云水客 | 网站地图 | 辽ICP备14000512号-5
您是本站第3208名访客 今日有0篇新文章