【问题标题】:Trying to download and install with apt-get with specified directory [closed]尝试使用指定目录的 apt-get 下载和安装 [关闭]
【发布时间】:2019-11-08 23:46:02
【问题描述】:

我正在尝试执行sudo apt-get --download-only <package_name> ??target_directory??,但我想指定下载位置,以便将来我想在没有互联网连接的情况下使用sudo apt-get --no-download <package_name> ??target_directory?? 安装我的预下载包。这里的问题是,我想选择目标目录为 '/user/desktop/blabla' 但不知道如何使用 apt-get 指定它。

如果你能帮助我,我将不胜感激:) 祝你有美好的一天。

【问题讨论】:

标签: linux ubuntu debian apt apt-get


【解决方案1】:

您可以使用 -o 选项指定下载目录:

apt-get install -d -o=dir::cache=/user/desktop/blabla <package-name>

【讨论】:

    猜你喜欢
    • 2012-01-23
    • 1970-01-01
    • 2023-01-17
    • 1970-01-01
    • 2011-05-24
    • 2012-03-04
    • 1970-01-01
    • 1970-01-01
    • 2017-10-22
    相关资源
    最近更新 更多