当系统上已安装软件包时,使用 apt-get 下载软件包
如何使用apt-get下载openssh包?
问题是该软件包已经安装,所以我只得到:
sudo apt-get install openssh -d
Reading package lists... Done
Building dependency tree... Done
openssh is already the newest version.
由于已经安装,我没有获得 debian 软件包。我应该先删除它,但这样我就会失去 USB 网络。
我知道这个过程可以通过 aptitude 实现,但对我来说不可用。
How to download openssh package using apt-get?
The problem is that the package is already installed so I get only:
sudo apt-get install openssh -d
Reading package lists... Done
Building dependency tree... Done
openssh is already the newest version.
Because of being already installed, I don't get the debian package. I should remove it first, but then I would lose USB networking.
I know that this procedure is possible with aptitude, but it's not available for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这会将包下载到 /var/cache/apt/archives 中。不过我认为你可能指的是“openssh-server”或“openssh-client”或“ssh”之类的东西,debian 中没有 openssh pacakge。如果您要编写此脚本,您可能还会对“--print-uris”选项感兴趣。
this will download the pacakge into /var/cache/apt/archives. however I think you probably mean "openssh-server" or "openssh-client" or "ssh" or something, there isn't an openssh pacakge in debian. You also might be interested in the "--print-uris" option if you are going to be scripting this.