离线安装rsh软件

1、在线下载软件包

#下载rsh服务器软件包及其依赖
root@educoder:~#  apt-get install -d rsh-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libevent-2.1-7 openbsd-inetd tcpd update-inetd
The following NEW packages will be installed:
  libevent-2.1-7 openbsd-inetd rsh-server tcpd update-inetd
0 upgraded, 5 newly installed, 0 to remove and 96 not upgraded.
Need to get 231 kB of archives.
After this operation, 791 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 libevent-2.1-7 arm64 2.1.11-stable-1 [125 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 update-inetd all 4.50 [24.8 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 tcpd arm64 7.6.q-30 [23.6 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 openbsd-inetd arm64 0.20160825-4build1 [25.4 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 rsh-server arm64 0.17-21 [32.0 kB]
Fetched 231 kB in 3s (80.6 kB/s)   
Download complete and in download only mode

#查看软件包及依赖
root@educoder:~# cd /var/cache/apt/archives
root@educoder:/var/cache/apt/archives# ls
libevent-2.1-7_2.1.11-stable-1_arm64.deb  openbsd-inetd_0.20160825-4build1_arm64.deb  rsh-server_0.17-21_arm64.deb  update-inetd_4.50_all.deb
lock                                      partial                                     tcpd_7.6.q-30_arm64.deb

#下载rsh客户端
root@educoder:/var/cache/apt/archives# apt-get install -d rsh-client
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  rsh-client
0 upgraded, 1 newly installed, 0 to remove and 96 not upgraded.
Need to get 27.3 kB of archives.
After this operation, 97.3 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 rsh-client arm64 0.17-21 [27.3 kB]
Fetched 27.3 kB in 1s (23.4 kB/s)                   
Download complete and in download only mode

#查看所有下载的内容
root@educoder:/var/cache/apt/archives# ls
libevent-2.1-7_2.1.11-stable-1_arm64.deb  openbsd-inetd_0.20160825-4build1_arm64.deb  rsh-client_0.17-21_arm64.deb  tcpd_7.6.q-30_arm64.deb
lock                                      partial                                     rsh-server_0.17-21_arm64.deb  update-inetd_4.50_all.deb

#将/var/cache/apt/archives下的内容复制到下载目录
root@educoder:/var/cache/apt/archives# cp -r /var/cache/apt/archives/* /data/workspace/downloadfiles/

2、离线解压安装软件包

dpkg -i /data/bigfiles/libevent-2.1-7_2.1.11-stable-1_arm64.deb
dpkg -i /data/bigfiles/update-inetd_4.50_all.deb
dpkg -i /data/bigfiles/tcpd_7.6.q-30_arm64.deb
dpkg -i /data/bigfiles/openbsd-inetd_0.20160825-4build1_arm64.deb
dpkg -i /data/bigfiles/rsh-server_0.17-21_arm64.deb  

dpkg -i /data/bigfiles/rsh-client_0.17-21_arm64.deb
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值