1、修改配置

[root@local ~]# head -3 /etc/yum.conf [main] cachedir=/var/cache/yum/$basearch/$releasever   #yum缓存目录,下方1代表打开缓存 keepcache=1        # 原本是0 修改成1

2、下载程序,找rpm安装位置 [root@local ~]# yum -y install xinetd 已加载插件:fastestmirror Determining fastest mirrors  * base: mirrors.aliyun.com  * extras: mirrors.aliyun.com  * updates: mirrors.aliyun.com ……………… ……………… ……………… …此处省略一万字,你知道就好…… ===========================================================================================================================================================================  Package                                架构                                   版本                                             源                                    大小 =========================================================================================================================================================================== 正在安装:  xinetd                                 x86_64                                 2:2.3.15-14.el7                                  base                                 128 k                                                                         (这里就是从哪个源下载的,就在这个目录下的packages找) 事务概要 =========================================================================================================================================================================== 安装  1 软件包 …………………… …………………… …………………… 已安装:   xinetd.x86_64 2:2.3.15-14.el7                                                                                                                                            

完毕!

3、查找程序RPM安装包位置: [root@local ~]# cd /var/cache/yum/x86_64/7/ base/    epel/    extras/  ftp/     local/   updates/  [root@local ~]# cd /var/cache/yum/x86_64/7/ [root@local 7]# ll 总用量 20 drwxr-xr-x 4 root root 4096 5月   4 10:11 base drwxr-xr-x 4 root root 4096 5月   4 10:11 epel drwxr-xr-x 4 root root 4096 5月   4 10:11 extras drwxr-xr-x 4 root root   33 3月  28 14:20 ftp drwxr-xr-x 4 root root  256 9月   8 2022 local -rw-r--r-- 1 root root  235 5月   4 10:11 timedhosts -rw-r--r-- 1 root root  105 5月   4 10:10 timedhosts.txt drwxr-xr-x 4 root root  161 5月   4 10:11 updates [root@local 7]# cd base/packages/        # 剑指黄龙巢穴,因为已知居所是base,packages这个目录就是安装包存放位置,别问为什么,问就是规矩 [root@local packages]# ll 总用量 132 -rw-r--r-- 1 root root 131484 4月   4 2020 xinetd-2.3.15-14.el7.x86_64.rpm

二、telnet-server的安装包 1、直接yum下载 [root@local ~]# yum -y install telnet-server 已加载插件:fastestmirror Loading mirror speeds from cached hostfile  * base: mirrors.aliyun.com  * extras: mirrors.aliyun.com  * updates: mirrors.aliyun.com ……………… ……………… ……………… …此处省略一万字,你知道就好……

===========================================================================================================================================================================  Package                                     架构                                 版本                                         源                                     大小 =========================================================================================================================================================================== 正在安装:  telnet-server                               x86_64                               1:0.17-66.el7                                updates                                41 k                                                                         (这里就是从哪个源下载的,就在这个目录下的packages找) 事务概要 =========================================================================================================================================================================== 安装  1 软件包 …………………… …………………… …………………… 已安装:   telnet-server.x86_64 1:0.17-66.el7                                                                                                                                       

完毕!

2、查找程序RPM安装包位置: [root@local ~]# cd /var/cache/yum/x86_64/7/ [root@local 7]# ll 总用量 20 drwxr-xr-x 4 root root 4096 5月   4 10:11 base drwxr-xr-x 4 root root 4096 5月   4 10:11 epel drwxr-xr-x 4 root root 4096 5月   4 10:11 extras drwxr-xr-x 4 root root   33 3月  28 14:20 ftp drwxr-xr-x 4 root root  256 9月   8 2022 local -rw-r--r-- 1 root root  235 5月   4 10:17 timedhosts -rw-r--r-- 1 root root  105 5月   4 10:10 timedhosts.txt drwxr-xr-x 4 root root  161 5月   4 10:11 updates [root@local 7]# cd updates/packages/ [root@local packages]# ll 总用量 44 -rw-r--r-- 1 root root 42148 11月 18 2020 telnet-server-0.17-66.el7.x86_64.rpm

参考阅读

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。