我必须更新 Debian lenny 服务器中的 bind9 包。请告诉我最好的更新方法是什么。此服务器没有互联网连接。并且此操作不应影响现有系统设置。有人可以就此向我提出建议吗?
谢谢
答案1
对于断开连接的机器,该apt-offline
工具承诺可以使安装软件包变得可以接受:
Description: offline apt package manager
apt-offline is an Offline APT Package Manager
.
apt-offline can fully update and upgrade an APT based distribution without
connecting to the network, all of it transparent to apt
.
apt-offline can be used to generate a signature on a machine (with no network).
This signature contains all download information required for the apt database
system. This signature file can be used on another machine connected to the
internet (which need not be a Debian box and can even be running windows) to
download the updates.
The downloaded data will contain all updates in a format understood by apt and
this data can be used by apt-offline to update the non-networked machine.
.
apt-offline can also fetch bug reports and make them available offline
你可以看看Debian 反向移植存储库将较新的软件引入较旧的发行版。它可能对系统的其余部分不透明,但希望更好的而不是依赖从源代码进行编译。
答案2
如果你的服务器处于离线状态,为什么需要 bind9? 使其联机并:
# sudo apt-get update && sudo apt-get upgrade bind9
或者在线机器上下载最新的 bind9 包:
# apt-get -d install bind9
它应该存储在这里:
# ls -l /var/cache/apt/archives/bind9*
将文件复制到您的离线服务器并执行:
# apt-get install bind9
类似这样的事...